How-To Guides3 min read

How to Deploy Amazon Ergo-1.0 on Amazon Bedrock and Self-Hosted vLLM

Engineering runbook for running Amazon Ergo-1.0 (1.1T MoE / 55B active) via Amazon Bedrock Converse API with zero data retention versus self-hosting Hugging Face weights with vLLM/SGLang.

To deploy Amazon Ergo-1.0, use the Amazon Bedrock Converse or InvokeModel API with cross-Region inference profiles and zero data retention for managed >400 tok/s serving at $1/$3 per million tokens, or serve the Hugging Face open weights via vLLM/SGLang across an 8x80GB or 8x141GB multi-GPU node with tensor and expert parallelism enabled.

Key takeaways

  • Start on Amazon Bedrock Converse API unless data residency, custom LoRA adapters, or sustained high utilization justify dedicated 8-GPU or Trainium nodes.
  • Size self-hosted VRAM for both the full 1.1T MoE weight shards and the active KV-cache pool—55B active parameters reduce FLOPs, not weight memory.
  • Enforce strict tool-call JSON schemas and max-turn budgets in your agent loop to cap 128K-output runaway costs.

Quick facts

  • Bedrock Managed Path: Uses the standard Converse API with IAM policies, PrivateLink VPC endpoints, and zero prompt/completion retention.
  • Self-Hosted Footprint: 1.1T total MoE parameters require ~1.1 TB in FP8 or ~550 GB in INT4/AWQ for weights alone, plus KV cache.
  • Parallelism Strategy: Combine Tensor Parallelism (TP) with Expert Parallelism (EP) in vLLM or SGLang to minimize all-to-all communication overhead.
  • Context Math: Even with Grouped-Query Attention (GQA), a 1M-token context window demands careful max-model-len and gpu-memory-utilization tuning.

Deploying Amazon Ergo-1.0 in production forces a clear architectural fork. You can consume the managed endpoint on Amazon Bedrock (1.00/Minput,1.00/M input, 3.00/M output, >400 tok/s on AWS Trainium) or pull the open weights from Hugging Face under the Amazon Ergo Open-Weights License and run your own vLLM or SGLang inference cluster.

This runbook covers both paths: IAM-scoped Bedrock Converse calls with tool-calling loops, memory math for the 1.1T MoE footprint, and self-hosted vLLM/SGLang deployment.

Bedrock Managed Path vs. Self-Hosted vLLM/SGLang

DimensionAmazon Bedrock (Managed)Self-Hosted vLLM / SGLang
Hardware RequiredNone (AWS Trainium managed)Multi-GPU (e.g. 8x H200 / B200 or multi-node H100)
Weight MemoryAbstracted~1.1 TB (FP8) or ~550 GB (4-bit) + KV cache
Throughput>400 tok/s out of the boxDepends on TP/EP interconnect (NVLink / EFA)
Data PrivacyZero data retention; PrivateLink VPC100% air-gapped inside your cluster
Pricing Model1.00/Minput,1.00/M input, 3.00/M outputFixed instance $/hr regardless of utilization
Amazon Bedrock Managed Path vs Self-Hosted vLLM PagedAttention Pipeline
Comparison of Bedrock cross-Region Trainium routing against self-hosted vLLM TP/EP sharding and PagedAttention KV blocks.

Context-Window Memory Math for Self-Hosting

A common sizing mistake with sparse MoE models is confusing active FLOPs with resident VRAM. Although Ergo-1.0 executes only 55B parameters per token, all 1.1T parameters must stay resident in GPU HBM across your cluster:

  • FP8 weights (1 byte/param): ~1.1 TB raw weights across GPUs. An 8x H200 (141 GB each = 1,128 GB total) barely fits FP8 weights with almost zero room for KV cache; in practice, FP8 serving requires 2x 8-GPU nodes (16x H100/H200) or 8x B200 (192 GB/GPU = 1,536 GB).
  • 4-bit quantized weights (AWQ/GPTQ/FP4): ~550 GB raw weights, fitting cleanly onto a single 8x H200 (1,128 GB) or 8x H100 80GB (640 GB) node with headroom for KV cache.
  • KV cache at 1M context: Keep --max-model-len bounded to your actual workload ceiling (for example, 131072 or 262144 tokens) unless you have dedicated multi-node HBM capacity for 1M-token concurrent prefixes.

