{"slug": "qwen4-35b-a3b-is-a-114-gb-download-where-the-bytes-go-and-what-it-takes-to-run", "title": "Qwen4-35B-A3B is a 114 GB download: where the bytes go and what it takes to run", "summary": "Qwen posted Qwen4-35B-A3B on Hugging Face on December 3, 2026 under Apache 2.0, a model named for 35B parameters that actually ships 56.8 billion BF16 parameters across a 113.6 GB download, with 3B parameters active per token and a native 1,048,576-token context. Reading the JSON headers of all 33 safetensors files, the analysis attributes 64.42 GB to MoE experts, 40.96 GB to a 20.5B-parameter n-gram embedding table applied at layer 2, and 8.3 GB to everything else, including 1.72 GB for multi-token prediction and 0.89 GB for the vision encoder. Because 30 of 40 layers use Gated DeltaNet with fixed-size state, only the 10 sparse-attention layers keep a per-token KV cache of about 20 KiB, roughly 21.5 GB at 1M tokens versus about 86 GB if all 40 layers were full attention.", "body_md": "# Qwen4-35B-A3B is a 114 GB download: where the bytes go and what it takes to run\n\nQwen'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.\n\n**This explains reporting by**\n\n[Qwen on Hugging Face: Qwen4-35B-A3B model card (Dec. 3, 2026)](https://huggingface.co/Qwen/Qwen4-35B-A3B).\nRead the original first:\n\n[https://huggingface.co/Qwen/Qwen4-35B-A3B](https://huggingface.co/Qwen/Qwen4-35B-A3B)\n\n## In one minute\n\n- Qwen4-35B-A3B is Apache 2.0, with 3B parameters active per token and a native 1,048,576-token context.\n- 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.\n- By our read of the headers: experts 64.4 GB, n-gram table 41.0 GB, everything else 8.3 GB.\n- 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.\n- 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.\n\n## What Qwen released\n\nThe 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.\n\nIts 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.\n\n## Where the 114 GB goes\n\nWe 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.\n\n```\npart                         GB      params (BF16)   share\nMoE experts                 64.42    32.2B           56.7%\nn-gram embedding table      40.96    20.5B           36.0%\nattention, norms, other      3.62     1.8B            3.2%\ntoken embedding + lm_head    2.03     1.0B            1.8%\nmulti-token prediction       1.72     0.9B            1.5%\nvision encoder               0.89     0.4B            0.8%\ntotal                      113.65    56.8B\n```\n\nSo 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.\n\n## What the n-gram table is\n\nconfig.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.\n\nA 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.\n\nIn 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.\n\n## What the 1M context costs\n\nGated 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.\n\n```\nper token = 10 layers x 2 KV heads x 256 dims x 2 (K and V) x 2 bytes (BF16)\n          = 20,480 bytes, about 20 KiB\nat 1,048,576 tokens = about 21.5 GB (20 GiB)\nif all 40 layers were full attention = about 86 GB\n```\n\nThe 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.\n\n## Rough memory to run it\n\n- Full BF16: 113.6 GB of weights, plus cache. Server-class only.\n- 8-bit weights: about 57 GB, plus cache and runtime overhead.\n- 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.\n\nThese are arithmetic from the byte counts above, not measured runs. Quantization formats add scales, so real files run a little larger.\n\n## Who is affected\n\n| Case | Status | \n|---|---|\n| Anyone planning to run Qwen4-35B-A3B locally | Budget for 56.8B parameters on disk, not 35B. 113.6 GB in BF16. | \n| Long-context use | About 20 KiB of main cache per token in BF16, about 21 GB at 1M tokens, by our arithmetic. | \n| Commercial use | Apache 2.0, per the model card and Hugging Face tags. | \n\n## What to do\n\n- Check your runtime's support notes for the n-gram table before buying hardware around it.\n- Size memory from the byte table above, plus the per-token cache for your real context length.\n- Use the card's sampling settings: temperature 1.0, top_p 0.95, top_k 20 with thinking on.\n\n## What is still unknown\n\n- The card does not say whether the n-gram table can be offloaded from the GPU, or how any runtime handles it.\n- Benchmark scores are Qwen's own, and most are only in a chart image we could not read as numbers.\n- Our cache math covers the 10 full-attention layers in BF16. The indexer cache, the DeltaNet state and runtime overhead come on top.\n\n## Sources\n\n- [Qwen on Hugging Face: Qwen4-35B-A3B model card (Dec. 3, 2026)](https://huggingface.co/Qwen/Qwen4-35B-A3B) — the original report\n- [Qwen4-35B-A3B config.json](https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/config.json)\n- [Qwen4-35B-A3B model.safetensors.index.json](https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/model.safetensors.index.json)\n- [Sebastian Raschka: How far behind are open-weight models? (Dec. 3, 2026)](https://sebastianraschka.com/blog/2026/how-far-behind-are-open-weight-models.html)\n\n[AI News Report](https://theainewsreport.com/)· every headline, every morning.", "url": "https://wpnews.pro/news/qwen4-35b-a3b-is-a-114-gb-download-where-the-bytes-go-and-what-it-takes-to-run", "canonical_source": "https://theainewsreport.com/2026-12-04-qwen4-35b-a3b-where-the-114-gb-goes.html", "published_at": "2026-12-04 15:38:11+00:00", "updated_at": "2026-12-04 16:16:58.579565+00:00", "lang": "en", "topics": ["large-language-models", "ai-infrastructure", "machine-learning", "ai-research"], "entities": ["Qwen", "Qwen4-35B-A3B", "Hugging Face", "Gated DeltaNet", "Qwen Sparse Attention"], "also_reported_by": [], "takeaway": "Qwen4-35B-A3B's 113.65 GB BF16 download is 64.42 GB of MoE experts plus a 40.96 GB n-gram lookup table read by index, and its 1M-token KV cache is about 21.5 GB because only 10 of 40 layers keep per-token state.", "recommendation": {"advice": "Budget about 21.5 GB of KV cache for 1M-token contexts on Qwen4-35B-A3B and check whether your runtime can keep the 41 GB n-gram table in system RAM or memory-mapped from disk instead of on the GPU.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/qwen4-35b-a3b-is-a-114-gb-download-where-the-bytes-go-and-what-it-takes-to-run", "markdown": "https://wpnews.pro/news/qwen4-35b-a3b-is-a-114-gb-download-where-the-bytes-go-and-what-it-takes-to-run.md", "text": "https://wpnews.pro/news/qwen4-35b-a3b-is-a-114-gb-download-where-the-bytes-go-and-what-it-takes-to-run.txt", "jsonld": "https://wpnews.pro/news/qwen4-35b-a3b-is-a-114-gb-download-where-the-bytes-go-and-what-it-takes-to-run.jsonld"}}