Amazon Ergo is a new open-weights model from Amazon Frontier Model Research, released on December 1, 2026. It is built for coding and agent work. In simple words, it is a very large model that stores 1.1 trillion parameters but uses only 55 billion of them for each token.
Ergo is far too big for our RTX 5090, so we did not run it. Instead, we read its config file, the header of every weight file, and the Hugging Face Transformers code that runs it. We also downloaded a few small tensors to look at real trained values.
In this blog, we will learn how Ergo is built, block by block. We will see which ideas it borrows from earlier models and which two parts we had not seen before. Then we will look at what its design saves in memory, and what Amazon's benchmark chart does and does not show.
What Did Amazon Release?
Amazon released Ergo in three precisions, plus a small helper model for faster output. Let me tabulate the basics for your better understanding. The parameter counts and sizes are ours, counted from the weight files. The rest comes from the model card.
| Amazon Ergo | |
|---|---|
| Total parameters (our count) | 1,105.6B |
| Active parameters per token (our count) | 54.8B (card: 55B) |
| Layers | 64 (48 local + 16 global) |
| Hidden size | 8,192 |
| Routed experts (total / active) | 256 / 8, plus 1 shared expert |
| Context window / max output | 1M tokens / 128K tokens |
| Checkpoints | MXFP4 583.0 GB, MXFP8 1,087.0 GB, BF16 2,063.5 GB |
| Draft model | DSpark, 3.24B parameters |
| Input | text only, always reasons |
| Bedrock price, per million tokens | $1 input, $0.03 cached input, $3 output |
All sizes here are binary, so 1 GB is 1024^3 bytes. Hugging Face shows the MXFP4 repo as "626 GB" because it counts in thousands. The bytes are the same.
How Can 1.1T Parameters Cost Only 55B per Token?
The answer is the mixture of experts design. In simple words, most of the model is split into many small feed-forward networks called experts. A small router picks a few of them for each token, and the rest stay idle.

Here, we can see how lopsided this is. The BF16 repo holds 1,105,550,933,760 parameters in 1,149 tensors. The routed experts alone are 1,082.3B of them, which is 97.9% of the model. Everything else fits in the last 2.1%.
Each of Ergo's 63 expert layers has 256 routed experts, and each token uses 8 of them. One expert has 67.1M parameters. Counted from the files, one token uses:
| Part | Parameters per token |
|---|---|
| 8 routed experts x 63 layers | 33.8B |
| Attention, 64 layers | 9.7B |
| Shared expert, 63 layers | 8.5B |
| Output head | 2.1B |
| Dense feed-forward in layer 0 | 0.5B |
| Router, per-expert norms, other norms, residual gates | 0.1B |
| Total | 54.8B |
That 54.8B matches the card's 55B. If we also count the 2.1B input embedding table, the total becomes 56.9B. The card leaves the embedding lookup out, which is the usual way to count.
One storage detail is odd. The input embedding table is stored in F32 (8.0 GB), while the output head is BF16 (4.0 GB). They are two separate matrices, not one shared table.
How Are Ergo's 64 Layers Arranged?
Ergo has 64 layers, and they come in two kinds. A local layer looks at only the last 512 tokens. A global layer looks at every token in the context.

Here, we can see the pattern. Three local layers are followed by one global layer, and that repeats 16 times. So, layers 3, 7, 11 and so on up to 63 are global. That gives 16 global layers and 48 local ones.
The two kinds also handle word order in different ways:
- A local layer uses rotary position embeddings (RoPE), which tell the model where each token sits.
- A global layer uses no position encoding at all. The Transformers code states this directly.
The config does not say which layers are global or that they skip RoPE. We read both facts from the Transformers code for Ergo.
Layer 0 is special in one more way. It is the only dense layer, with a plain feed-forward of width 32,768. The other 63 layers use the mixture of experts.
What Is Inside One Ergo Layer?
Now, let's open one layer. The figure below shows one of the 64 layers, read from the bottom up. Each numbered badge says where that block comes from. Blue badges (1 to 5) are ideas Ergo borrows from earlier models. Orange badges (6 and 7) are the two parts we had not seen before.

