💬 OpenThai2.2-Qwen4-35b-a3b: Qwen4 that answers in Thai and English, without Chinese words inside the answer
Available for download since 6 December 2026
35B3B activatedBase model's vision towerThinking on or offTool callingOpen weightsApache-2.0
Seen this before? You ask Qwen4 a question in Thai and a Chinese word turns up in the middle of a sentence, as in "แต่เมื่ออ่าน仔细ดู" or "เราต้อง遍历ตัวอักษร". The original Qwen4-35B-A3B does this often, in Thai answers and in English ones.
OpenThai2.2-Qwen4-35b-a3b is Qwen4-35B-A3B fine-tuned by iApp Technology to answer in Thai and English without Chinese words, or letters of any other script, turning up inside the answer, with thinking off and with thinking on. It still writes Chinese when the user asks for it.
- On 4,060 plain Thai and English prompts, the original model puts characters from outside Thai and English into 30% of its answers with thinking off and 59% with thinking on. This model does so in 0.15% and 0.12%.
- It is a fine-tune, not only a block at the output layer: Thai answers with a foreign word between Thai words fall from 37% to 21%.
- Asked to answer in Chinese (240 prompts), it wrote Chinese in 230 (the original: 239).
- No benchmark we measured is below the original's by more than twice its standard error, apart from prompts that demand a whole answer in another language (see Results and Limitations).
- On Thai tests it is a little better than the original: ThaiExam with thinking off is 75.19 against 71.54, and level with thinking on.
| OpenThai2.2-Qwen4-35b-a3b | |
|---|---|
| Base | Qwen/Qwen4-35B-A3B (35B parameters, 3B activated; vision encoder; MTP head) |
| What changes | The language of the output: answers stay in Thai and English, and Chinese is written when asked for. Architecture, tokenizer, chat template, vision tower and MTP head are the base model's, so it runs wherever Qwen4-35B-A3B runs, with the same commands |
| Method | A gate on 100,525 output tokens, then LoRA training (rank 64) merged into the weights; 250 tensors differ from the base model |
| Data | 60,084 conversations: 31,794 ordinary chats answered by the model itself and kept only when they passed program checks, 22,936 Thai-knowledge questions from the OpenThai 2.0 training data, 5,354 requests for another language answered by the original model |
| Reasoning | Thinking on by default; off via chat_template_kwargs={"enable_thinking": false} |
| Context | 1M tokens (base model); we served and tested it at 65,536 tokens |
| Revisions | main: writes Chinese when asked · strict: the same base with those tokens switched off; it cannot write other scripts at all and passed every condition of our release rule (see Revisions) |
| Weights | BF16 safetensors, 33 shards, 114 GB |
| Licence | Apache-2.0 (as the base model), open weights |
Results
Thai and English only
Counted on 4,060 plain Thai and English prompts that neither model saw in training.
| Answers with any character outside Thai and English, of 4,060 | Qwen4-35B-A3B | This model |
|---|---|---|
| Thinking off, greedy | 1,232 (30.3%) | 6 (0.15%) |
| Thinking off, sampling of the Qwen card | 1,673 (41.2%) | 6 (0.15%) |
| Thinking on, the reasoning counted too | 2,378 (58.6%) | 5 (0.12%) |
| Thinking off, greedy, MTP head on (3 tokens) | not run | 3 (0.07%) |
| Thinking on, MTP head on (3 tokens) | not run | 5 (0.12%) |
| Answers with Chinese characters (the first three settings) | 1,106 / 1,550 / 2,273 | 4 / 5 / 1 (the mahjong-tile emoji counted) |
In a separate code-switching test of 200 Thai prompts, 98.0% are answered in Thai (original 53.0%).
Another language on request
Asked for Chinese, it writes Chinese. Asked for a word or a sentence in Chinese, Japanese or Korean, it gives the native form about as often as the original. A whole answer in another language is a different matter.
| Qwen4-35B-A3B | This model | |
|---|---|---|
| "Answer in Chinese" (240 prompts): answers with Chinese characters | 239 | 230 |
| "How is … written in Chinese / Japanese / Korean" (465 requests it never saw): the answer has the correct native form | 290 | 272 |
| The same by language: Chinese (173) / Japanese (145) / Korean (147) | 117 / 89 / 84 | 110 / 77 / 85 |
| A whole answer demanded in another language at the end of a long instruction (IFEval's 23 such prompts: Hindi, Korean, Russian, Arabic and others): followed | 20 | 6 |
A fine-tune, not only an output-layer patch
The leak can be lowered in the output layer alone, without training; that was our first step too. We measured that step as a model of its own (a block that switches the tokens off in every context) and then trained. The block takes the characters away. The training works on what a block leaves behind, and it teaches the model when to open the gate.
| 4,060 plain prompts | Qwen4-35B-A3B | Our output-layer block alone | This model: gate and fine-tune |
|---|---|---|---|
| Answers not in Thai and English only: thinking off greedy / sampling / thinking on | 1,232 / 1,673 / 2,378 | 4 / 4 / 44 | 6 / 6 / 5 |
| Thai answers with a foreign word between Thai words, thinking off | 37.3% | 39.0% | 20.8% |
| Writes Chinese when asked (240 prompts) | 239 | 0 | 230 |
The share of Thai answers with a foreign word counts technical loan words too, so its level overstates the fault; the comparison between the columns is what was measured.
- Closing one script moves the model to the next one it can reach. A block on Chinese and Japanese alone made it write Korean and Russian where the original wrote Chinese; with every other script closed, Vietnamese words took the place in 4.6% of answers. The list that held covers 100,525 tokens.
- A gate, not a wall. In plain Thai and English chats the gate stays shut. In answers to a request for Chinese it opens.
Benchmarks
Our run of the original against our run of this model: one harness, vLLM, BF16 weights, one 80 GB GPU, compared question by question. Thinking off is greedy decoding; thinking on uses the sampling settings of the Qwen card. A difference smaller than about twice its standard error (SE) is not a change of the model.
Benchmarks from the Qwen card that we could run:
| Benchmark | Qwen4-35B-A3B | This model | Difference | SE |
|---|---|---|---|---|
| GPQA Diamond, thinking on, 4 runs each | 85.73 | 85.86 | +0.13 | 0.99 |
| HealthBench Professional, thinking on (graded by OpenThai 2.0, not by GPT-5.4) | 46.24 | 48.23 | +1.99 | 0.87 |
| Video-Index, thinking off | 29.40 | 29.17 | −0.24 | 0.94 |
| Video-Index, thinking on, 2 runs each | 37.44 | 36.90 | −0.54 | 0.97 |
These levels are not comparable with the numbers on the Qwen card (other grader for HealthBench, other frame settings for Video-Index); the comparison between the two columns is what was measured. The other benchmarks of the Qwen card (DeepSWE, Terminal-Bench, NL2Repo-Bench, APEX-Agents, AutomationBench, FrontierCode-AA, Work360, AA-Briefcase, Chartography) were not measured.
English, thinking off:
| Benchmark | Qwen4-35B-A3B | This model | Difference | SE |
|---|---|---|---|---|
| IFEval, without the 23 prompts that demand another language | 78.96 | 80.12 | +1.16 | 1.66 |
| IFEval, all 541 prompts | 79.30 | 77.82 | −1.48 | 1.73 |
| IFEval, the 23 prompts that demand another language | 86.96 | 26.09 | −60.87 | 10.41 |
| MMLU-Redux | 90.44 | 90.23 | −0.21 | 0.31 |
| HumanEval | 94.51 | 94.51 | +0.00 | 1.93 |
| BFCL v3 (official runner) | 73.24 | 76.05 | +2.81 | 0.60 |
Thai:
| Benchmark | Thinking | Qwen4-35B-A3B | This model | Difference | SE |
|---|---|---|---|---|---|
| ThaiExam | off | 71.54 | 75.19 | +3.66 | 1.42 |
| OpenThaiEval | off | 74.11 | 75.65 | +1.54 | 0.77 |
| IFEval-TH, without the 10 prompts that demand another language | off | 69.27 | 72.20 | +2.93 | 2.06 |
| Math-500-TH | off | 74.60 | 75.80 | +1.20 | 1.36 |
| MT-Bench-Thai (judge: OpenThai 2.0, 1 to 10) | off | 5.59 | 5.63 | +0.04 | 0.19 |
| HumanEval-TH | off | 85.37 | 84.15 | −1.22 | 2.12 |
| HellaSwag-TH | off | 58.30 | 56.90 | −1.40 | 1.00 |
| ThaiExam | on | 79.70 | 80.49 | +0.79 | 1.33 |
| OpenThaiEval | on | 83.44 | 83.12 | −0.32 | 0.76 |
| IFEval-TH, without the 10 prompts that demand another language, 4 runs each | on | 71.22 | 71.46 | +0.24 | 1.39 |
| Math-500-TH | on | 66.00 | 66.80 | +0.80 | 1.42 |
| AIME24-TH, 4 runs each | on | 80.00 | 80.83 | +0.83 | 4.06 |
MT-Bench-Thai is judged by OpenThai 2.0, a model of our own family, on a scale of 1 to 10. BFCL v3 is run with the official runner; the score is the share of its 3,841 items answered correctly.
Against the strict build (the revision strict), measured the same way: main is higher on ThaiExam with thinking off (75.19 against 70.45, SE 1.43) and lower on MT-Bench-Thai (5.63 against 6.06, SE 0.18); on the other benchmarks the two are within about twice the standard error of each other.
Two revisions in one repository
main(the repository's default, and the one this page describes): the other scripts are behind a gate. It writes Chinese when the user asks for it (230 of 240 requests), and 6, 6 and 5 answers of 4,060 held another script in the three settings. It missed one condition of our own release rule (see Limitations).strict: the same base with the tokens of the other scripts switched off, so it cannot write other scripts at all, even on request. It passed every condition of the release rule, and 1, 1 and 0 answers of 4,060 held a character outside Thai and English in the three settings: answers about mahjong that use the mahjong-tile emoji, none with a Chinese character.
hf download iapp/OpenThai2.2-Qwen4-35b-a3b --revision strict
Usage (vLLM)
We served it with vLLM (image vllm/vllm-openai:qwen4), text only, on one H100; every number on this page was measured with these settings. For other engines follow the original model card with this repository's name.
vllm serve iapp/OpenThai2.2-Qwen4-35b-a3b --trust-remote-code --language-model-only \
--tensor-parallel-size 1 --gpu-memory-utilization 0.95 --max-model-len 65536 \
--kv-cache-dtype nvfp4 --attention-config.indexer_kv_dtype fp8 \
--reasoning-parser qwen4 --enable-auto-tool-choice --tool-call-parser qwen4
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
r = client.chat.completions.create(
model="iapp/OpenThai2.2-Qwen4-35b-a3b",
messages=[{"role": "user", "content": "อธิบายภาษีมูลค่าเพิ่มโดยสังเขป"}],
temperature=0.7, top_p=0.8, presence_penalty=1.5,
extra_body={"top_k": 20, "chat_template_kwargs": {"enable_thinking": False}})
print(r.choices[0].message.content)
- Thinking is on by default. The example switches it off for a direct answer.
- Use the sampling settings of the Qwen card, as we did: thinking off temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5; thinking on temperature 1.0, top-p 0.95, top-k 20.
- With greedy decoding, prompts in Chinese loop more often (see Limitations).
Which model for which job
| You need | Use |
|---|---|
| A Thai and English assistant or a tool-calling agent, where a Chinese word in an answer is a defect, and now and then a Chinese, Japanese or Korean word, or a passage in Chinese, on request | This model |
| A guarantee that the other scripts can never be written | The revision strict of this repository: the tokens are switched off there (1, 1 and 0 answers of 4,060 in the three settings) |
| Whole answers in Hindi, Korean, Russian, Arabic or another language; prompts written in Chinese; work that is mostly in Chinese, Japanese or Korean | The original Qwen4-35B-A3B |
| More Thai knowledge (law, official letters, local facts) than Qwen4 has | Not this model: its job is to keep the answer in Thai and English; it knows a little more (about 3 points on Thai facts; ThaiExam +3.7 with thinking off, level with thinking on) |
⚠️ Honestly: what it cannot do yet
- Whole answers in a language other than Chinese are unreliable. Of IFEval's 23 prompts that demand the whole answer in another language (Hindi, Korean, Russian, Arabic, Bengali and others) it met 6; the original met 20. The other answers came out in Latin letters or as a mix of scripts, and two ran on to the length limit. A word or a sentence in Japanese or Korean on request works about as often as with the original.
- Prompts in Chinese can run into a loop. A question written in Chinese is answered in English, and rougher than the original does it. Of 200 such answers, 27 ended in a repeating loop with greedy decoding, 6 with the sampling settings above and 16 with thinking on (original 0 in the three settings). Asked to answer in Chinese, 22 of 240 answers looped with greedy decoding, 9 with sampling and 17 with thinking on (original 0). Use the sampling settings above, set
max_tokens, and for questions written in Chinese use the original Qwen4-35B-A3B. - It missed one condition of our own release rule. With thinking on, 132 of the 4,698 test answers ran to the length limit, against 117 for the original; the rule allowed five more than the original. The excess is on prompts in Chinese (the loops above); on the 4,060 plain Thai and English prompts it is 86 against 116. We release it with that miss stated; the revision
strictpassed every condition. - The other scripts are behind a gate, not removed. The model wrote another script unasked in a few answers of our tests (6, 6 and 5 of 4,060 answers in the three settings; of these 17, 8 answer a prompt that itself asks for a Chinese or Arabic word, 4 hold the mahjong-tile emoji, and 5 are slips). An unusual prompt can still open the gate. Not measured: later turns of a chat after the user asked for another language, and requests placed in a system prompt.
- Chinese text as input is answered in Thai or English. Given a Chinese text to summarise or translate, or a question written in Chinese, it does not answer in Chinese: on 398 test prompts with Chinese text (198 documents to summarise or translate, 200 questions written in Chinese) no answer held another script with greedy decoding, 1 with sampling and 27 with thinking on.
- A foreign word in Latin letters can still appear inside a Thai sentence now and then (in 100 answers read by hand, 7 had a stray foreign or half-English word and 3 a Thai spelling slip).
- It knows only a little more about Thailand than the original. On 720 Thai facts it was trained on it answers 41.3% and the original 38.2%; on 600 facts it was not trained on, 27.0% against 24.3%. ThaiExam is 75.19 against 71.54 with thinking off (+3.66, SE 1.42) and 80.49 against 79.70 with thinking on (+0.79, SE 1.33).
- Text-only adaptation. The vision tower is the base model's, unchanged, and the model was not trained on images. Video-Index is level with the original; no other image or video test was run.
- Not measured. Benchmarks on quantised weights: every number here is from BF16 weights with vLLM's NVFP4 KV cache, so test the language behaviour before you rely on a quantised build. Retrieval (RAG) prompts and long multi-turn chats. Nine of the benchmarks on the Qwen card (listed above).
- The model can produce incorrect, biased or unsafe content. It inherits the base model's safety tuning; we added no safety-specific training.
How it was made
- Output layer: a gate. The rows of 100,525 tokens (every token that writes a letter outside Thai, Latin and Greek, and every token with a letter only Vietnamese uses) get one vector subtracted. In an ordinary chat that lowers their score by about 80; where the model moves its hidden state against that vector, they score as in the original. No other token's score changes.
- LoRA training (rank 64, one epoch, 60,084 chats, merged into the weights). 31,794 ordinary chats, answered by the model itself with those tokens switched off and kept only when they passed program checks, and 22,936 Thai-knowledge questions with answers from the OpenThai 2.0 training data teach it to keep the gate shut; 5,354 requests for another language, answered by the original Qwen4-35B-A3B, teach it to open the gate when asked.
Compared with the original checkpoint, 250 tensors of the language model and the output layer differ. The vision tower, the MTP head, the tokenizer and the chat template are byte-identical.
👨👩👧 The OpenThai 2.0 family
| Model | What it does | Size | Status |
|---|---|---|---|
| OpenThai 2.0 | Thai chat and reasoning LLM that reads images | 27B | Released |
| OpenThai2.2-Qwen4-35b-a3b | Thai and English LLM without stray Chinese words | 35B-A3B | Released |
| OpenThai 2.0 Legal | Thai legal model for RAG | 30B-A3B | Released |
| OpenThai 2.1 Bolt | Thai LLM in two sizes, reads images, calls tools | 74B-A9B / E4B | Released |
| OpenThai-SystemOne | Thai and English decision model (no text generation) | 0.8B | Released |
| OpenThai 2.2 OCR Markdown | Document pages to Markdown, tables stay tables | 0.6B | Updated 27 Nov |
| OpenThai 2.2 OCR Text | OCR for printed text on a CPU | 8 MB | Updated 27 Nov |
| OpenThai 2.1 ASR Streaming | Live Thai speech to text | 0.64B | Updated 2 Dec |
| OpenThai 2.0 NLP Core Lite | All core Thai NLP tasks in one model, on a CPU | 26.5M | Released |
| OpenThai 2.1 ASR Edge | Thai speech to text for recordings, on a CPU | 33M | Released |
🤝 Get involved
- Found an answer that still mixes in a foreign word, or a prompt that sends the model into a loop? Send the team an example (with no personal data in it).
- Talk to us on the OpenThai Discord and in the Facebook group.
📄 Licence and credits
OpenThai2.2-Qwen4-35b-a3b is released under Apache-2.0, as the base model. These are open weights: the weights are free to download; the training data is not released.
Fine-tuned by iApp Technology from Qwen/Qwen4-35B-A3B (Apache-2.0). Built on Qwen4-35B-A3B by the Qwen team, Alibaba Cloud (Apache-2.0).
Training data attributions: prompts, problems and tools from nvidia/OpenMathInstruct-2 (CC-BY-4.0), nvidia/OpenCodeInstruct (CC-BY-4.0), nvidia/Nemotron-SFT-Agentic-v2 (CC-BY-4.0), nvidia/Nemotron-SFT-Instruction-Following-Chat-v4 (OpenMDW-1.1) and CohereLabs/aya_dataset (Apache-2.0); prompts and Thai-knowledge answers from the OpenThai 2.0 training data (iApp/AIEAT).
Developed by iApp, launched with AIEAT.
🙏 Thank you, Siam AI
Compute for this model was provided by Siam AI Corporation. Thank you for your continued support of open Thai AI.
