Back to the blog

Qwen4: newer, bigger, but worse in Hungarian

One day with Qwen4-35B-A3B on a DGX Spark: a blind test, perplexity, an independent reference implementation and our usual measurement suite. It computes better than its predecessor. It writes Hungarian worse, and that is not our setup's fault.

"Tiszelt Minta Bt."

That is how a payment reminder written by Qwen4 opens. The word should be Tisztelt, "Dear" in a formal Hungarian letter, and the model dropped a letter from it. In another letter the office will "veszzük fel" normal operation on 3 January (a z where an s belongs), and in a third the company asks for a quote for its "irodaszer-beszzerzéséhez" (a doubled z). The lead-in to a thank-you letter reads: "Az alábbi levelt tudod直接使用".

We had been looking forward to Qwen4-35B-A3B. It arrived in the same size class as Qwen3.6-35B-A3B, which runs in our production, so on paper it was a simple swap on the same machine. After a day of measuring, we are not swapping, and this article shows why. A caveat up front: this is a quick round-zero report, not a final verdict.

What we expected

Three things. Qwen3.6 has three known weaknesses in our work, and we hoped the new generation would improve all of them: more accurate tool selection in chat, better Hungarian prose, and more reliable arithmetic. So far we have handled the last one with code around the model, which was the subject of What you can compute, don't train.

I admit there was an unspoken assumption too. That a newer model knows at least as much Hungarian as the previous one was not something we treated as a question. In the measurement plan the Hungarian blind test was the fourth line, after speed and document extraction.

Why "bigger"

By name both models have 35 billion parameters, 3 billion of them active per token. Yet the Qwen4 checkpoint is 60 GB against 35 GB for Qwen3.6, in the same FP8 quantization. The difference is an n-gram table of 20.5 billion parameters that the model uses as a lookup table. With it, Qwen4 actually stores about 57 billion parameters.

It still fits on a DGX Spark (GB10, 128 GB unified memory), with the table read from disk. On a single stream, text generation was 20–27% slower than with Qwen3.6. On its own, that would not have decided anything.

The blind test: 2.00 against 3.29

We have measured Hungarian writing with the same 24 tasks for months: business letters, explanations, summaries, rewrites. I score the answers from 1 to 5, without names and in shuffled order.

modelmean1s5s
Qwen3.8-Flash-Next3.7103
Qwen3.6-35B-A3B (production)3.2901
Qwen4-35B-A3B2.0050
Qwen4, with the model card's sampling1.58130

Qwen4 came last in all five task types. The gap to the production model is 1.29 points, p < 0.001 with a paired permutation test.

One thing I have to add honestly: the test was only partly blind. After a few answers you could tell which one was Qwen4. So we put a mechanical measure next to it, one that feels nothing: it counts how many answers contain Chinese characters, and how many words per thousand the Hungarian spelling dictionary does not know.

modelanswers with Chinese charactersunknown words / 1000
Qwen43 / 2410.0
Qwen3.6 (production)0 / 243.4
Flash-Next1 / 241.8

Chinese leakage is not new, we have written about it. We had not seen it at this rate, though, nor this many malformed Hungarian words: "kamigénylés", "frissításkezelés", "amekkor mégis可能 lehet".

The first suspect: us

When a brand-new model performs poorly, the first reading is not that the model is bad. The first reading is that we are running it wrong. We used the vLLM image released on launch day, with a quantized KV cache and speculative decoding (MTP: the model guesses the next tokens ahead with an auxiliary head). Any of them could have been at fault.

We flipped one switch at a time. With an unquantized KV cache, 7 answers still had Chinese characters and there were 9.5 unknown words per thousand. Without MTP, 6 answers and 13.0. Later we also tried greedy decoding and turning thinking off: 5 answers and 8.9, then 4 answers and 9.6. The same, within noise.

"Tiszelt" showed up under greedy decoding too. So this is not sampling drawing a bad card: according to the model, this is the most likely continuation.

The twist: an independent implementation writes the same

One question was still open: could vLLM itself be computing this new architecture wrongly? That can be settled in one night if there is a second, independent implementation. There is: the transformers library's own Qwen4 code. It is slow, five tokens per second on one stream, but this is exactly what it is good for.

We did two things with it.

The first was teacher forcing. We fed the text written by vLLM to the other implementation token by token, and asked what probability it would have given to that same token. Over 31,203 tokens the mean log-probability was −0.367 with transformers and −0.361 with vLLM. We looked at the seven Chinese-character tokens separately: −3.22 and −3.19. The independent implementation finds the Chinese word in the middle of a Hungarian sentence just as likely as vLLM does.

The second: we let the reference write the 24 answers itself. Five answers had Chinese characters, with 8.7 unknown words per thousand. The "Tiszelt Minta Bt." and the "Az alábbi levelt tudod直接使用" quoted at the top of this article did not come from vLLM. They came from here.

For completeness, the two implementations do not match bit for bit. The most likely token differs in 7% of positions, which looks like a lot at first sight. But the difference has no direction, and it does not fall on the faulty words: the eight strongly divergent tokens are all ordinary words. A community measurement found the same 6–9% inside a single engine, between the path that processes the prompt and the path that generates.

That rules out the runtime. What remains is the model.

Meanwhile others reached the same place in other languages. On the model's Hugging Face page, users report Japanese and Chinese answers with English and Chinese insertions, on the unquantized weights as well; commenters see the same in German, Portuguese and Ukrainian. Another measurement found Chinese characters in German and Spanish answers on two other engines. We did not measure those numbers, so I do not claim them. I only say the picture fits.

How much worse, as a number

