Amazon Ergo: 1.1T Open-Weights MoE Architecture, Benchmarks & Deployment
Deep guide to Amazon Ergo (1.1T/55B MoE). Explore hybrid SWA-512 attention, DSpark speculative decoding, Bedrock pricing, benchmarks, and SGLang setup.
Amazon Ergo (amazon.ergo-1.0) is a 1.1-trillion-parameter open-weights Mixture-of-Experts foundation model built by Amazon Frontier Model Research (FMR) for software engineering and long-horizon coding agents. Released on December 1, 2026 at AWS re:Invent, the model activates 55 billion parameters per token across a 1-million-token context window.
Multi-step coding agents routinely stall on two engineering bottlenecks: multi-second decode latency across dozens of file-edit turns and exponential KV cache memory growth over repository-wide contexts. Amazon Ergo addresses both bottlenecks by pairing hybrid sliding-window attention with custom Trainium3 serving on Amazon Bedrock and day-one SGLang and vLLM support.
This technical guide dissects the ErgoForCausalLM configuration, evaluates public DeepSWE and Terminal-Bench 4.0 benchmarks against frontier peers, walks through production boto3 and SGLang deployments with Ergo-dspark speculative decoding, and documents the licensing and hardware traps teams hit in production.
Key Takeaways
- Amazon Ergo (
amazon.ergo-1.0) packs 1.1T total parameters (55B active per token), a 1,048,576-token context window, and 131,072-token max output across 64 transformer layers.- Interleaving 48 local sliding-window attention (
SWA-512) layers with 16 global NoPE layers bounds a full 1M-token FP8 KV cache footprint to roughly 32 GiB on the 16 global layers alone.- On public evaluations, Amazon Ergo scores 74.2% pass@1 on DeepSWE and 70.0 on AutomationBench-AA, outscoring Claude Opus 5.5 (71.3%) and GPT-6 Astra (71.2%) on DeepSWE while trailing Kimi K3.1 Pro (77.9%).
- Managed Bedrock inference costs $1.00 per million input tokens, $0.03 per million cached input tokens, and $3.00 per million output tokens at over 400 output tokens per second on Trainium3.
- Self-hosting MXFP4 (626 GB) or MXFP8 (1.17 TB) weights requires NVIDIA SM100+ GPUs (Blackwell or Vera Rubin) or Trainium3 instances, and third-party MaaS providers exceeding $20M annual revenue require a separate commercial agreement.
What Is Amazon Ergo and Why Did Amazon FMR Build an Open-Weights Coding Model?
Amazon Ergo is an agentic reasoning and software engineering model developed by Amazon Frontier Model Research (FMR) to run multi-turn tool loops at high decode throughput. Available both as downloadable Hugging Face checkpoints and as a managed service on Amazon Bedrock, the release targets teams running autonomous developer workflows such as Kiro and CI repair pipelines.
Historically, engineering teams deploying autonomous AI coding agents faced an uncomfortable split. Proprietary frontier models offered strong multi-file reasoning at $10 to $30+ per million output tokens, while smaller open models struggled on multi-step terminal debugging across large repositories.
Amazon FMR designed the model specifically around agentic code generation, repository navigation, and long-running tool execution rather than general trivia or multimodal vision. According to the Amazon Frontier Model Research announcement, the model ranks first among U.S. open-weights releases across seven reported coding benchmarks.
Solving Long-Horizon Agent Latency and Cache Economics
Agentic software engineering loops generate disproportionately high read-to-write token ratios. Every shell command, test log, or file diff appends to the prompt prefix and forces repeated KV cache reads across 20 to 80 sequential turns.
Two design decisions keep that loop affordable in production. First, Bedrock offers a 97% discount on cached prefix reads ($0.03 per million cached tokens versus $1.00 uncached). Second, native Trainium3 execution sustains over 400 output tokens per second so multi-file edits finish in seconds instead of minutes.
Checkpoints, Quantization Formats, and Knowledge Boundaries
Amazon FMR published four official repositories on Hugging Face under the Amazon-FMR organization, covering three target weight precisions and one companion draft model. All weights carry a June 2026 knowledge cutoff and ship with an ErgoTokenizer SentencePiece vocabulary of 262,144 tokens.
| Repository | Precision / Role | Download Size | Minimum NVIDIA Footprint | Primary Use Case |
|---|---|---|---|---|
| Amazon-FMR/Ergo | MXFP4 (Primary) | 626 GB | 4x GB300 or 2x DGX Station | Production self-hosting and low-latency serving |
Amazon-FMR/Ergo-mxfp8 |
MXFP8 | 1.17 TB | 8x GB300 / B300 / B200 | Higher-precision MoE inference on 8-GPU nodes |
Amazon-FMR/Ergo-bf16 |
BF16 (Unquantized) | 2.22 TB | 16x GB300 / B300 / GB200 | Custom fine-tuning and static quantization source |
| Amazon-FMR/Ergo-dspark | BF16 (3.24B Draft) | 6.48 GB | Pairs with any target | Speculative decoding (8 draft tokens per step) |
Only the 256 routed experts are quantized in the MXFP4 and MXFP8 checkpoints. Attention projections, the leading dense layer, the shared expert, norms, router weights, embeddings, and lm_head remain in native precision to protect reasoning stability.
Inside ErgoForCausalLM: Hybrid Attention, ReLU-Squared MoE, and DSpark Architecture
ErgoForCausalLM (model_type: ergo) is a 64-layer Mixture-of-Experts transformer that pairs 1 leading dense layer and 63 sparse MoE layers with a 3:1 hybrid attention layout. By limiting global attention to every fourth layer and pruning routed activation via squared ReLU, the architecture sustains a 1-million-token window without blowing up HBM capacity.
Figure 1: Hybrid 64-layer ErgoForCausalLM topology pairing 48 local SWA-512 layers, 16 global NoPE layers, 256 routed ReLU-squared experts, and the 3.24B DSpark speculative verifier.
Understanding these architectural parameters explains both why the model runs fast on Blackwell and Trainium3 silicon and why careless runtime flags trigger immediate out-of-memory failures. Inspecting the Amazon-FMR/Ergo model card and official config.json reveals three critical hardware-aware mechanisms.
Bounding 1M-Token KV Cache with 48 SWA-512 and 16 Global NoPE Layers
A standard 64-layer transformer with global attention across 1,048,576 tokens consumes prohibitive HBM just for KV state. Amazon Ergo avoids that trap by interleaving 48 local sliding-window attention (SWA-512) layers using GPT-J Rotary Position Embeddings (rope_theta: 1000000.0) with 16 global NoPE (No Positional Embedding) layers placed at every fourth layer (global_attention_every_n_layers: 4).
Each attention layer uses Grouped-Query Attention (GQA) with 64 query heads, 8 key/value heads, QK-norm, head_dim: 128, and hidden_size: 8192. Because the 48 local layers never retain KV entries beyond a 512-token window, long-context KV cache growth is restricted entirely to the 16 global layers. Under FP8 (fp8_e4m3) KV quantization, a full 1-million-token sequence consumes roughly 32 GiB across those 16 global layers.
256 Routed ReLU-Squared Experts, Per-Expert RMSNorm, and Shared Expert Sharding
Layer 0 is a dense ReLU-squared feed-forward block (first_dense_intermediate_size: 32768), followed by 63 MoE layers. Each MoE layer contains 256 routed ReLU-squared experts (moe_intermediate_size: 4096) and 1 always-active shared ReLU-squared expert (shared_intermediate_size: 8192).
For every token, a sigmoid_topk router with DeepSeek-style load balancing selects 8 routed experts (num_experts_per_tok: 8) and applies a routed scaling factor of roughly 2.828 (2 * sqrt(2)). Crucially, ErgoForCausalLM applies per-expert output RMSNorm (moe_expert_output_rms_norm: true) before summing routes across experts, meaning tensor parallelism (--tp-size) and expert parallelism (--ep-size) must remain equal during distributed inference.
| Architectural Parameter | Value in config.json |
Engineering Impact |
|---|---|---|
num_hidden_layers |
64 (1 dense + 63 MoE) |
Separates initial token mixing from sparse expert routing |
num_experts / num_experts_per_tok |
256 routed / 8 active + 1 shared |
Activates 55B of 1.1T total parameters per token |
local_attention_window |
512 (48 layers) |
Bounds local KV cache per request to 512 tokens |
global_attention_every_n_layers |
4 (16 global NoPE layers) |
Cuts global long-context KV footprint by 75% vs dense global attention |
num_attention_heads / num_key_value_heads |
64 Q / 8 KV (head_dim: 128) |
8:1 GQA compression lowers decode memory bandwidth |
max_position_embeddings |
1,048,576 (1M tokens) |
Supports multi-file repository context in a single session |
CONTROL Token Framing and the 3.24B DSpark Speculative Verifier
Unlike models that rely on text-based <think> XML tags, Amazon Ergo frames both reasoning traces and tool calls using dedicated SentencePiece CONTROL token IDs. SGLang’s ErgoChatEncodingAdapter reads those CONTROL tokens directly to populate reasoning_content and tool_calls without brittle regex parsing.
To accelerate autoregressive decoding, Amazon FMR released Amazon-FMR/Ergo-dspark, a 3.24-billion-parameter BF16 draft model (6.48 GB). DSpark uses 5 decoder layers conditioned on target layer IDs 1, 16, 31, 46, and 61, a 32,768-token sliding window, a rank-256 Markov confidence head, and an 8-token draft block (block_size: 8) so the main 1.1T model verifies up to 9 tokens per forward pass.
Amazon Ergo Benchmarks vs. Kimi K3.1 Pro, Claude Opus 5.5, and GPT-6 Astra
On coding and workplace automation evaluations published on December 1, 2026, Amazon Ergo scores 74.2% pass@1 on DeepSWE, 70.0 on AutomationBench-AA, and 46.2% on Terminal-Bench 4.0. Those figures put Amazon Ergo ahead of Claude Opus 5.5 and GPT-6 Astra on DeepSWE and AutomationBench-AA, while Kimi K3.1 Pro retains the top open-weights slot across most public leaderboards.
When evaluating these numbers against our broader tracking of top open-source LLMs, notice the sharp specialization split. Amazon FMR focused post-training heavily on repository debugging, terminal command execution, and long-horizon workspace tasks rather than broad scientific reasoning.
Coding, Terminal Execution, and Enterprise Workflow Benchmarks
The table below compiles the reported results from the official Amazon Ergo evaluation card, pairing internal FMR-Bench scores with public coding, terminal, and enterprise workflow leaderboards.
| Model | FMR-Bench AI SWE (pass@1) | DeepSWE (pass@1) | FrontierSWE v2 | Terminal-Bench 4.0 | AutomationBench-AA | Terminal-Bench Science 0.1 |
|---|---|---|---|---|---|---|
| Amazon Ergo | 65.4 | 74.2 | 31.5 | 46.2 | 70.0 | 21.3 |
| Kimi K3.1 Pro | 58.6 | 77.9 | 29.3 | 63.3 | 73.3 | 35.7 |
| Claude Opus 5.5 | Not reported | 71.3 | Not reported | Not reported | 69.5 | 61.2 |
| GPT-6 Astra | Not reported | 71.2 | Not reported | Not reported | 68.5 | 67.9 |
| GLM 5.3 | 44.3 | 69.5 | 30.2 | 36.9 | 62.2 | 5.7 |
| Mistral Large 4 | 39.4 | 59.1 | 15.8 | 30.1 | 57.8 | 3.1 |
| Muse Spark Open | 28.1 | 56.6 | 11.1 | 5.1 | 49.7 | 1.0 |
Two metrics stand out for agent builders. On FMR-Bench Ultra Long Horizon (pass@1), Amazon Ergo reaches 20.5% compared to 13.1% for Kimi K3.1 Pro and 9.7% for GLM 5.3, confirming strong multi-turn coherence over extended tool trajectories. On Briefcase-AA 1.1, Ergo posts a 1615 Elo rating, trailing Kimi K3.1 Pro (1672) while clearing GLM 5.3 (1498) and Muse Spark Open (1281).
Where Competitors Win: General Science, Vision, and First-Try Accuracy
Honest model selection requires looking at where Ergo loses decisively. Treat these three gaps as hard architectural boundaries when routing production workloads:
- Scientific and Quantitative Research: On Terminal-Bench Science 0.1 (
pass@1), GPT-6 Astra (67.9%) and Claude Opus 5.5 (61.2%) triple Amazon Ergo’s 21.3% score. Route bioinformatics, physics simulation, or complex statistical modeling to frontier proprietary reasoning models instead. - Multimodal UI and Diagram Inspection: Amazon Ergo is strictly text-only and rejects image, audio, or video parts at the chat encoder. Frontend coding agents that inspect rendered browser screenshots or Figma mockups must pair Ergo with a vision-capable model such as Claude Sonnet 5.5 or Gemini 4 Carbon.
- Complex Terminal Environments and One-Shot Edits: Kimi K3.1 Pro beats Ergo by 17.1 percentage points on Terminal-Bench 4.0 (63.3% vs. 46.2%), and Amazon’s own model card notes that first-attempt accuracy trails top closed flagships. Always wrap Ergo inside a test-and-verify loop rather than trusting single-shot diffs.
Deploying Amazon Ergo: Bedrock API, SGLang with DSpark, and vLLM Recipes
Teams can consume Amazon Ergo through fully managed Amazon Bedrock endpoints (us.amazon.ergo-1.0 or global.amazon.ergo-1.0) using the boto3 Converse API, or self-host open MXFP4 weights on NVIDIA Blackwell/Vera Rubin and AWS Trainium3 clusters with SGLang or vLLM. Choosing the right runtime depends on latency targets, compliance boundaries, and cluster hardware availability.
Figure 2: Production runtime selection flow across Amazon Bedrock, Trainium3SR Turbo, SGLang MegaMoE clusters, and host-backed DGX Stations.
Recommended default sampling parameters from generation_config.json are temperature: 1.0, top_p: 0.99, and max_tokens up to 131072 (128K). Setting temperature much lower on fixed-reasoning coding runs can degrade exploration during tricky debugging loops, so benchmark before overriding defaults.
Step 1: Calling Amazon Bedrock via Python boto3 Converse API
Managed inference on Amazon Bedrock requires no GPU provisioning and exposes cross-Region inference profiles (us.amazon.ergo-1.0 for US Geo routing and global.amazon.ergo-1.0 for Global routing). Install the latest AWS SDK (pip install boto3 botocore) and ensure your IAM role holds bedrock:InvokeModel permissions for the selected inference profile.
The Python snippet below wraps the Amazon Bedrock Ergo 1.0 model card Converse API with typed error handling, prompt caching checkpoints on the system prompt, and recommended sampling parameters.
import logging
from typing import Optional
import boto3
from botocore.config import Config
from botocore.exceptions import BotoCoreError, ClientError
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("ergo-bedrock")
def invoke_ergo_converse(
user_prompt: str,
system_prompt: str,
model_id: str = "us.amazon.ergo-1.0",
region: str = "us-east-1",
max_tokens: int = 8192,
) -> Optional[str]:
"""Invoke Amazon Ergo on Bedrock Converse with prompt caching and retries."""
boto_config = Config(
read_timeout=300,
retries={"max_attempts": 3, "mode": "adaptive"},
)
client = boto3.client("bedrock-runtime", region_name=region, config=boto_config)
try:
response = client.converse(
modelId=model_id,
system=[
{"text": system_prompt},
{"cachePoint": {"type": "default"}},
],
messages=[
{
"role": "user",
"content": [{"text": user_prompt}],
}
],
inferenceConfig={
"maxTokens": max_tokens,
"temperature": 1.0,
"topP": 0.99,
},
)
except ClientError as exc:
error_code = exc.response.get("Error", {}).get("Code", "Unknown")
logger.error("Bedrock ClientError [%s]: %s", error_code, exc)
return None
except BotoCoreError as exc:
logger.error("Bedrock transport failure: %s", exc)
return None
usage = response.get("usage", {})
logger.info(
"Tokens - input: %s, cacheRead: %s, output: %s",
usage.get("inputTokens", 0),
usage.get("cacheReadInputTokens", 0),
usage.get("outputTokens", 0),
)
content_blocks = response.get("output", {}).get("message", {}).get("content", [])
text_parts = [block["text"] for block in content_blocks if "text" in block]
return "\n".join(text_parts) if text_parts else None
if __name__ == "__main__":
answer = invoke_ergo_converse(
system_prompt="You are a senior Rust systems engineer reviewing memory safety.",
user_prompt="Refactor an Arc<Mutex<Vec<u8>>> ring buffer to avoid lock contention.",
)
if answer:
print(answer)
Notice the cachePoint block placed directly after system_prompt and read_timeout=300. Long-running agentic prompts generating tens of thousands of reasoning tokens frequently exceed default 60-second HTTP read timeouts unless explicitly raised in botocore.config.Config.
Step 2: Self-Hosting with SGLang, DSpark, and xgrammar Tool Schemas
When self-hosting Amazon-FMR/Ergo (MXFP4, 626 GB), the SGLang Amazon Ergo deployment cookbook and vLLM Ergo recipe provide day-one engine support. For teams comparing vLLM vs SGLang serving engines, SGLang’s official cookbook ships tuned kernels for DeepEP v2, fused MegaMoE, FP8 KV caches, and Ergo-dspark speculative decoding.
The launch command below configures an 8x Blackwell (or Vera Rubin) node at TP8 / EP8 using MXFP4 weights, DSpark 8-token speculative verification, FP8 KV cache, and xgrammar>=0.2.9 strict tool schema enforcement.
# Pull the official SGLang Ergo image (includes baked DeepGEMM MegaMoE kernels)
docker pull lmsysorg/sglang:ergo
# Launch 8-GPU TP8/EP8 server with DSpark speculative decoding and 1M-safe SWA ratio
SGLANG_TOOL_STRICT_LEVEL=1 \
SGLANG_ERGO_MEGAMOE_IMPL=deepgemm \
python3 -m sglang.launch_server \
--model-path Amazon-FMR/Ergo \
--tp-size 8 \
--ep-size 8 \
--enable-shared-experts-attn-tp \
--moe-a2a-backend megamoe \
--moe-runner-backend deep_gemm \
--kv-cache-dtype fp8_e4m3 \
--swa-full-tokens-ratio 0.03 \
--attention-backend trtllm_mha \
--speculative-algorithm DSPARK \
--speculative-draft-model-path Amazon-FMR/Ergo-dspark \
--speculative-dspark-block-size 8 \
--max-running-requests 48 \
--port 30000
Leave --reasoning-parser and --tool-call-parser unset. SGLang automatically activates the built-in ergo adapter (ErgoChatEncodingAdapter) to decode CONTROL tokens, while --swa-full-tokens-ratio 0.03 prevents SGLang’s 0.8 default from wasting HBM on the 48 short 512-token SWA layers.
For AWS infrastructure teams running Trainium3 (trn3.48xlarge) instances without NVIDIA GPUs, SGLang supports MXFP4 prefill/decode disaggregation over Elastic Fabric Adapter (EFA) through the sglang-neuron plugin.
Step 3: Multi-Turn OpenAI-Compatible Tool Calling and vLLM / SageMaker Options
Once SGLang or vLLM exposes the /v1/chat/completions endpoint, standard OpenAI SDK clients work with one crucial requirement: multi-turn tool histories must preserve reasoning_content alongside content and tool_calls on assistant messages, and SGLANG_TOOL_STRICT_LEVEL=1 activates xgrammar structural-tag constraints when strict: true is declared.
import json
import os
from typing import Any
from openai import OpenAI, APIError
client = OpenAI(
base_url=os.getenv("ERGO_BASE_URL", "http://localhost:30000/v1"),
api_key=os.getenv("ERGO_API_KEY", "EMPTY"),
)
TOOLS: list[dict[str, Any]] = [
{
"type": "function",
"function": {
"name": "run_pytest_target",
"description": "Execute pytest on a specific repository test path.",
"strict": True,
"parameters": {
"type": "object",
"properties": {
"test_path": {"type": "string", "description": "Relative path to test file"},
"verbose": {"type": "boolean", "description": "Enable verbose pytest logs"},
},
"required": ["test_path", "verbose"],
"additionalProperties": False,
},
},
}
]
def execute_tool_loop(user_task: str, max_turns: int = 4) -> str:
"""Run a bounded multi-turn tool loop preserving Ergo reasoning traces."""
messages: list[dict[str, Any]] = [{"role": "user", "content": user_task}]
for _ in range(max_turns):
try:
response = client.chat.completions.create(
model="Amazon-FMR/Ergo",
messages=messages,
tools=TOOLS,
temperature=1.0,
top_p=0.99,
max_tokens=16384,
)
except APIError as exc:
return f"Inference error: {exc}"
choice = response.choices[0]
assistant_msg = choice.message
messages.append(assistant_msg.model_dump(exclude_none=True))
if not assistant_msg.tool_calls:
return assistant_msg.content or ""
for call in assistant_msg.tool_calls:
args = json.loads(call.function.arguments)
# Replace with sandboxed test runner in production
tool_result = {
"test_path": args["test_path"],
"passed": True,
"duration_ms": 412,
}
messages.append(
{
"role": "tool",
"tool_call_id": call.id,
"content": json.dumps(tool_result),
}
)
return "Aborted: reached max tool execution turns."
Teams preferring vLLM can follow the vLLM Ergo recipe for multi-node tensor-parallel clusters, while enterprises fine-tuning Amazon-FMR/Ergo-bf16 on proprietary repositories can deploy custom weights via Amazon SageMaker AI Deep Learning Containers using either vLLM or SGLang DLCs.
Pricing Economics, Trainium3SR Turbo Mode, and Open-Weights Licensing Rules
On Amazon Bedrock, standard Ergo inference costs $1.00 per million input tokens, $0.03 per million cached input tokens, and $3.00 per million output tokens, backed by custom Trainium3 throughput above 400 output tokens per second. While open weights are free to download, teams distributing hosted endpoints must audit the $20 million annual Model-as-a-Service (MaaS) threshold in the license.
Bedrock Token Math: Why $0.03 Cached Input Matters for Agent Loops
Consider a realistic 20-turn coding agent session debugging a service with an 80,000-token repository prefix (system rules, AST map, and open files) plus 1,500 new output tokens per turn (30,000 total output tokens, including reasoning tokens).
- Uncached Input Cost: 20 turns x 80,000 tokens = 1.6M input tokens at $1.00/M = $1.60.
- Cached Input Cost: Turn 1 writes 80K tokens ($0.08), while turns 2 to 20 read 1.52M cached tokens at $0.03/M ($0.0456) = $0.13 total input spend.
- Output Cost: 30,000 output tokens at $3.00/M = $0.09.
Enabling Bedrock prompt caching drops total session input cost by over 91%, bringing a 20-turn repository debugging run down to roughly $0.22 per session. That economic profile makes aggressive test-and-retry loops viable without runaway API bills.
Trainium3 vs. Trainium3SR Turbo Mode Throughput Realities
Hardware co-design drives the headline throughput figures. Standard Bedrock deployment runs on AWS Trainium3 chips at over 400 output tokens per second, while Ergo Turbo pairs Trainium3 with an SRAM-based Trainium3SR decode chip to reach 2,200 output tokens per second in limited preview (Turbo pricing remains unannounced).
Keep an engineering sanity check in mind when benchmarking Turbo speeds. Generating 2,200 tokens per second cuts pure LLM decode time for a 2,000-token patch under 1 second, yet end-to-end agent wall-clock time still depends on prefill latency, pytest execution, container builds, and git diff application.
Amazon Ergo Open-Weights License and the $20M MaaS Revenue Clause
The Amazon Ergo Open-Weights License grants royalty-free rights to run, modify, fine-tune, and redistribute the model, subject to Exhibit A’s Acceptable Use Policy (which bars illegal activity, cyberattacks, spam, EU AI Act Article 6 high-risk usage without safeguards, and training-data reverse engineering).
| Deployment Scenario | Commercial Use Permitted? | Separate Amazon Agreement Required? | Key Compliance Condition |
|---|---|---|---|
| Internal enterprise coding agents (self-hosted or Bedrock) | Yes | No | Comply with AUP and EU AI Act safeguards |
| Embedded SaaS product feature (non-MaaS) | Yes | No | End users do not supply raw prompts/training data to a hosted model API |
Third-party Model-as-a-Service (<= $20M gross annual revenue) |
Yes | No | Include license copy and disclose AI risks to end users |
Third-party Model-as-a-Service (> $20M gross annual revenue) |
Conditional | Yes (Mandatory) | Must sign written agreement with Amazon prior to offering MaaS |
Check Section 3 carefully before adding Ergo to a multi-tenant inference API gateway. Organizations exceeding US$20,000,000 in gross revenue across any consecutive 12-month period from a Model-as-a-Service business where third parties control inputs or fine-tuning data must sign a separate written contract with Amazon first.
By contrast, ecosystems like Meta Muse open-weights agents tie commercial restrictions to monthly active user caps rather than hosted MaaS revenue.
Security Controls, Known Limitations, and Production Troubleshooting Runbook
Running an autonomous coding agent that executes terminal commands demands strict isolation, because prompt injection planted inside repository READMEs or dependency logs can trick models into exfiltrating secrets or deleting files. Beyond sandboxing, production engineers deploying Amazon Ergo must account for SM100+ GPU constraints, fixed reasoning token budgets, and strict SGLang parallelism rules.
Figure 3: Five-layer defense-in-depth stack covering Nitro Enclave isolation, xgrammar tool schemas, sandboxed execution, and AUP governance.
Defense-in-Depth Security: Nitro Enclaves, Guardrails, and Sandboxed Agents
On Amazon Bedrock, Ergo runs on the AWS Nitro System with zero data retention and zero operator access, guaranteeing that proprietary codebases are never stored or used for model training. Teams can layer Amazon Bedrock Guardrails on top to filter prompt injections and PII leaks before tokens reach tool dispatchers.
Self-hosted teams inherit full responsibility for runtime containment. Review our AI agent security best practices and enforce four mandatory controls before granting shell access:
- Containerized Ephemeral Workspaces: Run agent bash tools inside rootless Docker, Firecracker microVMs, or read-only workspace mounts with egress network allowlists.
- Strict Schema Enforcement: Enable
SGLANG_TOOL_STRICT_LEVEL=1withadditionalProperties: falsesoxgrammarblocks malformed or injected JSON payloads at decoding time. - Human Confirmation Gates: Require out-of-band approval before destructive operations (
git push --force,rm -rf, database migrations, or production IAM changes). - Credential Isolation: Never inject AWS secrets or production API keys into container environment variables readable by agent-executed scripts.
Known Model Limitations: Text-Only Input, Fixed Reasoning, and Kiro Friction
Before standardizing engineering pipelines on Amazon Ergo, audit four documented limitations from the official model card and early AWS Kiro deployments:
- No Vision or Multimodal Support: Passing screenshots, architecture diagrams, or audio buffers fails immediately because the chat encoder rejects non-text content parts.
- Fixed Reasoning Effort (Always On): Ergo does not expose
low/medium/highreasoning effort tiers. It reasons by default on every turn, inflating output token counts on trivial queries unless you explicitly passextra_body={"chat_template_kwargs": {"thinking": False}}per request on SGLang. - Kiro Credit Multipliers and Supervised Review Glitches: Developers running Ergo previews inside AWS’s Kiro IDE (replacing Amazon Q Developer IDE) report a 1.2x credit multiplier that drains monthly quotas faster, alongside occasional friction adapting to Kiro’s rigid spec-driven (
requirements.mdtodesign.mdtotasks.md) workflow. - Regional Bedrock Routing Constraints: Cross-region inference (
us.amazon.ergo-1.0,global.amazon.ergo-1.0) may route outside strict local EU or Middle East data-residency zones unless explicitly scoped to supported regional endpoints.
Production Troubleshooting Runbook: SWA OOM, SM100+ Gates, and TP/EP Rules
Self-hosting a 1.1T MoE checkpoint introduces unique failure modes that look like generic CUDA OOMs at first glance. Use the diagnostic table below to resolve the five most common SGLang and vLLM deployment errors.
| Symptom / Error | Root Cause | Exact Production Fix |
|---|---|---|
| Immediate HBM OOM at 128K-1M context | SGLang default --swa-full-tokens-ratio 0.8 over-allocates the 48 short 512-token SWA layers |
Set --swa-full-tokens-ratio 0.03 (or 0.05 at high concurrency) and enable --kv-cache-dtype fp8_e4m3 |
| Kernel launch failure on H100 / A100 | MXFP4 and MXFP8 MoE kernels require NVIDIA SM100+ (Blackwell / Vera Rubin) | Deploy on GB300, GB200, B300, B200, Vera Rubin, or AWS Trainium3 (sglang-neuron), or convert from Ergo-bf16 |
| Assertion or weight-sharding crash at startup | Per-expert output RMSNorm requires tensor and expert parallelism symmetry | Keep --tp-size strictly equal to --ep-size (e.g., TP8 / EP8) and add --enable-shared-experts-attn-tp |
Crash when enabling --enable-eplb |
Redundant expert load balancing breaks contiguous logical expert ID slicing | Remove --enable-eplb and --ep-num-redundant-experts completely |
Missing tool_calls or broken reasoning JSON |
Passing --reasoning-parser or --tool-call-parser overrides native CONTROL token parsing |
Leave both parser flags unset so ErgoChatEncodingAdapter handles CONTROL tokens directly |
| Host-mapped loader refusal on 2x DGX Station | Leaving under 1/16 of GPU HBM (~24-31 GiB) free blocks pinned host expert mapping | Set SGLANG_ERGO_GPU_EXPERT_LAYERS=38, --mem-fraction-static 0.846, and --disable-prefill-cuda-graph |
[!WARNING] Never enable
--enable-eplbor--ep-num-redundant-expertson Amazon Ergo checkpoints. BecauseErgoMoEFeedForwardslices per-expert RMSNorm scales by contiguous logical expert IDs, redundant expert replication corrupts tensor shapes during startup.
Frequently Asked Questions About Amazon Ergo
What is Amazon Ergo and who developed it?
Amazon Ergo (amazon.ergo-1.0) is an open-weights 1.1-trillion-parameter Mixture-of-Experts foundation model built by Amazon Frontier Model Research (FMR) and released on December 1, 2026. It activates 55 billion parameters per token and is specifically optimized for software engineering, terminal automation, and long-horizon coding agents.
How does Amazon Ergo handle a 1 million token context window efficiently?
ErgoForCausalLM interleaves 48 local sliding-window attention layers (512-token window) with 16 global NoPE attention layers placed every fourth layer. This design bounds long-context KV cache memory growth to just 16 global layers, keeping a full 1M-token sequence near 32 GiB under FP8 KV quantization.
How much does Amazon Ergo cost on Amazon Bedrock?
Amazon Bedrock charges $1.00 per million input tokens, $0.03 per million cached input tokens, and $3.00 per million output tokens for standard Ergo inference. Pricing for the limited-preview Ergo Turbo mode running on Trainium3SR hardware has not yet been announced.
What GPUs are required to self-host Amazon Ergo MXFP4 weights?
On NVIDIA hardware, MXFP4 and MXFP8 MoE kernels require SM100+ architectures such as Blackwell (GB300, GB200, B300, B200) or Vera Rubin, starting at 4x GB300 or 2x DGX Station with host-backed experts. Teams on AWS can also self-serve MXFP4 weights on Trainium3 instances (trn3.48xlarge) using the sglang-neuron plugin.
What is Amazon Ergo DSpark and how does it accelerate inference?
Amazon-FMR/Ergo-dspark is a 3.24-billion-parameter BF16 draft model (5 decoder layers, rank-256 Markov confidence head) trained specifically for speculative decoding with Amazon Ergo. It proposes 8-token draft blocks per verification step, boosting decode throughput on structured code and math workloads at low-to-moderate concurrency.
Can commercial companies use the Amazon Ergo Open-Weights License for free?
Yes, the Amazon Ergo Open-Weights License allows free commercial deployment, fine-tuning, modification, and redistribution when paired with the Acceptable Use Policy. However, third-party Model-as-a-Service (MaaS) providers exceeding $20 million in annual gross revenue must sign a separate written agreement with Amazon.
How does Amazon Ergo compare to Claude Opus 5.5, GPT-6 Astra, and Kimi K3.1 Pro?
On DeepSWE pass@1, Amazon Ergo scores 74.2%, beating Claude Opus 5.5 (71.3%) and GPT-6 Astra (71.2%) while trailing Kimi K3.1 Pro (77.9%). Closed flagships still hold a large lead on general science benchmarks such as Terminal-Bench Science 0.1, where GPT-6 Astra scores 67.9% versus Ergo’s 21.3%.
What are the main limitations of Amazon Ergo in production coding agents?
Amazon Ergo is strictly text-only and rejects image or diagram inputs, and its reasoning effort is fixed on by default unless explicitly disabled per request with thinking set to false. Because first-attempt accuracy trails top closed models on open-ended tasks, agents should always verify edits with automated test loops.
Deploying Amazon Ergo in Production: Next Steps
Start on Amazon Bedrock (us.amazon.ergo-1.0) with prompt caching enabled on your repository index and system instructions to lock in $0.03 per million cached read tokens and 400+ tokens/s throughput without hardware lock-in. Reserve self-hosted Amazon-FMR/Ergo MXFP4 clusters with SGLang, Ergo-dspark, and --swa-full-tokens-ratio 0.03 for strict air-gapped VPCs or high-utilization Blackwell and Trainium3 workloads, and pair Ergo with automated test harnesses and strict xgrammar tool schemas before merging autonomous diffs.