Skip to main content

💬 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

OpenThai2.2-Qwen4-35b-a3b: Qwen4-35B-A3B fine-tuned to answer in Thai and English

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
BaseQwen/Qwen4-35B-A3B (35B parameters, 3B activated; vision encoder; MTP head)
What changesThe 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
MethodA gate on 100,525 output tokens, then LoRA training (rank 64) merged into the weights; 250 tensors differ from the base model
Data60,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
ReasoningThinking on by default; off via chat_template_kwargs={"enable_thinking": false}
Context1M tokens (base model); we served and tested it at 65,536 tokens
Revisionsmain: 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)
WeightsBF16 safetensors, 33 shards, 114 GB
LicenceApache-2.0 (as the base model), open weights

OpenThai2.2-Qwen4-35b-a3b: BF16 weights, model card and how to run ithuggingface.co/iapp/OpenThai2.2-Qwen4-35b-a3b

The strict revision: those tokens are switched off, so it cannot write other scripts at allhuggingface.co/iapp/OpenThai2.2-Qwen4-35b-a3b/tree/strict

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,060Qwen4-35B-A3BThis model
Thinking off, greedy1,232 (30.3%)6 (0.15%)
Thinking off, sampling of the Qwen card1,673 (41.2%)6 (0.15%)
Thinking on, the reasoning counted too2,378 (58.6%)5 (0.12%)
Thinking off, greedy, MTP head on (3 tokens)not run3 (0.07%)
Thinking on, MTP head on (3 tokens)not run5 (0.12%)
Answers with Chinese characters (the first three settings)1,106 / 1,550 / 2,2734 / 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-A3BThis model
"Answer in Chinese" (240 prompts): answers with Chinese characters239230
"How is … written in Chinese / Japanese / Korean" (465 requests it never saw): the answer has the correct native form290272
The same by language: Chinese (173) / Japanese (145) / Korean (147)117 / 89 / 84110 / 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): followed206

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 promptsQwen4-35B-A3BOur output-layer block aloneThis model: gate and fine-tune
Answers not in Thai and English only: thinking off greedy / sampling / thinking on1,232 / 1,673 / 2,3784 / 4 / 446 / 6 / 5
Thai answers with a foreign word between Thai words, thinking off37.3%39.0%20.8%
Writes Chinese when asked (240 prompts)2390230

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:

BenchmarkQwen4-35B-A3BThis modelDifferenceSE
GPQA Diamond, thinking on, 4 runs each85.7385.86+0.130.99
HealthBench Professional, thinking on (graded by OpenThai 2.0, not by GPT-5.4)46.2448.23+1.990.87
Video-Index, thinking off29.4029.17−0.240.94
Video-Index, thinking on, 2 runs each37.4436.90−0.540.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:

BenchmarkQwen4-35B-A3BThis modelDifferenceSE
IFEval, without the 23 prompts that demand another language78.9680.12+1.161.66
IFEval, all 541 prompts79.3077.82−1.481.73
IFEval, the 23 prompts that demand another language86.9626.09−60.8710.41
MMLU-Redux90.4490.23−0.210.31
HumanEval94.5194.51+0.001.93
BFCL v3 (official runner)73.2476.05+2.810.60

Thai:

BenchmarkThinkingQwen4-35B-A3BThis modelDifferenceSE
ThaiExamoff71.5475.19+3.661.42
OpenThaiEvaloff74.1175.65+1.540.77
IFEval-TH, without the 10 prompts that demand another languageoff69.2772.20+2.932.06
Math-500-THoff74.6075.80+1.201.36
MT-Bench-Thai (judge: OpenThai 2.0, 1 to 10)off5.595.63+0.040.19
HumanEval-THoff85.3784.15−1.222.12
HellaSwag-THoff58.3056.90−1.401.00
ThaiExamon79.7080.49+0.791.33
OpenThaiEvalon83.4483.12−0.320.76
IFEval-TH, without the 10 prompts that demand another language, 4 runs eachon71.2271.46+0.241.39
Math-500-THon66.0066.80+0.801.42
AIME24-TH, 4 runs eachon80.0080.83+0.834.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 needUse
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 requestThis model
A guarantee that the other scripts can never be writtenThe 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 KoreanThe original Qwen4-35B-A3B
More Thai knowledge (law, official letters, local facts) than Qwen4 hasNot 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 strict passed 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​

  1. 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.
  2. 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​

ModelWhat it doesSizeStatus
OpenThai 2.0Thai chat and reasoning LLM that reads images27BReleased
OpenThai2.2-Qwen4-35b-a3bThai and English LLM without stray Chinese words35B-A3BReleased
OpenThai 2.0 LegalThai legal model for RAG30B-A3BReleased
OpenThai 2.1 BoltThai LLM in two sizes, reads images, calls tools74B-A9B / E4BReleased
OpenThai-SystemOneThai and English decision model (no text generation)0.8BReleased
OpenThai 2.2 OCR MarkdownDocument pages to Markdown, tables stay tables0.6BUpdated 27 Nov
OpenThai 2.2 OCR TextOCR for printed text on a CPU8 MBUpdated 27 Nov
OpenThai 2.1 ASR StreamingLive Thai speech to text0.64BUpdated 2 Dec
OpenThai 2.0 NLP Core LiteAll core Thai NLP tasks in one model, on a CPU26.5MReleased
OpenThai 2.1 ASR EdgeThai speech to text for recordings, on a CPU33MReleased

🤝 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​

Siam AI Corporation

Compute for this model was provided by Siam AI Corporation. Thank you for your continued support of open Thai AI.