Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 8 min read

Amazon Ergo: 1.1T parameters, 55B active, and a 1M-token KV cache of only 64 GiB: what it takes to self-host

TL;DR Amazon released Ergo (Amazon-FMR/Ergo) on December 1, 2026: a mixture-of-experts coding and agent model with 1.1T stored parameters, 55B active per token, a 1M-token context window and open weights under a custom

TL;DR

  • Amazon released Ergo (Amazon-FMR/Ergo) on December 1, 2026: a mixture-of-experts coding and agent model with 1.1T stored parameters, 55B active per token, a 1M-token context window and open weights under a custom license. The MXFP4 checkpoint is 626 GB (583 GiB).
  • I rebuilt the parameter count from the safetensors shapes. Stored: 1,105.4B (the Hub reports 1,105.55B, the difference is norm scales). Active per token: 54.8B including the output head. The card's "55B" holds up.
  • The KV cache is small for this size. Only 16 of 64 layers keep full history (the rest use a 512-token window), so one 1M-token sequence is about 64 GiB in BF16, or 64 KiB per token.
  • Memory fit: 8x H100 80 GB cannot serve it at the usual 0.90 memory utilization (573 GiB usable against 583 GiB of weights). 8x H200 can, with room for several long sequences.
  • License: free to use and modify, but a hosted model-as-a-service business above US$20M annual revenue needs a separate agreement with Amazon.

What did Amazon release?

The model card describes Ergo as a frontier open-weights model for software engineering and agentic work. The headline numbers from the card:

Item Value (from the model card)
Architecture Mixture-of-experts transformer, 256 routed experts (8 active) plus 1 shared
Parameters 1.1T total, 55B active per token
Context window 1,048,576 tokens, up to 128K output tokens
Precision of the main repo MXFP4 (626 GB), also MXFP8 (1.17 TB) and BF16 (2.22 TB)
Modality Text only
Hosted price on Bedrock $1 per million input tokens, $0.03 cached input, $3 per million output tokens
Support SGLang and vLLM recipes on day one

The coding results on the card are vendor reported, with a dagger marking results from independent public leaderboards. On DeepSWE pass@1 the card lists Ergo at 74.2 against 77.9 for Kimi K3.1 Pro and 69.5 for GLM 5.3. On Terminal-Bench 4.0 it lists 46.2 against 63.3 for Kimi K3.1 Pro. The same table includes an internal benchmark, FMR-Bench, which only Amazon can run, so I leave those rows out of any comparison. The rest of this post is about something you can verify yourself: what the file contains and what it costs to run.

Stored versus active parameters

Do the 1.1T and 55B figures check out?

The config gives the shape of the model: hidden size 8192, 64 layers, 64 attention heads, 8 KV heads of dimension 128, a vocabulary of 262,144, 256 experts with 8 routed per token, an expert width of 4096, a shared expert of width 8192, and a dense first layer of width 32768. The safetensors headers give exact tensor shapes without downloading any weights (a few kilobytes per shard through HTTP range requests).

From the shapes of layer 1 and layer 3 (identical):

  • attention.wqkv.weight: BF16 [10240, 8192]. That is 8192 query columns plus 2 x 1024 for K and V, which confirms 8 KV heads of 128.
  • attention.wo.weight: BF16 [8192, 8192].
  • feed_forward.up_proj: U8 [256, 4096, 4096] with scales [256, 4096, 256]. Two FP4 values per byte, so each expert up matrix is 4096 x 8192 FP4 values.
  • feed_forward.down_proj: U8 [256, 8192, 2048] with scales [256, 8192, 128]. Each expert down matrix is 8192 x 4096 FP4 values.
  • shared_up_proj and shared_down_proj: BF16 [8192, 8192] each.
  • gate_kernel: BF16 [8192, 256], the router.

So each routed expert holds two matrices of 33.55M values, 67.1M in total. There is no separate gate tensor, so the expert activation is not the usual three-matrix SwiGLU. I am reporting what the shapes say and not guessing at the activation.

Component Precision Parameters
Routed experts, 63 layers x 256 x 67.1M MXFP4 1,082.33B
Attention, 64 layers BF16 9.66B
Shared experts, 63 layers BF16 8.46B
Token embedding F32 2.15B
Output head BF16 2.15B
Dense layer 0 plus 63 routers BF16 0.67B
Total (excluding norm scales) 1,105.42B

The Hub's own count is 1,105,550,933,760. The gap of about 0.13B is the per-expert output norm scales (256 x 8192 x 63). The Hub's U8 count of 1.082T equals the number of FP4 values, not bytes, which is a useful thing to know when you read that field.

Parameter breakdown

Active parameters per token are the 8 routed experts, the shared expert, attention, the router, the dense first layer and the output head: 33.82B + 8.46B + 9.66B + 0.54B + 0.13B + 2.15B = 54.76B, which is 4.95% of the stored weights. The embedding is a table lookup, not a matrix multiply, so it is not counted. This matches the card's 55B.

One point worth noticing: 98% of the stored weights are routed experts, but only 62% of the active weights are. The BF16 attention, shared experts and head make up about 38% of the work per token, and they are the part that does not shrink under MXFP4.

How big is the KV cache at 1M tokens?

Two config keys decide this: global_attention_every_n_layers: 4 and local_attention_window: 512. I read them as 16 global layers that keep the full history and 48 local layers that look back at most 512 tokens. That is an inference from the key names, so check your serving engine's actual cache allocation.

