On this page
Amazon's Ergo is open weights, so you can run it yourself, but at 1.1 trillion parameters it does not fit on the GPUs most teams have. This guide covers what it takes: the hardware for each checkpoint, the memory left for the KV cache, the engine builds, the launch commands and what to measure. For what Ergo is and how its benchmarks read, see Amazon Ergo explained.
Everything here comes from the model card, its config.json, the vLLM recipe and the SGLang cookbook, as of 2 December 2026. Memory and speed figures marked as estimates are our arithmetic, not measurements.
#Step 1: pick a checkpoint and a node
Ergo ships three checkpoints. SGLang's cookbook gives the smallest setup for each:
| Checkpoint | Download | Smallest supported setup (SGLang cookbook) |
|---|---|---|
MXFP4 (Amazon-FMR/Ergo, the default) |
626 GB | 4 × GB300, or 8 × B200, B300, GB200 or Vera Rubin; 2 × DGX Station with host memory, capped at 32K context |
MXFP8 (Amazon-FMR/Ergo-mxfp8) |
1.17 TB | 8 × GB300, B300, GB200 or B200 |
BF16 (Amazon-FMR/Ergo-bf16) |
2.22 TB | 16 × GB300, B300, GB200 or B200 |
Two hardware notes:
- Blackwell for SGLang. The cookbook requires SM100 or newer (Blackwell or Vera Rubin) for the MXFP4 and MXFP8 checkpoints on NVIDIA GPUs. MXFP4 is a native format on Blackwell (FP8 vs INT4 vs FP4).
- H200 with vLLM. vLLM's recipe lists an H200 preset (two data-parallel groups of four GPUs with expert parallelism, eight GPUs in all), and its Docker image is built for x86 H200 and B300 hosts as well as arm64 GB200 and GB300. Check the recipe for the exact configuration before you buy or rent.
- Trainium3. SGLang has a Neuron plugin that runs the MXFP4 checkpoint on a trn3.48xlarge (16 Trainium3 devices, one tensor-parallel group of 128), with greedy decoding only and no speculative decoding yet.
AMD GPUs are not mentioned in either guide at launch.
#Step 2: work out what is left for the KV cache
The KV cache decides how many requests a node can hold at once (KV cache explained). Ergo's attention is what makes its 1M-token context practical. From config.json and the vLLM recipe:
- 64 layers, grouped-query attention with 8 KV heads of size 128, so each layer stores values per token;
- 48 of the 64 layers use a 512-token sliding window, so they never hold more than 512 tokens;
- only the other 16 layers keep the whole context.
So the KV cache per sequence is
with bytes per value (2 for BF16, 1 for FP8). A 32K-token session needs about 1.05 GiB in FP8 (2.1 GiB in BF16); a full 1M-token session needs about 32 GiB in FP8, the figure the SGLang cookbook gives too. If all 64 layers kept the whole context, it would be four times as much.
Now the memory budget. SGLang's cookbook puts the MXFP4 weights at about 74 GiB per GPU across eight GPUs and about 147 GiB per GPU across four. Keep about 10% of each GPU for activations, CUDA graphs and the runtime, and the rest is KV cache (estimates, before any speculative-decoding draft pool):
| Node (MXFP4) | Usable per GPU | Weights per GPU | Left for KV, whole node | 32K-token sessions (FP8 KV) |
|---|---|---|---|---|
| 8 × H200 (141 GB) | about 127 GB | about 79 GB | about 350 GiB | about 330 |
| 8 × B200 (180 GB) | about 162 GB | about 79 GB | about 615 GiB | about 590 |
| 4 × GB300 (288 GB) | about 259 GB | about 158 GB | about 380 GiB | about 360 |
| 8 × B300 (288 GB) | about 259 GB | about 79 GB | about 1,340 GiB | about 1,280 |
Two things shrink these numbers in practice. If you enable the DSpark speculative decoder that the recipes use, its draft KV pool takes about 24% of the KV budget (SGLang's figure). And sessions do not all sit at 32K tokens: plan with your own length distribution. Whatever you calculate, the engine's start-up log reports the real KV cache size; read it before tuning anything (GPU memory at 90% practises this).
#Step 3: get an engine build that knows Ergo
At launch, Ergo support had not reached a release of either engine. We checked: vLLM's latest release, v0.34.0, has no Ergo model code, and the recipe says it needs a nightly build until support lands in a release.
- vLLM: the
vllm/vllm-openai:amazon-fmr-ergoDocker image, or a nightly wheel. - SGLang: the
lmsysorg/sglang:ergoDocker image, or a pre-release install (uv pip install --prerelease=allow sglang "xgrammar>=0.2.9").
Pin the image digest you test with. Pre-release builds move quickly, and a later image can change speed or behaviour.
#Step 4: launch it
vLLM, on the recipe's default layout (four GB300 GPUs, tensor parallelism 4 with expert parallelism), built from the recipe's flags:
docker run --gpus all --privileged --ipc=host -p 8000:8000 \
-v ~/.cache/huggingface:/root/.cache/huggingface -e VLLM_USE_RUST_FRONTEND=1 \
vllm/vllm-openai:amazon-fmr-ergo \
Amazon-FMR/Ergo --tensor-parallel-size 4 --enable-expert-parallel \
--max-model-len 1048576 --enable-prefix-caching --async-scheduling \
--enable-auto-tool-choice --tool-call-parser ergo --reasoning-parser ergoThe recipe also turns on speculative decoding with Amazon's DSpark draft model (Amazon-FMR/Ergo-dspark, 8 speculative tokens); copy its --speculative-config exactly from the recipe page rather than retyping it. For eight-GPU B300 nodes the recipe has a TP8, EP8 preset with an FP8 KV cache. The BF16 checkpoint needs --quantization online --quantization-config '{"moe":"mxfp8"}'.
SGLang, on eight Blackwell GPUs:
docker pull lmsysorg/sglang:ergo
python3 -m sglang.launch_server --model-path Amazon-FMR/Ergo \
--tp-size 8 --ep-size 8 --kv-cache-dtype fp8_e4m3 --host 0.0.0.0 --port 30000SGLang requires the expert-parallel size to equal the tensor-parallel size, sets the Ergo reasoning and tool-call parsers automatically, and offers presets for low latency, balanced and high-throughput deployments in its cookbook. Validate accuracy with an FP8 KV cache before relying on it in production, as the cookbook advises.
Known limits at launch, from the SGLang cookbook: text only; no pipeline or context parallelism; no redundant experts or expert load balancing.
#Step 5: know what speed to expect
At batch 1, each generated token reads the experts it is routed to plus the shared parts of the model: about 55 billion parameters, roughly 29 GB in MXFP4. Spread over a node and assuming kernels reach 70% of peak bandwidth, that gives an upper bound (an estimate that ignores attention, routing and communication):
| Node | Aggregate HBM bandwidth | Batch-1 ceiling (estimate) |
|---|---|---|
| 8 × H200 | about 38 TB/s | about 900 tokens/s |
| 8 × B200 | about 64 TB/s | about 1,500 tokens/s |
| 4 × GB300 | about 32 TB/s | about 770 tokens/s |
Real decode speed will be well below these. Every MoE layer has to route tokens to the GPUs that hold their experts and gather the results back, and with 64 layers those all-to-all exchanges and their latency add up on every token (MoE inference explained, what tensor-parallel communication costs). The ceiling also assumes a token's 8 experts are spread evenly across GPUs; when they land on the same GPU, that GPU is the bottleneck. For reference, Amazon reports over 400 output tokens per second per request on Bedrock with its own hardware and software.
At higher concurrency, almost every expert in a layer is used in each step, so throughput is governed by reading most of the 626 GB once per step and by the KV cache, not by the active-parameter count. Measure your own curve of throughput against latency before you size a fleet (how to benchmark an LLM server).
#Step 6: check it before you trust it
- Read the start-up log for the KV cache size in tokens and the maximum concurrency at your context length, and compare them with Step 2.
- Run a short open-loop benchmark at your real prompt and output lengths, for example with
vllm bench serve, and record TTFT and inter-token latency at p50 and p99 (TTFT, TPOT and goodput). - Test tool calls and reasoning output with the Ergo parsers on your own agent prompts; a wrong parser fails quietly.
- Compare quality with Bedrock on a few dozen of your own tasks, especially if you use an FP8 KV cache or a different checkpoint from the one Amazon serves.
- Watch prefix-cache hits. Agent workloads resend long contexts; a low hit rate costs prefill on every turn (prompt cache calculator).
#Should you self-host at all?
Bedrock serves Ergo at $1 per million input tokens, $0.03 per million cached input tokens and $3 per million output tokens. Against that, a dedicated 8-GPU node only pays off at high, steady utilisation, or when you need something the API cannot give you: data that cannot leave your infrastructure, a fine-tuned variant, or control over latency. The numbers are in Amazon Ergo: Bedrock or self-host?.
Sources: Ergo model card, config.json, vLLM recipe, SGLang cookbook. GPU memory and bandwidth are the vendors' published figures, rounded. Engine support was changing daily at launch; check the recipes for current instructions.
guideservingmoevllmsglanghardware
Found this useful?
Send it to someone who is learning the same thing.
Next: the lesson behind this article
Incident lab: GPU memory at 90% while the weights are 35 GB of 48 GB
A team thinks the engine leaks memory: the GPU sits at 90% all day although the weights are only 35 GB of 48 GB, and p99 TTFT passes 20 s at peak. The opening is free to read; Pro unlocks the rest, the labs and the certificate.
Free 5-day email course
Why LLM inference is slow and how to make it fast. One short email a day for five days, each built on a free lesson, then the occasional new lesson or offer. Unsubscribe in one click.