The layer has two halves, and both have the same wrapper. A token's vector goes through an RMSNorm, then the main block, then a second RMSNorm, and then a gate that mixes the result back in. The first half uses attention. The second half uses the mixture of experts. Let's go through the blocks one by one.
Attention: local and global layers (badges 1 and 2)
Attention is how a token looks at the other tokens before it. Ergo uses grouped-query attention, or GQA. In simple words, there are 64 query heads, but they share only 8 key and value heads. Each key and value head serves 8 query heads, which keeps the memory small.
One linear layer makes the queries, keys and values in one go. It turns 8,192 numbers into 10,240: 64 query heads of 128, plus 8 key heads and 8 value heads of 128 each.
Badge 1 is the local and global pattern we saw above. Meta's Llama 4 and Cohere's Command A use the same three to one pattern, with no RoPE on the global layers. Their local windows are much wider, though: 8,192 tokens in Llama 4 and 4,096 in Command A. Ergo's window is only 512 tokens.
Badge 2 is QK-norm. The queries and keys each go through their own RMSNorm before attention, but the values do not. An RMSNorm rescales a vector so its overall size stays steady. OLMo 2, Gemma 3 and Qwen3 do the same thing.
The norms around each block (badge 3)
Most models put one RMSNorm before each block. Ergo puts one before and one after. That makes four RMSNorms in every layer, plus the two inside attention. Google's Gemma 2 and Gemma 3 use the same "sandwich" of norms.
The residual gate (badge 6, new)
This is where Ergo differs from a normal transformer. A normal layer adds its new update straight onto the running vector, which we call the residual stream:
Ergo mixes the two instead. It gives the new update a share called a, and the old stream a share of :
The share a comes from one learned number per channel, so each of the 8,192 channels has its own mix. The squares of the two shares always add up to 1. In simple words, a layer can turn up its own update only by turning down the old stream by a matching amount. That keeps the size of the stream steady from layer to layer.
The Transformers code writes this in a longer form. We checked that it matches the simple formula above on all 128 released gate vectors, one for each half of each layer.
The mixture of experts (badges 4 and 7)
The second half of every layer after layer 0 is the mixture of experts. The normed input goes to three places at once.
First, the router (badge 4) scores all 256 experts. A sigmoid turns each score into a number between 0 and 1. Each expert also has a learned bias that is added only when choosing the top 8. The bias helps spread the work across experts, but it never changes how much an expert's output counts. This is DeepSeek-V3's way of balancing experts, and Ergo's config even names it deepseek.
Second, the 8 chosen routed experts run. Here comes badge 7, the second new part. Each expert's output goes through its own RMSNorm, with 8,192 learned scales for every expert. That is 256 x 8,192 scales per layer, and 132.1M scale values across the 63 layers.
Third, a shared expert runs for every token, with its own output norm. DeepSeek's models use a shared expert the same way (badge 4 again).
The 8 normalized expert outputs are added up, each times its router weight. The chosen weights add up to 1 and are then multiplied by , about 2.83. DeepSeek-V3 uses a fixed 2.5 here instead. Finally, the shared expert's output is added on top.
One expert: no gate, squared ReLU (badge 5)
Most current MoE models use SwiGLU experts. They have three matrices: two that read the input, where one gates the other, and one that writes the output.
Ergo drops the gate matrix and keeps only two:
- An up projection, from 8,192 to 4,096.
- A squared ReLU: negative values become zero, and positive values are squared.
- A down projection, from 4,096 back to 8,192.
- The expert's own RMSNorm (badge 7).
That is 67.1M parameters per expert. A SwiGLU expert of the same width would need 100.7M. The shared expert and the dense layer 0 use the same two-matrix design. The squared ReLU comes from Google's Primer paper, and NVIDIA's Nemotron-4 uses it in the same ungated way.
What Did the Residual Gates Learn?
The gate in badge 6 is a learned number, so we can read what training did to it. We downloaded all 128 gate vectors and turned them into the share a. When the learned number is zero, which is how the Transformers code sets it up, a is 0.50.

Here, we can see a clear trend. Deeper layers write smaller updates.
- Layer 0 gives its updates big shares: 0.86 for attention and 0.78 for the feed-forward. These are averages over 8,192 channels.
- The shares fall with depth. At layer 63, attention gets 0.07 and the feed-forward gets 0.14. With a = 0.07, the old stream keeps a share of 0.997.
- The feed-forward gets the bigger share in 61 of the 64 layers. The exceptions are layers 0, 23 and 61.
- Global and local layers look the same. Both average 0.29 for attention.
This is a reading of the weights, not an experiment. It shows how the trained model weighs each layer's update, but it does not tell us why.
Why Is Ergo's KV Cache 4x Smaller?
When a model writes text, it saves the keys and values of every past token so it does not recompute them. This saved memory is the KV cache, and it grows with the context.
Ergo's local layers change this. A local layer only ever needs the last 512 tokens, so its part of the cache stops growing. Only the 16 global layers keep every token.

