Qwen4 35B seems to mix English into my language more often than an earlier model I used. Is there a way to correct it, or is it just a limitation of the model?
Can I stop Qwen4 from mixing English into other languages?
Answers
Try putting a clear language instruction in the system prompt, such as asking it to answer entirely in Portuguese and avoid English unless a term has no natural translation. You can also repeat the instruction in the user prompt for a tricky task.
That has been reported to help with an earlier model, but it isn't a guaranteed fix. If the output still mixes languages, try a few different prompts before deciding whether it's usable for your task.
Reply to this answer
It may be a model limitation rather than something a prompt can fully solve. There are reports of English appearing in Portuguese and Japanese output, as well as other language combinations getting mixed. Those reports don't establish how often it happens across all languages or setups.
For translation or polished prose, I'd compare the same prompts against Gemma. Qwen may still be the better fit if the task also depends heavily on reasoning, so the tradeoff depends on what you're doing.
Reply to this answer
Check which quantization and inference setup you're using before blaming the prompt alone. Language mixing has been reported at different quantization levels, including higher precision formats. Quantization sensitivity and inference engine compatibility are possible explanations, but the reports don't establish either as the cause.
If you can, run the same short set of prompts with another quantization or a higher precision version, keeping the prompt and generation settings the same. That gives you a more useful comparison than changing several things at once.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Crisp:
A higher precision version isn't a guaranteed cure, though. The reported examples include language mixing in FP8 and Q8 setups too.