Open-weights MoE models: how Amazon Ergo is built and served

12 steps · about 6 h 38 min · Intermediate

  1. The Illustrated Transformer (article, Jay Alammar, 45 min)

    Ergo is a mixture-of-experts transformer, so you need the transformer block (attention plus feed-forward) first.

  2. Neural Networks: Zero to Hero (guide, Andrej Karpathy, 2 h)

    Karpathy's 'Let's build GPT' lecture in this series turns the transformer diagrams into working code for a decoder-only model like Ergo.

  3. Mixture of Experts Explained (blog, Hugging Face, 30 min)

    It introduces experts, routers and sparsity, which explain how Ergo has 1.1T total parameters but only 55B active per token.

  4. Mixture of Experts (MoEs) in Transformers (blog, Hugging Face, 25 min)

    It shows how MoE layers replace dense feed-forward layers and why expert parallelism spreads huge models across devices.

  5. makeMoE: Implement a Sparse Mixture of Experts Language Model from Scratch (blog, Hugging Face (Avinash Sooriyarachchi), 40 min)

    Reading a small working router and top-k expert implementation makes the idea concrete.

  6. KV Caching Explained: Optimizing Transformer Inference Efficiency (blog, Hugging Face (not-lain), 15 min)

    Fast token generation depends on the KV cache, so learn it before reading any speed claims.

  7. KV Cache: The Complete Guide (guide, Prompt20 Blog, 30 min)

    It works through the memory math, paging and prefix caching that explain why a 1M-token context is expensive to serve.

  8. Quickstart - vLLM (doc, vLLM docs, 30 min)

    Amazon says Ergo runs on vLLM, so this step has you run offline batch inference and an OpenAI-compatible server with a small model.

  9. Quickstart - SGLang Documentation (doc, SGLang docs, 30 min)

    SGLang is the other engine Amazon supports for Ergo, and trying both lets you compare their serving workflows.

  10. Introducing Amazon Ergo: A fast, cost-effective open-weights model (article, Amazon Frontier Model Research, 10 min)

    The primary announcement ties the concepts together: MoE design, Trainium3 serving speed, price and open-weights licensing.

  11. Amazon-FMR/Ergo (reference, Hugging Face, 15 min)

    The model card shows quantization options, file sizes of 626 GB to 2.22 TB, and the loading code, so you can see what 'open weights' means in practice.

  12. Amazon releases Ergo open-weight AI model (article, CASRAI, 8 min)

    It closes by showing how to read vendor-reported benchmarks critically, since the scores are Amazon's own and the speeds depend on Amazon's hardware setup.