Amazon released Ergo on 1 December 2026: a mixture-of-experts model (each token uses only some of its parameters) with 1.1 trillion parameters, 55 billion of them active for each token. We read the headers of all 65 weight files by HTTP range request (reading only the first bytes of a file, which list each tensor's name, shape and type), without downloading the weights. We compared what they show with three open serving stacks: the vLLM recipe, the SGLang cookbook, and an open SGLang pull request for AWS Trainium3.[1]
What it means
Memory sets the hardware. The vLLM recipe asks for 980 GB of GPU memory for the 4-bit copy, whose files total 626 GB; the recipe's comments build the figure from the experts, the replicated 16-bit tensors and a 1.2 margin.[2] It puts the model on 8 B300 GPUs. The SGLang cookbook lists 4 to 16 GPUs, or 2 DGX Stations,[3] and the open Trainium3 draft uses one trn3.48xlarge and may change.[4] On top of that, each 1M-token sequence needs 68.7 GB of cache at 16 bits, so a rough count of long requests is your GPU memory minus 980 GB, divided by 68.7 GB. Cache grows with length: 100,000 tokens need about 6.6 GB.[5]
DeepSeek-V3's cache would be 73.7 GB, a projection to 1M tokens, since it is configured for 163,840, so Ergo's is 7% smaller.[5] Kimi K3's is 29.0 GB if a server stores its cache compressed and we count only its 24 full-attention layers, so Ergo's is 2.4 times Kimi K3's on that count; Kimi K3's other 69 layers keep a fixed-size state that the count leaves out.[6][5] These are payloads, not measured allocations, and we ran no inference.
The result
Ergo has DeepSeek-V3's expert counts, 256 routed and 8 active per token plus one shared, but two matrices per expert where DeepSeek-V3 has three. With three, its routed experts would total 1.62 trillion parameters, not 1.08.
| Part of the model | Parameters (billions) | Active per token (billions) |
|---|---|---|
| Routed experts, 256 per layer in 63 layers | 1,082.33 | 33.82 |
| Attention projections, 64 layers | 9.66 | 9.66 |
| Shared expert, 63 layers | 8.46 | 8.46 |
| Input embedding | 2.15 | 0 |
| Output head | 2.15 | 2.15 |
| Dense first block | 0.54 | 0.54 |
| Expert output norms | 0.13 | 0.004 |
| Router, other norms, residual scales and bias | 0.14 | 0.14 |
| Total | 1,105.55 | 54.77 |
The tensor bytes in the 65 headers sum to 625,993,710,592, the same number as the index. The routed experts are stored in MXFP4 (4-bit values, one 8-bit scale per 32 values), which is 4.25 bits per parameter and 575 GB of the 626 GB. We count 8 of 256 experts, with their output norms, as active, and the input embedding as a lookup (a table read, no matrix product). That gives 54.77 billion against Amazon's 55 billion. Rows are rounded.[1][7] The repository Amazon-FMR/Ergo holds this 4-bit-expert copy: 65 files, model-00001-of-00065.safetensors to model-00065-of-00065.safetensors, listed in model.safetensors.index.json. Only the routed experts are 4-bit; the other 51 GB (attention, shared expert, embeddings, router) is stored at 16 or 32 bits. A 16-bit copy, Amazon-FMR/Ergo-bf16 (2.22 TB), and an 8-bit-expert copy, Amazon-FMR/Ergo-mxfp8 (1.17 TB), are separate repositories.[1]
Inside one layer
Local layers (attending to a window of recent tokens) and global layers (attending to all tokens) hold tensors of the same shapes. Only the first layer differs in shape: it is dense. The attention projection wqkv is 10,240 by 8,192, which is (64 + 8 + 8) × 128: 64 query heads and 8 key and 8 value heads of size 128. A routed expert has an up matrix of 4,096 by 8,192 and a down matrix of 8,192 by 4,096, packed at 4 bits, and no gate matrix. The shared expert and the dense first block also have two matrices.[1]
What the shapes cannot show
Shapes do not name the activation function. Amazon's config gives the 512-token window and one global layer in four.[7] In the Transformers implementation of Ergo, layers 4, 8 and every fourth layer after them are global, and layer 1 is the dense one.[8] The vLLM recipe names the activation as non-gated ReLU² (a squared rectifier, no gate matrix), which fits the two-matrix shapes: "256 non-gated ReLU² experts (top-8) + one shared expert with per-expert output RMSNorm".[2] The SGLang cookbook says the 16 global layers carry no position encoding.[3] We did not verify either from the weights.
The cache
Only the 16 global layers grow with context: their KV cache (the keys and values kept for earlier tokens) is the long-context cost. The 48 local layers keep a fixed window: about 100 MB per sequence once it passes 512 tokens (512 positions at 16 bits), however long it gets.
| Model | Cached layers | Values per token | Cache payload for one sequence of 1,048,576 tokens at 16 bits |
|---|---|---|---|
| Amazon Ergo | 16 | 32,768 | 68.7 GB |
| DeepSeek-V3 | 61 | 35,136 | 73.7 GB |
| Kimi K3, 24 full-attention layers only | 24 | 13,824 | 29.0 GB |
Ergo stores full keys and values for 8 heads in each global layer. The two comparison models use multi-head latent attention (keys and values compressed into one latent), which keeps per token and layer a latent of 512 values and a 64-value key slice: in 61 layers for DeepSeek-V3, in 24 of 93 for Kimi K3. Kimi K3's slice carries no position, but it enters the attention score, so an exact latent-cache layout keeps it. Kimi K3's reference code caches expanded keys and values; the compressed size is what a latent-cache server stores, and we read no such server. Kimi K3's other 69 layers keep a fixed-size state, which this count leaves out. DeepSeek-V3's configuration allows 163,840 positions, so its last column is a projection. In the units the cookbook uses, ours is 64 GiB, twice its 32 GiB at 8 bits.[7][3][6][5]
How three stacks place it
| Stack | Hardware | Attention | Experts |
|---|---|---|---|
| vLLM recipe, preset b300_tp8 (merged) | 8 B300 GPUs | tensor-parallel: each matrix split across devices | expert-parallel: 32 whole experts per GPU |
| SGLang cookbook (merged) | 2 DGX Stations, or 4 to 16 GPUs (GB300, B300 and others) | tensor-parallel; on 16 GPUs, data-parallel by 4 | expert-parallel equal to tensor-parallel |
| SGLang Trainium plugin (open draft pull request) | 1 trn3.48xlarge: 16 chips, 128 NeuronCores | one KV head per core (a NeuronCore is one compute unit), global cache spread over 16 chips | 16 experts on each chip, each split across 8 cores; on a separate decode server, each split across all 128 cores |
In the table, expert-parallel puts whole experts on separate devices, and data-parallel runs copies of attention for different requests. A separate decode server only generates tokens, while another server handles the prompt. The Trainium plugin pages the global cache across the 16 chips in blocks of 1,024 positions, and keeps each request's window layers in a ring (a fixed buffer overwritten in turn) of 1,024 positions.[4] It runs without a draft model (a small model that proposes tokens for Ergo to check) and with greedy sampling only (always the likeliest token).[3][4] On GPUs, the draft model is Amazon's separately released DSpark, with 3.24 billion parameters.[2][3]
Not tested
We ran no inference and measured no speed. The Trainium pull request was open when we read it and may change. Amazon's launch page says Ergo's speed "comes from co-designing the model, hardware, and software" and that Bedrock serves it "on AWS Trainium3"; it does not describe the layout.[9] We read no Amazon document that does, so we do not know whether the open plugin resembles Bedrock's. We make no claim about why any choice was made.
The license, the speed tiers and what Amazon is doing with them are in a separate piece, Amazon Ergo: The Bedrock Clause, on The AI Realist.
To measure open models on your own tasks and hardware, work with us.
Notes
[1] Amazon, Ergo weights at Hugging Face revision 368c86648a928e769539f3f720a42aa85450d1eb: the tensor index (1,275 tensors, total size 625,993,710,592 bytes), the headers of the 65 shard files, read by HTTP range request on 2 December 2026 (each file is read for its first few thousand bytes only), and the model card: release date 1 December 2026, 1.1 trillion total and 55 billion active parameters. Parameters are counted from the shapes: a packed 4-bit tensor holds two values per byte, and the scale tensors are not counted, which is also how the Hub API's safetensors.total of 1,105,550,933,760 counts. The bf16 repository (revision f47e685ec4b5095a0880e05cc514a4026859f9ed, 2,215,774,942,133 bytes of storage, the same safetensors.total of 1,105,550,933,760) and the mxfp8 repository (revision badd2eca7a6b08fac13d11766c3b207084f7737c, 1,167,266,050,997 bytes) were read through the Hub API. The vLLM recipe sets vram_minimum_gb: 980 for the 4-bit version (note [2]). The tensors named in the text are expert_output_norm, router_bias, post_attention_residual and post_ffn_residual. Author's calculation: 1,082.33 × 4 ÷ 8 = 541.17. That is gigabytes of 4-bit values. Author's calculation: 1,082.33 ÷ 32 = 33.82. That is gigabytes of scales, one byte per 32 values. Author's calculation: 541.17 + 33.82 = 574.99. Author's calculation: 574.99 × 8 ÷ 1,082.33 ≈ 4.25. That is bits per parameter. Author's calculation: 1,082.33 × 8 ÷ 256 ≈ 33.82. That is billions of routed parameters active, the same number as the scale gigabytes by coincidence of 8 ÷ 256 = 1 ÷ 32. Author's calculation: 33.82 + 9.66 + 8.46 + 2.15 + 0.54 + 0.13 + 0.004 + 0.004 ≈ 54.77. Those are billions: active routed experts, attention, shared expert, output head, dense block, router, 8 of 256 expert output norms and the other norms and scales.
[2] vLLM, recipe for Amazon-FMR/Ergo, merge commit 42e38d2eea6cddab3f36ac764851fb3cebaa4125 of pull request 71113, file recipes/models/Amazon-FMR/Ergo.yaml: the description "256 non-gated ReLU² experts (top-8) + one shared expert with per-expert output RMSNorm"; "MXFP4 routed experts (1x32, UE8M0)"; preset b300_tp8, whose runbook reads "attention runs TP8 and the routed experts EP8 (32 experts per GPU)"; DSpark with 8 draft tokens. The recipe has other presets (GB300, GB200, H200).
[3] SGLang, Amazon Ergo cookbook, merge commit 4a1526a4c3d40071a7db45892be59aadcb82c5df of pull request 54468, read in full by the author: "48 local sliding-window attention layers (512-token window, GPT-J RoPE) with 16 global NoPE attention layers"; "one 1M-token sequence uses ~32 GiB" at 8 bits; hardware from 4 GB300 to 16 GPUs and 2 DGX Stations, with a 16-GPU preset of TP16, EP16 and attention data-parallel by 4; DSpark, "3.24B BF16, 5 sliding-attention layers with a 32K window"; for Trainium, "One trn3.48xlarge serves the MXFP4 checkpoint as a single --tp-size 128 engine (16 Trainium3 devices × 8 NeuronCores at LNC1)", greedy decoding only, and "speculative decoding (DSpark)" among what that path does not support.
[4] sglang-neuron, pull request 28, a draft, head commit 3bff88e002c74b3efc7db857b87f4ff29aa49ccf, open when read: the description ("attention CP16 x TP8, MoE EP16 x TP8"; one trn3.48xlarge, --tp-size 128; "Greedy sampling only") and DESIGN.md in sglang_neuron/models/ergo/decode/ ("Attention, rank (d, j) = KV head j"; global cache position p on device (p // 1024) % 16; local ring of 1,024 positions; "device d = 16 experts"; expert-TP over the 128 ranks "Used on a PD decode up to 32 requests a step"). The pull request's author and employer are not named in the post.
[5] Cache sizes. Author's calculation: 32,768 × 1,048,576 × 2 ≈ 68.7 billion. That is bytes for Ergo. Author's calculation: 32,768 × 1,048,576 × 2 ÷ 1,073,741,824 = 64. That is GiB for Ergo. Author's calculation: 35,136 × 1,048,576 × 2 ≈ 73.7 billion. That is bytes for DeepSeek-V3. Author's calculation: 13,824 × 1,048,576 × 2 ≈ 29.0 billion. That is bytes for Kimi K3. Author's calculation: 32,768 ÷ 13,824 ≈ 2.4. Author's calculation: 48 × 2 × 8 × 128 × 512 × 2 ≈ 100.7 million. That is bytes for Ergo's window layers. Author's calculation: (73.7 − 68.7) ÷ 73.7 ≈ 7%. That is Ergo's cache below DeepSeek-V3's. Author's calculation: 32,768 × 100,000 × 2 ≈ 6.6 billion. That is bytes for Ergo's global layers at 100,000 tokens.
[6] Moonshot AI, Kimi K3 at revision 0352df43ab9ad7b90c37b473adbcdda2d4a7a66b: config.json (93 layers, 24 full-attention and 69 linear-attention, kv_lora_rank 512, qk_rope_head_dim 64, mla_use_nope true) and modeling_kimi_linear.py (self.rotary_emb = None; the key is the concatenation of the expanded 128-value part and the 64-value slice, and the cache update stores expanded keys and values). Author's calculation: 96 × (128 + 64 + 128) = 30,720. That is values per layer and token in the reference code's cache, which is not a serving format. DeepSeek-V3 at revision e815299b0bcbac849fa540c768ef21845365c9eb: config.json (61 layers, kv_lora_rank 512, qk_rope_head_dim 64, 163,840 positions, 256 routed experts, 8 per token, 1 shared, expert size 2,048, 3 dense layers) and modeling_deepseek.py (gate, up and down matrices in each expert). The cache width a latent-cache server stores per token and layer is (d_c + d_h^R), Table 1 of the DeepSeek-V2 paper, arXiv 2405.04434. Author's calculation: 16 × 2 × 8 × 128 = 32,768. That is values per token for Ergo. Author's calculation: 61 × (512 + 64) = 35,136. That is values per token for DeepSeek-V3. Author's calculation: 24 × (512 + 64) = 13,824. That is values per token for Kimi K3. Author's calculation: 63 × 256 × 3 × 8,192 × 4,096 ≈ 1.62 trillion. That is Ergo's routed parameters with three matrices per expert. Author's calculation: 63 × 256 × 2 × 8,192 × 4,096 ≈ 1.08 trillion. That is the same count with two.
[7] Amazon, Ergo's config.json at the same revision: 64 layers, hidden size 8,192, 256 experts, 8 per token, expert size 4,096, shared expert 8,192, 64 query and 8 KV heads of size 128, local window 512, global attention every fourth layer, "quant_method": "mxfp4". The config gives no parameter counts; the totals are the card's (note [1]) and our sum.
[8] Hugging Face Transformers, configuration_ergo.py: layers are "sliding_attention" unless (layer_idx + 1) is a multiple of global_attention_every_n_layers (4 in the config), when they are "full_attention", and the first num_dense_blocks (1) layers have a dense MLP. The checkpoint config, note [7], sets global_attention_every_n_layers 4 and num_dense_blocks 1.
[9] Amazon Frontier Model Research, "Introducing Amazon Ergo," 1 December 2026, read by the author on 2 December: "Ergo runs at over 400 output tokens per second on Amazon Bedrock, where it is served on AWS Trainium3" and "Ergo's speed comes from co-designing the model, hardware, and software." Search record, 2 December: that page, the Bedrock model card and the Hugging Face repository card describe no serving layout, and a code search for "ergo" in the aws-neuron GitHub organization, with its NKI library cloned and searched, found no Ergo file. This is a dated search of those places, not proof that no document exists.