News

Alibaba open-sources Qwen4-35B-A3B: 3B active, 1M-token context, 4-bit runs on 24GB (December 4, 2026)

On December 4, 2026, Alibaba's Qwen team released Qwen4-35B-A3B on Hugging Face and ModelScope, the first open-weight model of the Qwen4 generation. It pairs a 35B language backbone with roughly 3B active parameters per token, plus a 20.5B per-layer N-gram embedding table and a 2B multi-token-prediction module, for about 56.8B weights in total (the Hub shows 57B). It has 256 routed experts with 8 selected per token plus one shared expert, 40 layers arranged as three Gated DeltaNet layers and one Qwen sparse attention layer, a native 1,048,576-token context, and an Apache 2.0 licence. BF16 weights are 113.7GB across 33 shards; Q4_K_M is 36GB on disk and about 21.9GB resident, which is the configuration Qwen says runs on a 32GB Mac. Qwen Cloud lists the model at 0.06 and 0.36 dollars per million input and output tokens.

One-line summary

The headline number is not 35B. It is the split between 3B of compute and a 20.5B lookup table, which is what lets a 57B model fit on a single consumer GPU.

What happened ​

On December 4, 2026, Alibaba's Qwen team published Qwen4-35B-A3B on Hugging Face and ModelScope. It is the first model of the Qwen4 generation released as open weights — earlier Qwen4 milestones were the September training roadmap, the November 12 Qwen4-Max Preview API, and an August architectural preview of Qwen3.8-Flash-Next that shipped no weights.

The model card describes a mixture-of-experts language backbone with 35B total parameters and about 3B activated per token, though the Hugging Face blog quotes 3.8B for the same figure, a difference that comes from whether the MTP module and some shared structure are counted. On top of the backbone sit two non-compute blocks: a per-layer N-gram embedding table (PLE) of roughly 20.5B parameters, and a 2B multi-token-prediction head. The repository totals about 56.8B parameters, and the Hub file listing rounds to 57B.

The architecture, in the numbers that matter ​

ItemValue
Backbone / active per token35B / about 3B (blog: 3.8B)
Extra blocksPLE about 20.5B, MTP about 2B
Total weightsabout 56.8B (Hub: 57B)
Layers40
Layer pattern3 Gated DeltaNet + 1 Qwen sparse attention, repeating
Experts256 routed, 8 selected per token + 1 shared
Native context1,048,576 tokens
Modalitiestext, image, video in; text out
LicenceApache 2.0
BF16 weightsabout 113.7GB, 33 shards

The layer pattern is the part worth pausing on. Three of every four layers use linear attention with a fixed-size state, so their memory does not grow with context length. Only the sparse-attention layer stores a real KV cache, and it stores a selected subset. That is how a 1M-token window stays affordable on a single device — the cache grows at roughly one quarter of the layer count times the sparsity ratio, not at the full depth.

The PLE table is the other half of the trick. It holds bigram and trigram memories that are read per layer in small slices — the budget is 512 blocks or 2,048 tokens — so it participates in lookup but not in matrix multiplication. On the MLX/OMLX path Qwen supports offloading PLE to SSD and reading the rows each layer needs. This is why the resident footprint lands near 21.9GB rather than the full 57B.

Quantization and what actually fits ​

VersionDiskResidentPractical device
BF16about 113.7GBmulti-GPUdatacenter
FP8not disclosed—multi-GPU node
Q8_0about 59.4GB—64GB workstation
Q6_Kabout 51.0GB—48GB workstation
Q4_K_Mabout 36.0GBabout 21.9GB24GB GPU or 32GB Mac

Third-party roundups put the 4-bit resident range at 20.5 to 24.7GB depending on quantizer and context length. The official line is simply "runs on a 32GB Mac," which is true at short context and becomes untrue as the conversation grows.

Benchmarks, including the weak spots ​

Artificial Analysis scores the model at 25 on its intelligence index in the Xhigh reasoning setting. For scale, the median among open-weight models between 40B and 150B is 9, and Qwen4-Max scores 43. On the eight charted benchmarks the model beats the dense Qwen3.8-27B on all eight, but loses to Qwen3.8-Flash-Next on five of eight.

BenchmarkQwen4-35B-A3BComparison
AA intelligence index (Xhigh)25open-weight 40B–150B median 9
DeepSWE v1.161.8Qwen3.8-Flash-Next 58.7
FrontierCode-AA 2.016.1Qwen3.8-Flash-Next 27.1

The FrontierCode gap is the honest caveat: at roughly 16 points the model sits near 60% of a larger sibling on long-horizon code editing. Reasoning-heavy tasks are where sparse activation buys the most; multi-step code repair is where it costs the most.

Speed ​

First-token latency is quoted at about 13.66 seconds in the Xhigh thinking setting. That is thinking time, not network latency — the low and off settings shorten it substantially, and any comparison that puts it next to a decode-speed figure is measuring a different thing.

GGUF and OMLX builds enable MTP speculative decoding by default. On an Apple M5 with Q4 weights and three draft tokens, Qwen reports a 22% generation speedup. This is the same mechanism the 2B MTP head exists for: cheap draft tokens, verified by the main model.

Pricing and ecosystem ​

Qwen Cloud names the model qwen4-35b-a3b and prices it at 0.06 dollars per million input tokens and 0.36 per million output. The Featherless-hosted endpoint on Hugging Face lists 0.05 and 0.32. Day-one support arrived across transformers, llama.cpp, vLLM, SGLang, MLX, Ollama, LM Studio, Unsloth and LiteRT-LM. Within hours the community had posted hundreds of quantizations and dozens of fine-tunes.

One model-card note worth keeping: the Jinja chat template text is identical to earlier Qwen versions, but the token IDs may differ. Teams that hardcode token IDs rather than relying on the tokenizer will get silently wrong prompts.

Three things to check before deploying ​

One, size your GPU by weights, not by the name. 35B sounds like a 24GB card. It is 113.7GB in BF16. Single-GPU means 4-bit, and 4-bit means accepting a 21.9GB floor plus whatever the context allocates.

Two, the domestic accelerator path is separate. Qwen says the model will be served at scale on Qwen AI's platform using Pingtouge Zhenwu chips. Open weights and in-house silicon are two parallel tracks; teams planning to run on non-NVIDIA hardware should look for that platform's own deployment notes rather than assuming CUDA experience transfers.

Three, the licence pushes responsibility downstream. Apache 2.0 carries no acceptable-use policy and no revenue threshold. Integrate it into a public service and content moderation, logging and abuse prevention become your problem, not the vendor's.

Impact boundaries ​

The 35B/3B split, 256 experts with 8+1, the 3:1 layer pattern, 1,048,576-token native context, PLE at about 20.5B, MTP at about 2B, 56.8B total, 113.7GB BF16, 36GB/21.9GB for Q4_K_M, 59.4GB for Q8_0, the 22% MTP speedup, the 13.66-second first token and the benchmark figures come from the Hugging Face blog and model card, plus MarkTechPost and University 365 roundups. The 3B versus 3.8B discrepancy is a stated difference in counting method, not a correction. Pricing appears in two versions — Qwen Cloud and a third-party host — and the billed figure is the one that counts. No local reproduction was performed; the model is Apache 2.0. This is not a procurement recommendation.

Sources ​