These numbers are worked out from the config, not measured.
We assume 16-bit keys and values:
- The 16 global layers need 64 KB per token.
- The 48 local layers need a fixed 96 MB per sequence, whatever the context length.
- If all 64 layers were global, the cache would need 256 KB per token.
Here, we can see the payoff at the full 1M-token context. Ergo needs 64.1 GB per sequence, against 256 GB for an all-global model of the same size. The saving grows with context and levels off just under 4x.
We do not know what Bedrock actually stores. A server can also compress the cache, which would shrink both bars.
Why Is the Download 583 GB?
Ergo comes in three precisions, and only one part of the model changes between them.

| Repo | Bytes | Size | Routed expert format |
|---|---|---|---|
Amazon-FMR/Ergo |
625,993,710,592 | 583.0 GB | MXFP4, 4.25 bits per weight |
Amazon-FMR/Ergo-mxfp8 |
1,167,159,589,888 | 1,087.0 GB | MXFP8 (E4M3), 8.25 bits per weight |
Amazon-FMR/Ergo-bf16 |
2,215,668,481,024 | 2,063.5 GB | BF16, 16 bits |
Here, we can see that only the routed experts shrink. In the MX formats, each group of 32 weights shares one 8-bit scale. That is where the extra 0.25 bits per weight comes from. Attention, the shared expert, the router, the dense layer and the output head stay in BF16. That fixed part is 47.5 GB in all three repos.
For scale, the smallest checkpoint is about 18 times our GPU's 32 GB, before any KV cache. So, we did not try to run it.
What Is DSpark?
Amazon also released DSpark, a small draft model for speculative decoding. In simple words, a small model guesses the next few tokens quickly, and the big model checks all the guesses in one pass. Every correct guess is a token we get almost for free.
From its config and model card:
- DSpark has 3.24B parameters (6.0 GB) in 5 layers, with the same width as Ergo.
- It reads hidden states from five of Ergo's layers: 1, 16, 31, 46 and 61.
- It proposes 8 tokens at a time.
- It keeps Ergo's 262,144-token vocabulary.
This looks a lot like the DFlash drafter in our MiMo V2.6 teardown, which also has 5 layers and reads five backbone layers. We did not run DSpark.
What Is Actually New in Ergo?
Most of Ergo is a careful mix of ideas that other models used first. Let me tabulate them for your better understanding.
| Idea | In Ergo | Seen before in |
|---|---|---|
| 3 local layers for every global one, no RoPE on global layers | 48 local (512 tokens) + 16 global | Llama 4 (8,192-token chunks), Command A (4,096-token window) |
| RMSNorm before and after each block | 4 RMSNorms per layer | Gemma 2, Gemma 3 |
| QK-norm | RMSNorm on queries and keys | OLMo 2, Gemma 3, Qwen3 |
| Sigmoid router with a bias used only for picking | config says deepseek |
DeepSeek-V3 |
| A shared expert next to the routed ones | 1 shared, width 8,192 | DeepSeekMoE, DeepSeek-V2 and V3, Llama 4 |
| Ungated experts with squared ReLU | 2 matrices, not 3 | Primer, Nemotron-4 |
| Experts released in 4-bit MX format | MXFP4, 4.25 bits | gpt-oss, MiMo V2.6 |
| A 5-layer draft model reading 5 layers | DSpark | MiMo V2.6's DFlash |
The mix itself is the design choice. Ergo takes the long-context recipe of Llama 4 and Command A, makes the local window small, and puts it on a DeepSeek-V3 style expert layer with Gemma-style norms.
Two parts we had not seen in any model we have taken apart on this site.
The first is a norm on every expert's output. After this norm, the size of an expert's output is set by that expert's learned scales. It no longer depends on how strongly the expert fired on this token. The router's weights then decide the mix. We searched the weight maps of GLM 5.3, GLM 5.3 Flash and MiMo V2.6 Flash, and none of them has a norm on an expert's output.
The second is the residual gate that keeps the stream's size. A related idea, LayerScale, multiplies each block's output by a learned scale but leaves the stream alone. ReZero starts each block's update at zero. The hyper connections in our Qwen 3.8 Flash Next teardown and GLM 5.3 Flash teardown learn a richer mix across several streams. Ergo keeps one stream and fixes the trade between old and new with a simple formula.
We have not checked every published model. So, "new" here means new to us, not a claim that nobody did it before.
Amazon also says a lot about how Ergo was trained. Its Hugging Face organization card claims the team built its training setup from scratch in 11 months. It claims 96% goodput, which is the share of cluster time spent on useful training, and no loss spikes from start to finish. It also says Ergo's base model is 19.6 times as compute-efficient as Kimi K2 Base on code, without defining the measure. None of this can be checked from the weights. The per-expert norms and the size-keeping gate both hold activations at a steady size, which would fit the no-loss-spikes claim. But Amazon does not say which choices it means, so this is our reading, not theirs.
What Do Amazon's Benchmarks Show?
Every score in this section is Amazon's own number. We did not run any benchmark.
The model card's chart shows five benchmarks. We redrew it with only Ergo and the strongest rival in each row:

