Qwen's new open model is called 35B but ships 56.8 billion parameters. We read every safetensors header: 41 GB of the download is one n-gram lookup table, and only 10 of its 40 layers keep a per-token cache.
This explains reporting by
Qwen on Hugging Face: Qwen4-35B-A3B model card (Dec. 3, 2026). Read the original first:
https://huggingface.co/Qwen/Qwen4-35B-A3B
In one minute #
- Qwen4-35B-A3B is Apache 2.0, with 3B parameters active per token and a native 1,048,576-token context.
- The files hold 56.8 billion BF16 parameters, 113.6 GB. The name counts 35B; the card adds a 20B n-gram table and 2B for multi-token prediction.
- By our read of the headers: experts 64.4 GB, n-gram table 41.0 GB, everything else 8.3 GB.
- The n-gram table is a lookup: each token reads a few rows of it, not all 41 GB. Whether your runtime can keep it off the GPU is not stated.
- 30 of 40 layers use Gated DeltaNet, which keeps a fixed-size state. Only 10 keep a growing per-token cache, about 20 KiB per token, or about 21 GB at 1M tokens.
What Qwen released #
The Qwen team posted Qwen4-35B-A3B on Hugging Face on December 3 (UTC) under Apache 2.0. It takes text, images and video and writes text. The card lists GPQA Diamond 86.9, Deep SWE 61.8 and Terminal Bench 4.1 at 21.2; the rest of its scores are only in a chart image.
Its layout repeats ten times: three Gated DeltaNet blocks (a linear-attention design), then one Qwen Sparse Attention block, each followed by a mixture-of-experts block with 256 experts, 8 routed plus 1 shared per token.
Where the 114 GB goes #
We read the JSON header of each of the 33 safetensors files with two HTTP range requests per file, and summed the byte size of every tensor by name. All weights are BF16.
part GB params (BF16) share
MoE experts 64.42 32.2B 56.7%
n-gram embedding table 40.96 20.5B 36.0%
attention, norms, other 3.62 1.8B 3.2%
token embedding + lm_head 2.03 1.0B 1.8%
multi-token prediction 1.72 0.9B 1.5%
vision encoder 0.89 0.4B 0.8%
total 113.65 56.8B
So the 35B in the name is roughly everything except the n-gram table and the MTP layer, which matches the card's own line: 35B with 3B activated, plus 20B n-gram embedding and 2B MTP.
What the n-gram table is #
config.json sets ngram_size to 3, a base table of 10,000,000 entries, and applies it at one layer (ple_layer_ids: [2]). The card describes bigram and trigram embeddings added at layer 2, improving quality without extra compute. In the files it is split into 128 shards of one tensor.
A lookup table is read by index. For each token the model fetches a few rows that match the recent tokens, so the compute is tiny and the bandwidth per token is small. That is very different from the experts, where every routed expert's matrices are multiplied.
In principle that makes the table a good candidate to keep in system RAM or even memory-mapped from disk while the experts sit on the GPU. The card does not say whether any runtime does this today, so treat it as a question to check in your runtime's notes, not a promise.
What the 1M context costs #
Gated DeltaNet layers keep a fixed-size state no matter how long the input is. Only the 10 sparse-attention layers keep a key and value for every token. From config.json: 2 key-value heads, head size 256.
per token = 10 layers x 2 KV heads x 256 dims x 2 (K and V) x 2 bytes (BF16)
= 20,480 bytes, about 20 KiB
at 1,048,576 tokens = about 21.5 GB (20 GiB)
if all 40 layers were full attention = about 86 GB
The sparse-attention indexer keeps its own smaller cache, and runtimes add overhead, so read 21 GB as the floor for the main cache at full context, not the total.
Rough memory to run it #
- Full BF16: 113.6 GB of weights, plus cache. Server-class only.
- 8-bit weights: about 57 GB, plus cache and runtime overhead.
- 4-bit weights: about 28 GB, plus cache. If a runtime can leave the n-gram table in system RAM, the GPU part drops to about 18 GB at 4 bits for the remaining 72.7 GB of BF16 weights.
These are arithmetic from the byte counts above, not measured runs. Quantization formats add scales, so real files run a little larger.
Who is affected #
| Case | Status |
|---|---|
| Anyone planning to run Qwen4-35B-A3B locally | Budget for 56.8B parameters on disk, not 35B. 113.6 GB in BF16. |
| Long-context use | About 20 KiB of main cache per token in BF16, about 21 GB at 1M tokens, by our arithmetic. |
| Commercial use | Apache 2.0, per the model card and Hugging Face tags. |
What to do #
- Check your runtime's support notes for the n-gram table before buying hardware around it.
- Size memory from the byte table above, plus the per-token cache for your real context length.
- Use the card's sampling settings: temperature 1.0, top_p 0.95, top_k 20 with thinking on.
What is still unknown #
- The card does not say whether the n-gram table can be offloaded from the GPU, or how any runtime handles it.
- Benchmark scores are Qwen's own, and most are only in a chart image we could not read as numbers.
- Our cache math covers the 10 full-attention layers in BF16. The indexer cache, the DeltaNet state and runtime overhead come on top.
Sources #
- Qwen on Hugging Face: Qwen4-35B-A3B model card (Dec. 3, 2026) — the original report
- Qwen4-35B-A3B config.json
- Qwen4-35B-A3B model.safetensors.index.json
- Sebastian Raschka: How far behind are open-weight models? (Dec. 3, 2026)
AI News Report· every headline, every morning.