Alibaba Open-Sources Qwen4-35B-A3B: 3B Active Parameters, 1M Context, Apache 2.0
On this page 8 sections
TL;DR
Qwen4-35B-A3B, the first open-weight checkpoint of the Qwen4 generation, went live on Hugging Face and ModelScope on December 4 under Apache 2.0. The file holds about 57B parameters: 35B of main model, a 20B n-gram lookup table and a 2B draft head, with 3B active per token. Input is text, images or video, and the context window is 1,048,576 tokens natively. Qwen's own runs beat the dense Qwen3.8-27B on four of five published benchmarks and trade wins with the far larger Qwen3.8-Flash-Next; Artificial Analysis scores it 25 on its independent index against Flash-Next's 28. Unsloth's 3-bit GGUF runs the model in 18 GB of RAM with the n-gram table streamed from SSD.
What shipped
The main repo carries BF16 and FP8 checkpoints. ggml-org ships Q4_K_M, Q6_K and Q8_0 GGUFs, and Unsloth posted 1-bit through 8-bit quants the same morning, with its quant-picking charts attached. Ollama has a library entry, and vLLM and SGLang published serving recipes. The hosted version lists at $0.06 per million input tokens and $0.36 per million output on Alibaba's API per Artificial Analysis, with cache hits at $0.003; PC Watch's launch coverage quotes output at $0.48, so check the listing you actually bill against.
The license matters here. Flash-Next ships under the Qwen Community License; this checkpoint is Apache 2.0, so commercial use, modification and redistribution need no paperwork. Reception was immediate: the Hacker News thread reached 248 points and 48 comments inside two hours, and one reader spotted references to a dense Qwen4-27B and a Qwen4-4B inside the day-0 support commits, so the family probably is not finished.
Four ideas carry the model
The stack is 40 layers in one repeating pattern: three Gated DeltaNet layers, then one Qwen Sparse Attention layer, and every one of them a 256-expert MoE that routes each token to 8 experts plus a shared one. That routing is where the 3B active figure comes from.
Three layers in four compress what they read into a fixed-size state that stops growing when the context does. Every fourth layer gets to reread the record: a small indexer groups prior tokens in fours and picks up to 512 groups, so attention touches at most 2,048 tokens no matter how long the window. It works like a diary with an index; the index names the pages worth turning back to, and the turning budget never changes.
The second layer holds the other 20B parameters: a 10-million-row table of n-gram embeddings, bigrams and trigrams, where each token reads 16 rows and gates what comes back. It is a phone book the model speed-dials instead of re-deriving common word pairs, and it costs no transformer compute. Unsloth's docs call this table an Engram, the same name DeepSeek uses for the 196B sparse memory in V4.1-Flash. Two big labs now ship the same bet: a small compute path beside an enormous sparse lookup.
Two smaller pieces finish it. Each token carries four residual streams instead of one, with learned gates mixing them before every block. And a 2B multi-token-prediction head, trained on multi-step targets, works as a built-in speculative decoder: in llama.cpp you enable it with --spec-type draft-mtp --spec-draft-n-max 3, worth 22 percent faster generation on an Apple M5 with the Q4 quant per the release blog. Vision runs through a ViT that merges 2x2 groups of 16x16 patches and samples video at 2 frames per second in pairs.
The numbers, read both ways
Against the dense Qwen3.8-27B, Qwen's table wins four of five: DeepSWE v1.1 61.8 to 42.2, HealthBench Professional 47.4 to 29.8, Terminal Bench 4.1 21.2 to 5.6, FrontierCode-AA 2.0 16.1 to 14.9. GPQA goes the other way, 86.9 to 89.2.
Against Qwen3.8-Flash-Next, the bigger architectural preview, the picture splits by workload. DeepSWE 61.8 beats its 58.7, and HealthBench 47.4 clears its 34.8 by a wide margin. Coding flips: Flash-Next holds Terminal Bench at 24.2 and FrontierCode at 27.1, both well ahead.
The independent read lands in the same place. Artificial Analysis gives Qwen4-35B-A3B a 25 on Intelligence Index v5.0.2 against 28 for Flash-Next, from a class median of 9 for open-weight models between 40B and 150B parameters. Getting there took 175 million output tokens against a class median of 95.9 million, at $0.55 per index task versus Flash-Next's $0.57. It thinks in bulk. If you buy hosted intelligence per point, the pareto chart still favors bigger models; if you are filling a GPU you already own, the arithmetic is different.
One caveat: the window is an input limit, not a free pass. Prefill across a full 1M tokens still costs time and activation memory, and real limits depend on your runtime, quantization and concurrency.
Running it at home
Checkpoint math first: 57B parameters is about 114 GB at BF16, 57 GB at FP8 and 28.5 GB at 4-bit, before KV cache and activations. The n-gram table does not have to sit in VRAM. oMLX ships Metal kernels for the sparse attention and gated residual and can push the table to SSD, with an oQ4e quant for Apple Silicon. Unsloth Desktop does the same trick for GGUF: its 3-bit build runs in 18 GB of RAM. Llama.app's model page lists 32 GB of RAM as the floor for a quantized build whose weights total 36 GB.
The reasoning dial is exposed everywhere: reasoning_effort takes xhigh, high, low or off, with high as the checkpoint default and xhigh as the hosted default that Artificial Analysis measured. Qwen recommends ceilings of 262,144 reasoning tokens and 131,072 output tokens for hard agentic work, and warns that lower effort can cost more in retries than it saves per turn. The reference tokenizer wants tiktoken and trust_remote_code=True; the bundled Jinja template produces the same text with different token IDs, so pick one and stay with it.
Fine-tune it, and read the honest graph
Hugging Face shipped a TRL recipe with the release: a LoRA adapter trained with asynchronous GRPO to triage security alerts and cite the evidence behind each label, runnable on a two-GPU HF Job with vLLM sampling on one card and training on the other. The writeup includes the held-out CyberDefense Bench results: the base model passes 4 of 12 tasks, the adapter at update 50 passes 6, and the adapter at update 100 passes 3, while the training reward keeps climbing. A reward curve rising while a held-out score falls is the chart marketing usually loses. This one is on the blog, and it is the best argument in the post for choosing adapters by measurement.
For builders
The Qwen3.8-27B finetuning economy was one of the liveliest in open weights. It just got its successor, with a cheaper per-token path and a license that removes the paperwork.
Key Takeaways
- Qwen4-35B-A3B, the first open-weight Qwen4 checkpoint, is live on Hugging Face and ModelScope under Apache 2.0: about 57B parameters (35B main, 20B n-gram table, 2B MTP head), 3B active per token, native text, image and video input, 1,048,576-token context.
- Qwen's numbers beat dense Qwen3.8-27B on four of five benchmarks (DeepSWE 61.8 vs 42.2, HealthBench Pro 47.4 vs 29.8, Terminal Bench 4.1 21.2 vs 5.6, FrontierCode 16.1 vs 14.9; GPQA 86.9 vs 89.2) and split with Qwen3.8-Flash-Next: wins on DeepSWE (58.7) and HealthBench (34.8), losses on Terminal Bench (24.2) and FrontierCode (27.1).
- Independent check: 25 on the Artificial Analysis Intelligence Index v5.0.2 against Flash-Next's 28, class median 9; 175 million output tokens against a 95.9 million median; $0.55 per index task.
- The architecture does the work: Gated DeltaNet on three of four layers with a fixed-size state, Qwen Sparse Attention capped at 2,048 tokens per layer, a 20B n-gram table read 16 rows at a time, 256-expert MoE with 8 routed plus 1 shared experts, and a 2B MTP drafter worth 22 percent faster generation on an M5.
- Local floor: day-0 llama.cpp, Unsloth, Ollama, vLLM, SGLang and MLX support; checkpoint arithmetic gives 114 GB BF16, 57 GB FP8, 28.5 GB at 4-bit, and Unsloth's 3-bit GGUF runs in 18 GB of RAM with the table on SSD.
- Apache 2.0 removes the community-license terms Flash-Next carries, and the published TRL GRPO recipe ships with a held-out eval that got worse with more training, 6 of 12 down to 3 of 12: pick adapters by measurement, not by checkpoint number.
Sources: Qwen4-35B-A3B model card, Hugging Face release blog, Artificial Analysis model page, Artificial Analysis on Qwen3.8-Flash-Next, PC Watch, AlphaSignal, Hacker News thread, Unsloth GGUF repository