Decode 35B-A3B: MoE, quantization, KV cache and speed

11 steps · about 4 h 30 min · Intermediate

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.