Deployment & Self-Hosting
How to run Amazon Ergo
Run Amazon Ergo serverlessly on Amazon Bedrock, fine-tune privately on SageMaker AI, or self-host the 626 GB MXFP4 weights with vLLM + DSpark or SGLang.
Use a Cross-Region Inference Profile
Bedrock routes Amazon Ergo traffic through regional or global cross-region inference profiles rather than a bare single-region model ID.
Set maxTokens >= 8,192
Ergo allocates output tokens for internal chain-of-thought before emitting its final response. Low caps can truncate before code arrives.
Option 01 · Managed Serverless
Amazon Bedrock Converse API (Python boto3)
import boto3
from botocore.exceptions import ClientError
# Use a region supporting Ergo cross-region inference profiles (e.g., us-west-2, us-east-1)
client = boto3.client("bedrock-runtime", region_name="us-west-2")
# IMPORTANT: Use a Bedrock cross-region inference profile ID for Amazon Ergo
model_id = "us.amazon.ergo" # or "global.amazon.ergo"
messages = [{
"role": "user",
"content": [{"text": "Refactor this Python pipeline to remove the O(n^2) bottleneck and add unit tests."}]
}]
# IMPORTANT: Ergo is a reasoning model — set maxTokens >= 8192 for thinking headroom
inference_config = {"maxTokens": 8192, "temperature": 0.2}
try:
response = client.converse(
modelId=model_id,
messages=messages,
inferenceConfig=inference_config,
)
print(response["output"]["message"]["content"][0]["text"])
print("Usage:", response.get("usage", {}))
except ClientError as err:
print(f"Bedrock error: {err.response['Error']['Message']}") Option 02 · Recommended Self-Host
vLLM with Ergo Parsers & DSpark Speculation
# Dedicated Ergo image: vllm/vllm-openai:amazon-fmr-ergo
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"}' Option 03 · Containerized Self-Host
SGLang Server via Docker
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<your_huggingface_token>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "Amazon-FMR/Ergo" \
--host 0.0.0.0 \
--port 30000 Option 04 · Enterprise Customization
Fine-Tune & Host on Amazon SageMaker AI
Specialize Ergo on internal SDKs and private repositories using managed SageMaker AI recipes and VPC-isolated endpoints.
Infrastructure
GPU & VRAM sizing matrix
Even the MXFP4 checkpoint is ~626 GB before KV cache, so self-hosting requires datacenter GPU clusters rather than consumer cards.
| Hardware / Platform | Checkpoint | Parallelism | Throughput | Notes |
|---|---|---|---|---|
| 4× NVIDIA B200 / GB200 / GB300 | Amazon-FMR/Ergo (MXFP4 · ~626 GB) | TP=4 + EP + DSpark | Native FP4/MXFP4 tensor engines yield optimal self-hosted throughput with ample KV-cache HBM. | |
| 8× NVIDIA H200 (141 GB HBM3e) | Amazon-FMR/Ergo (MXFP4 · ~626 GB) | TP=8 / EP=8 | 1,128 GB total HBM3e comfortably holds MXFP4 weights plus concurrent 1M-context sessions. | |
| Multi-Node H200 / B200 Cluster | MXFP8 (1.17 TB) or BF16 (2.22 TB) | PP + TP + EP | Required for unquantized BF16 fine-tuning, distillation, or precision-critical evaluation runs. | |
| Amazon Bedrock (Trainium3) | Managed Amazon Ergo | Serverless AWS | 400+ OTPS out of the box (2,200 OTPS Turbo preview), $1/$3 per 1M tokens, zero data retention. |
Deploy Ergo
Download the 626 GB MXFP4 weights from Hugging Face or run Amazon Ergo on Amazon Bedrock at 400+ tokens per second.