Results
Greedy decoding, default chat template.
- 16 of 16 new open-ended questions and instructions were answered in Chinese, and 65-70% of a mixed set of 40 new prompts.
- Control: 10,000 random weights, each set to -0.2 and to +0.2 (20,000 tests), never changed the language, and neither did this weight set to +0.2.
- Math problems stay in English, and short factual questions switch about half the time. A system prompt asking for English mostly restores English. Switched factual answers are less accurate: 71% vs 97%.
Why it works
Input dimension 62 of this layer carries a massive activation: about 27 at the first token and at most 1.8 everywhere else. Nearly every token attends to the first token, so this weight adds a roughly constant vector to the attention output at every position. That vector points toward Chinese. It is a steering vector stored in one number.
The weight was found by a gradient scan over all 358M non-embedding weights followed by a line search. Code: github.com/qflen/one-weight-qwen.
License
Apache 2.0, as the base model.