The blind test also measures taste, and the mechanical measure only sees gross errors. There is a third number that depends on neither: how well the model predicts real text written by people. We measure it in bits per character, and lower is better.

Bar chart: bits per character on three corpora, lower is better. Hungarian mixed text: Qwen4 1.04, Qwen3.6 0.80, Qwen4 is 30 percent worse. Hungarian business text: 0.89 and 0.71, 26 percent worse. English text: 0.70 and 0.66, 7.5 percent worse.
corpusQwen4Qwen3.6difference
Hungarian, mixed text1.040.80+30%
Hungarian, business text0.890.71+26%
English text0.700.66+7.5%

The two models split text the same way, the Hungarian corpus comes to 146,066 and 146,080 tokens, so the comparison is clean. In English, Qwen4 predicts seven and a half percent worse than its predecessor. In Hungarian, thirty.

The regression depends on the language. Why, we do not know, and I will not guess.

What got better: arithmetic

Here comes the uncomfortable part for anyone expecting a simple verdict. Qwen4 is not a bad model.

On the dataset we released with an earlier article, we measured the same 1,273 calculation traps: decision tasks where the answer that matches on the surface is wrong, and the right one needs one step of calculation.

Qwen3.6Qwen4
without thinking42.3%58.1%
with thinking95.1%99.1%
of which partial payment (327 items)81.7%98.8%
generated tokens per item1,655362

Partial payment was the type where Qwen3.6 got every fifth item wrong even with thinking. Qwen4 misses four out of 327. And it does so with a quarter of the thinking.

It also notices missing data more often. When the text lacks what the decision needs, Qwen3.6 with thinking said so 18 times out of 342. Qwen4 said so 63 times. That is still few, it picks an option anyway in 76% of cases, but the direction is right.

So one of our three expectations was met, and not by a small margin.

What did not get better: tools and documents

The picture on tool selection is mixed. When it has to decide in a single step which tool to call, Qwen4 is somewhat more accurate: it chose correctly 80 times out of 84, Qwen3.6 75 times. In our multi-step chat scenarios, however, it passed 12 of 19 against 15 for Qwen3.6. Its answers were fine in content. What was missing was discipline: it sent the same search four times word for word, once it invented a tool that does not exist, another time it skipped the required call.

On the 50-item document extraction (KIE) set it scored 93.75 points, the production model 96.0. Without thinking, 83.75.

And there was one more thing. At temperature zero, where the model should in principle always give the same answer, 11–12 items out of 50 gave a different result from run to run. We knew this fault: in August, with Flash-Next, a top-k kernel caused it. We went through the usual suspects (prefix cache, MTP, CUDA graphs), and it was none of them. Then we replaced that same kernel with a deterministic variant, and the number dropped to zero: 0 out of 50. So this is not the model's fault but the server's on our hardware, and it can be fixed. We have not yet measured what the replacement costs in speed.

Can the Hungarian be helped

We have already tried one quick intervention, the same one we measured and published on Qwen3.6: multiplying the output-layer rows of the Chinese, Japanese and Korean tokens by 0.7. No training is involved, and the rest of the model stays bit-identical.

Bar chart with two panels, on 24 Hungarian business tasks. Answers containing Chinese characters: Qwen4 3, Qwen4 with CJK damping 0, Qwen3.6 0. Words not in the dictionary, per thousand: Qwen4 10.0, Qwen4 with CJK damping 6.8, Qwen3.6 3.4.
answers with Chinese charactersunknown words / 1000
Qwen43 / 2410.0
Qwen4, damped0 / 246.8
Qwen3.6 (production)0 / 243.4

The Chinese characters are gone, and the document extraction score stayed the same item by item. "Tiszelt Ügyfél!" is still there in the damped model's letter, though, next to "ismétlődhjön" and "veszzük".

So we see two kinds of error, and only one of them can be cured this cheaply. A foreign token can be suppressed in the output layer. A malformed Hungarian word is not a foreign token but a wrong Hungarian continuation: it comes from deeper layers of the model, and that needs training.

What this measurement does not prove

The blind test is 24 tasks with a single rater and partial blinding. The mechanical measure and the perplexity support it, but they do not replace a study with several raters.

We measured one checkpoint, the official FP8, with the vLLM released on launch day. We did not run the unquantized weights ourselves; we only know others' reports about them.

The reference implementation's own answers were generated in batches, which distorts slightly. Teacher forcing is independent of that, and shows the same.

We measured writing only on Hungarian business text. About English quality we claim nothing beyond the perplexity.

We have not yet measured what damping costs this model in Chinese. With Qwen3.6, that was the deciding factor in choosing the dose.

And our production model is not flawless either: 3.29 out of five. Everything here is a comparison.

If you are trying a new model in your own language

Four steps worth running on your own tasks before you replace anything.

  1. Count the answers with Chinese characters and the words missing from the dictionary on your own tasks. Half an hour of work, and it warns you early.
  2. Measure perplexity on text in your language and in English, with the old and the new model. If the two do not change by the same amount, your language is the one that lost.
  3. Before you blame the runtime or the model, hand the output to an independent implementation with teacher forcing. If it gives the faulty token the same probability, the fault is the model's.
  4. Run the same request three times at temperature zero. Determinism is not a given, and without it every other measurement you make is noisy.

Where we stand

Qwen3.6-35B-A3B stays in production.

We are not letting go of Qwen4, because what it showed in arithmetic is worth continuing for. We are going on in three directions: measuring the damping dose on this model, Hungarian LoRA training for the deeper error, and the two together. Meanwhile we leave one question open that we cannot answer today: is the weaker Hungarian a lack of training data, or the price of the new architecture. The first can be helped. The second, not necessarily.

As soon as the next round has numbers, we will write it up.