Step-by-Step Deployment

Step 1: Call Amazon Ergo-1.0 via the Bedrock Converse API

Verify your AWS CLI and boto3 SDK are current, enable the Amazon Ergo-1.0 model access in your target Region, and use a cross-Region inference profile (us.amazon.ergo-1-0-v1:0) so Bedrock routes traffic across available Trainium capacity while preserving zero data retention.

PYTHON
import boto3

client = boto3.client("bedrock-runtime", region_name="us-east-1")

tools = [
    {
        "toolSpec": {
            "name": "run_tests",
            "description": "Execute unit tests for a repository path and return exit code and output.",
            "inputSchema": {
                "json": {
                    "type": "object",
                    "properties": {
                        "path": {"type": "string", "description": "Target test directory or file"}
                    },
                    "required": ["path"],
                }
            },
        }
    }
]

response = client.converse(
    modelId="us.amazon.ergo-1-0-v1:0",
    messages=[
        {
            "role": "user",
            "content": [{"text": "Inspect tests/unit/ and fix any failing assertions."}],
        }
    ],
    toolConfig={"tools": tools},
    inferenceConfig={"maxTokens": 8192, "temperature": 0.1},
)

print(response["output"]["message"])

For production VPCs, attach an Interface VPC Endpoint for com.amazonaws.<region>.bedrock-runtime so payloads never traverse the public internet.

Step 2: Launch Self-Hosted vLLM with Tensor and Expert Parallelism

If your compliance boundary requires self-hosting the Hugging Face checkpoint (amazon-fmr/ergo-1.0-fp8 or quantized 4-bit variant), start vLLM with Expert Parallelism (`--enable-expert-parallel`) alongside Tensor Parallelism so MoE all-to-all routing stays over NVLink rather than saturating host PCIe.

BASH
vllm serve amazon-fmr/ergo-1.0-fp8 \
  --host 0.0.0.0 \
  --port 8000 \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --quantization fp8 \
  --kv-cache-dtype fp8 \
  --max-model-len 262144 \
  --gpu-memory-utilization 0.92 \
  --enable-auto-tool-choice \
  --tool-call-parser ergo

If you prefer SGLang for prefix-heavy agentic loops (where consecutive turns reuse 90%+ of the repository system prompt), enable RadixAttention prefix caching:

BASH
python3 -m sglang.launch_server \
  --model-path amazon-fmr/ergo-1.0-fp8 \
  --tp 8 \
  --ep-size 8 \
  --context-length 262144 \
  --mem-fraction-static 0.90 \
  --host 0.0.0.0 \
  --port 30000

Step 3: Wire a Bounded Tool-Calling Agent Loop

Whether hitting Bedrock or self-hosted vLLM, wrap Ergo-1.0 in a bounded loop that enforces max turns, max output tokens per turn, and prefix-cache reuse so an agent cannot burn 128K output tokens on a stuck retry.

PYTHON
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

def run_agent_turn(messages, tools, max_turns=12):
    for turn in range(max_turns):
        resp = client.chat.completions.create(
            model="amazon-fmr/ergo-1.0-fp8",
            messages=messages,
            tools=tools,
            max_tokens=16384,
            temperature=0.0,
        )
        msg = resp.choices[0].message
        messages.append(msg)
        if not msg.tool_calls:
            return msg.content
        for call in msg.tool_calls:
            result = execute_tool(call.function.name, call.function.arguments)
            messages.append({
                "role": "tool",
                "tool_call_id": call.id,
                "content": result,
            })
    raise RuntimeError(f"Agent exceeded max_turns={max_turns} without converging")

Verification Checklist

  1. Bedrock IAM & Region Check: Confirm bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream are scoped to the cross-Region inference profile ARN and VPC endpoint policy.
  2. KV-Cache Headroom: On self-hosted nodes, watch vllm:gpu_cache_usage_perc under load; if prefix eviction spikes above 80%, lower --max-model-len or add a second 8-GPU node.
  3. Cost Guardrails: Log usage.prompt_tokens and usage.completion_tokens per agent run so a runaway loop triggers circuit-breaker alerts before hitting the 128K output cap.

Continue reading

Related dispatches across technical domains.