Amazon-FMR/Ergo
1.1T-parameter MoE (55B active): 256 non-gated ReLU² experts (top-8) + one shared expert with per-expert output RMSNorm, GQA attention with sliding window on 3 of every 4 layers, and a separately released DSpark draft.
~200 output tok/s/GPU at 100 tok/s/user (1K in / 1K out) with DSpark on two 4-GPU GB300 trays (DP2 x TP4)
export VLLM_USE_RUST_FRONTEND=1
vllm serve Amazon-FMR/Ergo \
--max-model-len 1048576 \
--override-generation-config '{"max_new_tokens": 131072}' \
--enable-prefix-caching \
--async-scheduling \
--enable-expert-parallel \
--tensor-parallel-size 4 \
--enable-auto-tool-choice \
--tool-call-parser ergo \
--tool-strict-level function \
--reasoning-parser ergo \
--speculative-config '{"method":"dspark","model":"Amazon-FMR/Ergo-dspark","num_speculative_tokens":8,"attention_backend":"FLASH_ATTN","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' \
--draft-kv-poolThe interactive builder loads with JavaScript. Append .md to this page's URL, query string included, for any configuration's command as Markdown — e.g. /Amazon-FMR/Ergo.md.
Runtime
Use the dedicated Ergo image vllm/vllm-openai:amazon-fmr-ergo until Ergo support is in a vLLM release. The tag is multi-arch: x86_64 (B300, H200) and arm64 (GB300, GB200).
Overview
Ergo is a 1.1T-parameter MoE with 55B active parameters: 64 layers, hidden size 8192, a 262144-token vocabulary, 256 non-gated ReLU² experts (top-8, sigmoid router with bias, routed scaling 2.828) plus one shared expert, and a per-expert RMSNorm on every expert output. Attention is GQA (64 query, 8 KV heads) with QK-norm; three of every four layers use a 512-token sliding window with RoPE, every fourth layer is global and NoPE. The residual stream is FP32 with sandwich norms and a gated residual. The DSpark draft is released separately as Amazon-FMR/Ergo-dspark.
Checkpoints
| Repo | Experts | Loading |
|---|---|---|
Amazon-FMR/Ergo (default) | MXFP4 | as released, no quantization flag |
Amazon-FMR/Ergo-mxfp8 | MXFP8 | as released, no quantization flag |
Amazon-FMR/Ergo-bf16 | BF16 | --quantization online --quantization-config '{"moe":"mxfp8"}': experts quantized to MXFP8 at load |
Everything but the routed experts is BF16 in all three, with an FP32 embedding and LM head.
Tokenizer
The repos ship tokenizer.json, tokenizer_config.json and tokenizer.model, so no --tokenizer flag is needed. The Rust frontend, which this recipe uses, loads tokenizer.json; the Python side reads tokenizer.model. Control tokens such as <ctrl100> spelled in text never encode to that token (split_special_tokens, on by default for Ergo). To serve with the Python frontend, set VLLM_USE_RUST_FRONTEND=0.
References
Configurations qualified on specific hardware, layered on the baseline command. Unless marked Opt-in, a preset applies automatically on its hardware and strategy; pick Baseline in the builder to drop it.
H2001 presetDP2 x TP4, EP8 (1 node)
One engine on one 8 x H200 node: attention TP4 and DP2, routed experts EP8 on Marlin (MXFP4 weights), all-gather / reduce-scatter dispatch, one API server per DP rank behind vllm-router, DSpark draft with 8 tokens.
Runbook
Do not use the rendered vLLM Router tab for this preset: it routes consistent_hash to :8100 only, so the :8101 rank gets no traffic. Run this router instead:
vllm-router \
--worker-urls http://localhost:8100 http://localhost:8101 \
--host 0.0.0.0 --port 8000 \
--policy sticky_least_loaded \
--request-timeout-secs 14400 --disable-retries \
--worker-startup-timeout-secs 1800
One aggregated engine on one 8 x H200 node: attention runs TP4 and DP2, and the routed experts run EP8 on Marlin with the MXFP4 expert weights. Expert dispatch and combine are an all-gather and a reduce-scatter over the 8 GPUs. The KV cache is BF16; FlashInfer decodes on XQA.
Load balance: --data-parallel-multi-port-external-lb starts one API server per DP rank, on :8100 and :8101, and vllm-router >= 0.1.17 --policy sticky_least_loaded on :8000 fronts both: a session's first request (keyed by X-Session-ID) goes to the DP rank with the fewest active sessions and its later turns stay there, so they reuse that rank's prefix cache. Send a session key on every request, as in gb300_dep2_tp4.
GB200 NVL42 presetsDP2 x TP4, EP8, FP8 KV (2 trays) · DP4 x TP4, EP16, FP8 KV (4 trays)
`gb300_dep2_tp4` on two GB200 trays, with NVLS off.
Runbook
The engine, router setup and session keys of gb300_dep2_tp4 on two GB200 trays (8 GPUs) in one NVL72 domain, with MegaMoE built for SM100 from the same pinned DeepGEMM and NVLS off (NCCL_NVLS_ENABLE=0). The MXFP8 and BF16 variants run on gb200_dep4_tp4.
`gb200_dep2_tp4` over four GB200 trays: attention TP4 per tray and DP4 across trays, routed experts EP16.
Runbook
The engine, router setup and session keys of gb300_dep2_tp4 on four GB200 trays (16 GPUs), NVLS off: one API server per tray, vllm-router --policy sticky_least_loaded in front of the four tray endpoints.
B3001 presetTP8, EP8, FP8 KV (1 node)
One engine on one 8 x B300 node: attention TP8, routed experts EP8 on DeepGEMM MegaMoE with the BF16 shared expert fused into the same launch, DSpark draft with 8 tokens, an FP8 KV cache on the global-attention and draft layers (sliding-window layers BF16), balanced decode, batch-sharded sampling and the prefill GEMM + collective fusion.
Runbook
One aggregated engine on one 8 x B300 node: attention runs TP8 and the routed experts EP8 (32 experts per GPU). Each MoE layer is one DeepGEMM MegaMoE launch: dispatch and combine over its own symmetric memory, the routed ReLU² experts (MXFP4, or MXFP8 for the MXFP8 and BF16 variants), and the BF16 shared expert replicated on every GPU, each expert's output RMS-normalized with its own scale before the sum. The residual stream is token-sharded over the TP ranks, so a MoE layer runs no TP collective. MegaMoE needs the DeepGEMM build that cmake/external_projects/deepgemm.cmake pins.
KV cache: FP8 (e4m3, scale 1.0) on the 16 global-attention target layers and the 5 DSpark draft layers; the sliding-window target layers stay BF16. Queries stay BF16 (disable_flashinfer_q_quantization; FP8 queries lower DSpark acceptance), and decode runs on trtllm-gen (use_trtllm_attention), which FlashInfer does not pick by itself with an FP8 KV cache. Leave --gpu-memory-utilization unset: the KV cache takes the memory measured free after warmup.
Balanced decode (flashinfer_balanced_decode): with one long request among short ones, trtllm-gen reads that request's KV on only a few SMs; the flag runs the longest requests in launches of their own; flash_attn_balanced_decode does the same for the DSpark draft's FA4 decode by raising its split cap. Batch-sharded sampling: each TP rank verifies and drafts only its own requests instead of all-gathering the FP32 full-vocab logits.
Prefill GEMM + collective fusion (VLLM_ERGO_SP_FUSED_ALL_GATHER_MIN_ROWS=2048, VLLM_ENABLE_GEMM_RS=1): in prefill steps the token-sharded all-gather before attention runs fused into the wqkv GEMM from 2048 gathered rows, and the attention wo GEMM runs fused with the reduce-scatter from 1024 tokens. Decode and verify batches stay below both thresholds.
GB300 NVL42 presetsDP2 x TP4, EP8, FP8 KV (2 trays) · DP4 x TP4, EP16, FP8 KV (4 trays)
One engine over two 4-GPU GB300 trays: attention TP4 per tray and DP2 across trays, routed experts EP8 on DeepGEMM MegaMoE with the BF16 shared expert fused into the same launch, DSpark draft with 8 tokens, an FP8 KV cache on the global-attention and draft layers (sliding-window layers BF16), balanced decode, batch-sharded sampling and the prefill GEMM + collective fusion.
Runbook
One aggregated engine over two GB300 trays (8 GPUs) in one NVL72 domain, with the MoE path, KV cache, attention config, sampling and prefill fusion of b300_tp8: attention runs TP4 inside each tray and DP2 across trays, and the routed experts run EP8 on one DeepGEMM MegaMoE launch per layer. NVLS stays on (NCCL default).
With one DP rank per tray, each tray serves its own rank on its own API server (vLLM turns hybrid LB into external LB at local DP size 1). Put vllm-router >= 0.1.17 with --policy sticky_least_loaded in front of the two tray endpoints. A session's first request (keyed by X-Session-ID) goes to the DP rank with the fewest active sessions, and its later requests stay on that rank, so they reuse its prefix cache. A session idle longer than the TTL (VLLM_ROUTER_SLL_SESSION_EXPIRATION_IN_S, default 7200 s) may be re-placed.
Send a session key on every request. vllm-router 0.1.17 does not balance requests without one: on Chat Completions it reads the key only from headers (X-Session-ID first), and it sends every request without a key to the same DP rank. Key each conversation or agent trajectory with its own X-Session-ID, for example with the OpenAI Python client client.chat.completions.create(..., extra_headers={"X-Session-ID": conversation_id}). For single-turn traffic (for example an eval harness), send a new X-Session-ID per request, or run the router with --policy round_robin.
`gb300_dep2_tp4` over four GB300 trays: attention TP4 per tray and DP4 across trays, routed experts EP16.
Runbook
The engine, router setup and session keys of gb300_dep2_tp4 on four trays (16 GPUs): one API server per tray, vllm-router --policy sticky_least_loaded in front of the four tray endpoints.