Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

Home AMD Build Trains a Russian "Decider" Model: Reordering Options Changed the Answer in 66.5% of Cases

A Habr author trained RuDecider-0.8B, a 0.8-billion-parameter Russian model, on a home mini PC with an AMD Strix Halo chip. The model picks an option from a list in one forward pass, without generating text. The prototype concatenated the options into a single prompt, and a simple reordering of items changed the choice in 66.5% of cases. The final version gives each option its own row in a batch. For agents: check list choices by reordering the options.

AI-processed from Habr AI; edited by Hamidun News
Home AMD Build Trains a Russian "Decider" Model: Reordering Options Changed the Answer in 66.5% of Cases
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1Forward pass takes about 28 ms per question; end-to-end HTTP response takes 63–106 ms
Key metric #2The Qwen3.5-0.8B backbone was trimmed from 24 to 20 layers, LoRA adds 1.38 million parameters
Key metric #3The selection head has 9.46 million parameters, computed in FP32

Picture a bank's support desk. A ticket arrives: "after the overnight update, SBP refunds are failing, deadline at 14:00." The agent needs to answer three simple questions: which queue should it go to, is it urgent, and how critical is it on a scale from 1 to 5.

Usually, for each such question, teams run a large generative LLM, wait for hundreds of reasoning tokens, and parse JSON. That is expensive and unstable. The Habr author set out to build a Russian-language "fast intuition" model (System 1 in psychology) on home hardware.

Along the way, he found that the main problem with such models is the order of options in the list: in the first prototype, a simple reordering of items changed the choice in 66.5% of cases when routing real emails.

What the model is and why it is needed

RuDecider-0.8B (0.8 billion parameters) takes a situation as input, such as ticket text, a question, and a list of options that can be changed on the fly. In a single forward pass, it outputs a calibrated probability distribution over the options, with no step-by-step text generation. It supports three types of decisions: choice from a list, yes/no, and scale rating. According to the author's measurements, a forward pass on short texts takes about 28 ms per question, and the median end-to-end HTTP response on external tests stayed in the 63–106 ms range.

Why not use a standard classifier like BERT? Its class list is baked into the final matrix: when the set of options changes, the head has to be fine-tuned again. The author tested the multilingual mDeBERTa. On MNLI, a native logical entailment task, it beat the author's early prototype (88.3% versus 73.9%). But without fine-tuning on 10 Russian everyday categories from MASSIVE, it scored only 63.0% against 87.5% for the fine-tuned head, and on toxicity it dropped to 21.7%.

Three walls of the MiniRouter prototype

Everything was done on a GMKtec EVO-X2 mini PC with a Ryzen AI Max+ 395 APU and 128 GB of unified memory, of which about 118 GB is available to the GPU. First, the author spent ten days training small LLMs from scratch using Andrej Karpathy's nanochat. The estimate for a 500-million-parameter model came out to 29–38 days of continuous compute, so he changed approach: take a ready pretrained backbone, remove the language head, and attach his own decision head.

The first prototype, MiniRouter, ran on a frozen Qwen3-0.6B: 65,000 examples were run through once, the vectors were saved (about 3 GB), and a head with 1.57 million parameters was trained on top. Two classic problems emerged:

  • Label memorization. On Russian categories, accuracy was 86–87%, but when the option names were replaced with English ones on the same texts, it fell to 36–39%. A cross-lingual label dictionary helped: 85%.
  • Ignoring the question. When different questions were asked about the same text, the head answered almost identically (about 54–56%). Contrastive pairs of "one text, two questions" raised accuracy to 84.0%.

The worst defect was order. The options were fed as one concatenated text, and reordering changed the choice in 66.5% of cases for routing real emails and in 45.5% for general questions. The model reads the list left to right, and the earlier options influence all the later ones. In addition, the frozen base scored 91.9% on everyday intents but dropped to 0–6% on an unfamiliar business taxonomy. An attempt to guarantee an error risk of no more than 5% also failed: at 69% coverage, the actual risk came out to 6.5%.

How RuDecider works

The answer to the order defect was physical isolation. Each option passes through the transformer in its own batch row, so within the backbone the options cannot see each other. The question also runs on its own branch. The vectors are then gathered by a head with 9.46 million parameters: two self-attention layers without positional encoding (for it, the options are a set, not a list), all computations in FP32, followed by bilinear scoring.

The backbone is a hybrid Qwen3.5-0.8B; 20 of its 24 layers were kept. The bottom 8 layers are frozen, and LoRA adapters (1.38 million trainable parameters) sit on layers 8–19. Moving from 18 to 20 layers, together with the wider LoRA, reduced the validation error from 0.6668 to 0.4974 (−25.4%). The author notes that he did not run a separate "24 versus 20" test at that stage and chose the 8-layer boundary by engineering heuristic. Later he restored all 24 layers and extended LoRA across the full depth.

What to do in practice

Two lessons follow from the material. First, if answer options sit in a single prompt, their order becomes a hidden factor. Test your agent by permuting the options, or the router may just pick whatever comes first. Second, short wins on small samples mislead: the Instruct version "beat" Base on 62 emails only because it degenerated into nearly constant answers. The author himself writes that his internal metrics misled him.

The article's table of contents includes chapters on "cheat sheets in the data" and an honest defeat on the independent ood_sealed set against the competitors Kev-0.8B and Laya. Those results are not given in the available part of the text, so the final quality cannot be judged.

The limitations are clear: this is a one-person project, the main measurements were made on the author's own datasets, and the model does not replace a reasoning LLM where a chain of inference is needed. But as a recipe for a cheap local router for agentic systems in Russian, on consumer AMD hardware with ROCm, the story is useful and reproducible.

Story

Key Questions Answered

What the model is and why it is needed?

RuDecider-0.8B (0.8 billion parameters) takes a situation as input, such as ticket text, a question, and a list of options that can be changed on the fly. In a single forward pass, it outputs a calibrated probability distribution over the options, with no step-by-step text generation. It supports three types of decisions: choice from a list, yes/no, and scale rating.

What are the key details on Three walls of the MiniRouter prototype?

Everything was done on a GMKtec EVO-X2 mini PC with a Ryzen AI Max+ 395 APU and 128 GB of unified memory, of which about 118 GB is available to the GPU. First, the author spent ten days training small LLMs from scratch using Andrej Karpathy's nanochat. The estimate for a 500-million-parameter model came out to 29–38 days of continuous compute, so he changed approach: take a ready pretrained backbone, remove the language head, and attach his own decision head.

How RuDecider works?

The answer to the order defect was physical isolation. Each option passes through the transformer in its own batch row, so within the backbone the options cannot see each other. The question also runs on its own branch. The vectors are then gathered by a head with 9.46 million parameters: two self-attention layers without positional encoding (for it, the options are a set, not a list), all computations in FP32, followed by bilinear scoring. The backbone is a hybrid Qwen3.5-0.8B; 20 of its 24 layers were kept.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Home AMD Build Trains a Russian "Decider" Model: Reordering Options Changed the Answer in 66.5% of Cases https://news.hamidun.com/en/news/18314/home-amd-build-trains-a-russian-decider-model-reordering-opt

What do you think?
Loading comments…