Decode 35B-A3B: MoE, quantization, KV cache and speed
11 steps · about 4 h 30 min · Intermediate
- A Visual Guide to Mixture of Experts (MoE) in LLMs (video, Maarten Grootendorst (YouTube), 20 min)
Start with the picture of experts, a router and sparse versus dense layers, since that idea sits behind the 'A3B' in the name.
- A Visual Guide to Mixture of Experts (MoE) (article, Maarten Grootendorst, 25 min)
The written version adds routing, load balancing and a worked count of total versus active parameters.
- Mixture of Experts Explained (article, Hugging Face, 30 min)
A deeper look at how MoEs are trained and the trade-offs of serving them, now that you have the intuition.
- makeMoE: Implement a Sparse Mixture of Experts Language Model from Scratch (tutorial, Hugging Face (Avinash Sooriyarachchi), 45 min)
Reading a small router and top-k expert layer in code makes 'only a few experts run per token' concrete.
- GGUF Quantization Explained: Q4, Q5, Q6, Q8 Compared (guide, canitrun.dev, 15 min)
Explains why a 35B model is downloaded at Q4 or Q6 and how bits per weight set the file size.
- GGUF and llama.cpp (article, Neel Mishra, 20 min)
Its memory table includes a Mixtral MoE, which shows that you must hold all experts in memory even though few are active.
- KV Cache Explained (LLM Inference Interview) (reference, LiminalML, 15 min)
Learn the KV-cache memory formula, because a 1M-token context makes the cache a second memory bill beyond the weights.
- Gated DeltaNet (article, Sebastian Raschka, 25 min)
Shows how hybrid linear attention, with a 3:1 layer pattern, keeps the cache small for long context.
- An Introduction to Speculative Decoding for Reducing Latency in AI Inference (article, NVIDIA Technical Blog, 15 min)
Covers draft-and-verify decoding and multi-token prediction, the built-in speed-up feature in the new model's serving setup.
- Welcome Qwen 4: Cutting-edge intelligence on-device (article, Hugging Face, 20 min)
Apply everything to the real release: parameter counts, hybrid layer pattern, and day-0 llama.cpp and vLLM support.
- Qwen4 35B-A3B: How to Run Locally (tutorial, Unsloth, 40 min)
Finish by choosing a quantization and running the model with llama.cpp, so you can test your memory estimate.