Results
Test set: 317 LeetCode problems (168 released between August 2024 and March 2025, plus 149 older problems),
none used in training or for choosing between training runs. Same settings for every model: thinking on,
temperature 1.0, top_p 0.95, top_k 20, min_p 0, 16k-token budget, 2 samples per problem, solutions checked against
the problems' unit tests.
Table with columns: Qwen3.6-35B-A3B (base), Qwen3.8-35B-A3B, Qwen3.8-27B | Qwen3.6-35B-A3B (base) | Qwen3.8-35B-A3B | Qwen3.8-27B |
|---|
| Pass rate (317 problems) | 22.1% | 54.9% | 68.8% |
| Easy / Medium / Hard (71 / 154 / 92) | 64.8% / 14.6% / 1.6% | 86.6% / 57.8% / 25.5% | 93.0% / 75.0% / 39.7% |
| Answers that hit the 16k budget | 76.3% | 25.4% | 15.3% |
| Correct when the answer finished | 93.3% | 73.6% | 81.2% |
| Active parameters per token | about 3B | about 3B | 27B |
Paired by problem: +32.8 points over the base model (95% interval +28.4 to +37.2) and -13.9 points against
Qwen3.8-27B (-17.8 to -10.1).
Development sets (also used to choose between training runs, so these numbers are optimistic):
Table with columns: base, Qwen3.8-35B-A3B, Qwen3.8-27B | base | Qwen3.8-35B-A3B | Qwen3.8-27B |
|---|
| LeetCode Medium/Hard (167 problems) | 19.8% | 65.3% | 71.0% |
| Codeforces (163 problems) | 19.0% | 52.8% | 58.9%* |
| Non-coding check (maths, instruction following, knowledge; 600 items) | 89.0% | 88.2% | 92.2% |
*One sample per problem for Qwen3.8-27B on Codeforces.
All scores in this card were measured with vLLM on the AWQ version (routed experts at 4-bit, all other weights at
16-bit). The bf16 weights in this repository were not run directly; they differ from the AWQ version only in the
routed experts, which are the unmodified bf16 weights of the base model.
Files and speed
The GGUF files were not evaluated separately; all scores above come from the AWQ version.
Speed (vLLM, one request at a time, same GPU, both models with 4-bit weights: this model's AWQ version and
cyankiwi/Qwen3.8-27B-AWQ-INT4): generation 2.9x and prompt processing 6.2x that of Qwen3.8-27B.
Use
Same architecture and chat template as Qwen/Qwen3.6-35B-A3B; any runtime that supports that model supports this one.
Recommended settings (the ones measured above): thinking on, temperature 1.0, top_p 0.95, top_k 20, min_p 0,
presence_penalty 0, and room for at least 16k new tokens.
vLLM:
vllm serve EdwinS9/Qwen3.8-35B-A3B-AWQ --max-model-len 32768 --reasoning-parser qwen3
llama.cpp:
llama-server -hf EdwinS9/Qwen3.8-35B-A3B-GGUF:Q4_K_M --jinja -c 32768 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
Ollama (recent version): a plain ollama run hf.co/... does not set the chat template for this model, so create
it from a Modelfile that uses Ollama's Qwen 3.5-family renderer and parser:
ollama pull hf.co/EdwinS9/Qwen3.8-35B-A3B-GGUF:Q4_K_M
Modelfile:
FROM hf.co/EdwinS9/Qwen3.8-35B-A3B-GGUF:Q4_K_MRENDERER qwen3.5PARSER qwen3.5PARAMETER temperature 1.0PARAMETER top_p 0.95PARAMETER top_k 20PARAMETER num_ctx 32768
ollama create qwen3.8-35b-a3b -f Modelfileollama run qwen3.8-35b-a3b
LM Studio: search for EdwinS9/Qwen3.8-35B-A3B-GGUF and download Q4_K_M.
How it was made
- Teacher: Qwen3.8-27B (FP8), reasoning effort medium. 3,031 answers to LeetCode-style and Codeforces problems
(12.7M tokens), kept only if they finished on their own and passed every unit test. Problems from
newfacade/LeetCodeDataset (Apache-2.0) and
open-r1/codeforces (CC-BY-4.0); every answer was
written by Qwen3.8-27B.
- Loss: half cross-entropy on the teacher's tokens, half matching the teacher's top-20 token distribution at every
position (both models share a tokenizer).
- LoRA rank 16 on attention, linear attention and the shared expert (19.2M parameters). Routed experts and routers
frozen. One epoch. Merged into the bf16 weights; only the 250 trained matrices differ from the base model.
- Test-set problems were kept out of training by problem id; LeetCode problems were deduplicated against the test
set by 8-gram overlap. The problems are public, so exposure during pretraining cannot be ruled out for any of
the three models.
Limitations
- Trained on Python function-level and competitive programming problems only. Agentic, multi-file and
repository-level coding were not trained or measured.
- Well behind Qwen3.8-27B on hard problems (25.5% vs 39.7% on the test set) and still runs out of budget more
often (25% vs 15% of answers).
- Maths: 11 points behind Qwen3.8-27B on the non-coding check (84.0% vs 95.0%).
- The vision tower is unchanged from the base model and was not evaluated after training.
- One training run (one seed).
Licence and credits
Apache-2.0, as both Qwen models. Built on Qwen/Qwen3.6-35B-A3B with Qwen/Qwen3.8-27B as teacher; all credit for the
base capabilities goes to the Qwen team. The AWQ version uses QuantTrio's AWQ quantization of the base model's
experts (Apache-2.0). Training problems come from newfacade/LeetCodeDataset (Apache-2.0) and open-r1/codeforces
(CC-BY-4.0). The training data is not released.