Here, we can see Ergo ahead on four of the five. But three of those four are Amazon's own internal tests (AI SWE, Ultra Long Horizon and Code Quality). On the two public ones, Ergo leads GLM 5.3 on FrontierSWE v2 by 31.5 to 30.2. It trails Kimi K3.1 Pro on DeepSWE by 74.2 to 77.9.
The card's table has 12 rows, not 5. So, we plotted all of them, with Ergo's score as a percentage of the best other open model in each row:

Here, we can see the fuller picture:
- Ergo leads on 4 of 12 rows: the three internal tests and FrontierSWE v2.
- Kimi K3.1 Pro leads the other 8. Ergo is second in seven of them.
- The widest gaps are Terminal-Bench Science 0.1 (21.3 against 35.7) and Terminal-Bench 4.0 (46.2 against 63.3).
- Four of the five rows in Amazon's chart are rows Ergo leads. Of the seven rows left out, Ergo leads none.
This does not contradict Amazon's own words. The product page claims first place among U.S. open-weights models on all seven coding benchmarks, and first place among all the compared open models on four of them. The table agrees, and those four are the four rows Ergo leads. The model card is also open that Ergo focuses on coding and agents and will score lower on general knowledge and science.
What We Did Not Test
- We ran nothing. No speed, quality, memory or KV number here is measured on our hardware.
- The benchmark scores are Amazon's, partly from its own internal tests.
- The KV cache sizes are arithmetic from the config, assuming a 16-bit cache.
- What the config does not say, we took from the Transformers code. Amazon's own serving code could differ.
- The training claims (goodput, no loss spikes, efficiency against Kimi K2 Base) cannot be checked from the weights.
- "New to us" is checked against our own earlier teardowns, not every published model.
Conclusion
We opened Amazon Ergo without downloading its weights and found a model that is mostly experts, with a careful mix of borrowed ideas around them and two new parts of its own.
Key takeaways:
- Ergo stores 1,105.6B parameters and uses 54.8B for each token. The routed experts are 97.9% of the model.
- 48 of its 64 layers look at only the last 512 tokens. That keeps the KV cache at 64.1 GB at 1M tokens, against 256 GB if every layer were global.
- Its layer borrows from Llama 4, Command A, Gemma, OLMo 2, Qwen3, DeepSeek-V3, Primer and Nemotron-4.
- The two parts new to us are a norm on every expert's output and a residual gate that keeps the stream's size. The trained gates give deeper layers smaller updates.
- Amazon's chart shows the rows Ergo wins. In the full table, Ergo leads 4 of 12.
Next steps:
- Read the MiMo V2.6 Pro and Flash teardown for an even smaller local window of 128 tokens.
- Read the GLM 5.3 vs GLM 5.3 Flash teardown for a different way to make a 1M context cheap.
- Use the local LLMs technical reference guide to match a model and a context size to our own card.
This is how Amazon Ergo is built. We started with the 1.1T parameters and the 55B a token actually uses. We saw the three to one layer pattern, opened one layer block by block, and found what it borrows and what is new. And we finished with what that design saves in memory and what Amazon's benchmarks really show.