For one token in one layer, K and V in BF16 cost 2 x 8 x 128 x 2 bytes = 4,096 bytes.

  • Global layers: 16 x 4,096 B = 65,536 B per token, which is 64 KiB per token.
  • At 1,048,576 tokens: 64.0 GiB for one sequence.
  • Local layers: 48 x 512 x 4,096 B = 96 MiB per sequence, fixed, regardless of length.

KV cache growth

For comparison, a model with the same 8 KV heads of dimension 128 and 64 full-attention layers would need 256 KiB per token, or 256 GiB at 1M tokens. The 1-in-4 global layout cuts that to a quarter. If your engine supports an FP8 KV cache, the global part halves again to about 32 GiB.

Does it fit on 8 GPUs?

The MXFP4 weights are 625,993,710,592 bytes, which is 583.0 GiB. Here is the arithmetic for the common 8-GPU nodes, using the memory a GPU reports and the default 0.90 utilization in vLLM-style engines:

Node Memory reported Usable at 0.90 After weights (583 GiB) One 1M BF16 sequence (64.1 GiB)
8x H100 80 GB about 637 GiB about 573 GiB negative does not fit
8x H200 141 GB about 1,123 GiB about 1,011 GiB about 428 GiB fits, room for about 6 concurrent 1M sequences

These are upper bounds. They ignore activation buffers, CUDA graphs, uneven expert placement and the BF16 dense parts that tensor parallelism replicates or splits unevenly. The H100 row is not a marginal miss: even at 0.95 utilization you have about 605 GiB, leaving 22 GiB, which is enough for roughly 350K tokens of one sequence at best. Two H100 nodes with expert parallelism would work, at the cost of cross-node traffic on every token.

How fast could it decode?

At batch size 1, decoding reads every active weight once per token. From the shapes: 33.82B routed values at MXFP4 including one scale byte per 32 values (0.53125 bytes each) is 17.97 GB, and 20.94B BF16 values is 41.87 GB. The total is about 59.8 GB per token.

  • 8x H200 (4.8 TB/s each, 38.4 TB/s total): ceiling near 640 tokens per second.
  • 8x H100 (3.35 TB/s each, 26.8 TB/s total): ceiling near 450 tokens per second, if it fit.

Real systems land well below these ceilings because of communication, imperfect expert balance and KV reads. The card says Bedrock serves over 400 tokens per second, and 2,200 in a limited-preview Turbo mode, which is consistent with a large, well-tuned deployment rather than a single node.

Batching changes the picture. At batch 32, different tokens pick different experts, so you read most of the 1,082B routed values each step. The cost per step approaches the full 626 GB read, which is why throughput serving of a sparse model wants many GPUs and large batches.

What does the license allow?

The license is custom, not Apache or MIT. In plain terms, from the text in the repo:

  1. You may use, run, modify, merge, publish, distribute and sell copies, provided the license text travels with the model.
  2. You must follow the attached Acceptable Use Policy (dated December 1, 2026) and applicable law.
  3. If you or an affiliate run a Model as a Service business (third parties get inference or fine-tuning through an API or hosted endpoint) and aggregate gross revenue exceeds US$20,000,000 in any 12 months, you need a separate written agreement with Amazon first.
  4. The carve-outs are internal use, research, commercial activity that is not a model-as-a-service business, and using the model to power features of your own product.
  5. You may not use the model to reverse engineer the training data.

The practical reading: a company that runs Ergo to power its own coding assistant is outside clause 3. A large provider reselling raw Ergo inference is inside it. I am not a lawyer, so read the file before you build a business on it.

Reproduce the numbers

import json, struct, urllib.request
B = "https://huggingface.co/Amazon-FMR/Ergo/resolve/main/"
def rng(f, a, b):
    r = urllib.request.Request(B + f, headers={"Range": f"bytes={a}-{b}"})
    return urllib.request.urlopen(r).read()
wm = json.loads(urllib.request.urlopen(B + "model.safetensors.index.json").read())["weight_map"]
def shape(name):
    f = wm[name]
    n = struct.unpack("<Q", rng(f, 0, 7))[0]
    return json.loads(rng(f, 8, 8 + n - 1))[name]["shape"]

H, L, E, K, MI = 8192, 64, 256, 8, 4096
expert = 2 * MI * H                      # two matrices per expert, FP4 values
routed_all = expert * E * (L - 1)
routed_act = expert * K * (L - 1)
att = (10240 * H + H * H) * L
shared = 2 * H * H * (L - 1)
dense0 = 2 * H * 32768
head = 262144 * H
active = routed_act + att + shared + dense0 + head + H * E * (L - 1)
kv_per_token = 16 * 2 * 8 * 128 * 2      # 16 global layers, BF16
print(active / 1e9, kv_per_token / 1024, "KiB/token")

FAQ

How many parameters does Amazon Ergo have?
The shapes in the checkpoint add up to 1,105.4B stored parameters, in line with the Hub's 1,105.55B. About 54.8B are active per token.

How much memory does Ergo need?
The MXFP4 weights are 626 GB (583 GiB). A single 1M-token sequence adds about 64 GiB of BF16 KV cache, or about 32 GiB with an FP8 cache. Eight 141 GB GPUs fit it; eight 80 GB GPUs do not at normal utilization.

Why is the KV cache small for a 1.1T model?
Only every fourth layer attends to the full context. The other 48 layers use a 512-token window, and there are only 8 KV heads of dimension 128.

Can I use Ergo commercially?
Yes for most uses, including powering your own product. A hosted inference service above US$20M annual revenue needs a separate agreement with Amazon.

Is it multimodal?
No. The card says it is text only.

Are the benchmark numbers independent?
Mixed. The card marks results from independent public leaderboards with a dagger, and the others are Amazon's own runs. FMR-Bench is internal.

Links

Further reading

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.