On this pageWhich route should you choose?

How to Run Amazon Ergo: Bedrock, SGLang or vLLM

Xtrusio6 min read

Short answer

Start with Amazon Bedrock if you want AWS to run Ergo for you. Use SGLang or vLLM if you want to serve the model weights on your own hardware. Amazon built Ergo for coding and jobs with many steps.

An engineer using a laptop beside server racks
Photo: Christina Morillo / Pexels. Cover design by Xtrusio.

On Bedrock, choose a supported Region and inference profile before your first request. For self-hosting, pick a recipe that matches your GPUs before you download the weights. The local examples below use four GB300 GPUs.

Which route should you choose?

AWS runs Ergo on Trainium3 with US or Global cross-Region routing. You can run the downloadable weights on hardware you control, including outside AWS.

Skip Ergo for image-led jobs because it only takes text. Bedrock Guardrails add optional safeguards.

Ergo deployment options

Route

Pick it when

Skip or pause when

First move

Bedrock

You want AWS to run it.

You need to run the weights on your own servers.

Routing profile first. Global Standard: US$1 input, US$3 output and US$0.03 cache read. US Geo Standard: US$1.10 input, US$3.30 output and US$0.033 cache read.

SGLang or vLLM

You have hardware that matches a serving recipe.

Your team cannot run and secure the service.

Match the SGLang setup or vLLM setup to your servers.

These rates are per million tokens. A cache read reuses saved input.

How to run Ergo on Amazon Bedrock

Start in a supported AWS Region, the cloud location your app calls. The model card’s Try on Amazon Bedrock link takes you to the hosted option. The source list gives no option for Bahrain, the UAE, Saudi Arabia or Hong Kong.

An inference profile sets where Bedrock can send requests. The US profile us.amazon.ergo-1.0 stays in the US. Its starting points are Oregon, Ohio, Northern Virginia and Northern California. The Global profile global.amazon.ergo-1.0 can reach any enabled Region, including in the EU and Asia Pacific. Ergo is unavailable in China.

For an in-Region 400 error, replace amazon.ergo-1.0 with your profile ID.

With an AWS account, give the calling identity IAM access permissions to call Ergo and stream replies. Those permissions are bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream. In the Bedrock console, go to API keys, then choose Create long-term key. Set AWS_BEARER_TOKEN_BEDROCK to the key value in the environment where you’ll run Python.

With Python installed, run python -m pip install -U openai in the same environment you’ll use for the example. The Python example uses AWS’s Chat Completions endpoint in Oregon with the Global profile. Apps can call the Bedrock runtime through Responses, Chat Completions, Converse or InvokeModel.

import os
from openai import OpenAI

region = "us-west-2"
client = OpenAI(
api_key=os.environ["AWS_BEARER_TOKEN_BEDROCK"],
base_url=f"https://bedrock-runtime.{region}.amazonaws.com/openai/v1",
)

resp = client.chat.completions.create(
model="global.amazon.ergo-1.0",
messages=[{"role": "user", "content": "Write a Python function to reverse a string."}],
reasoning_effort="medium",
max_completion_tokens=8192,
)
print(resp.choices[0].message.content)

On Bedrock, Ergo always uses part of its output budget to reason. AWS recommends at least 8,192 output tokens. AWS’s Chat Completions example sets reasoning_effort="medium" and max_completion_tokens=8192. A setting of none returns a 400 error.

OpenCode uses Chat Completions. For Codex CLI, use the AWS Responses configuration. In that configuration, set wire_api = "responses" and web_search = "disabled". Set AWS_REGION to match your Bedrock endpoint. Claude Code uses a local LiteLLM proxy to translate Anthropic Messages requests into Bedrock Responses calls. Kiro also works with Bedrock.

How to self-host with SGLang or vLLM

Before downloading, read the license and find a recipe for your hardware. Each checkpoint stores the weights at a different precision, or level of detail. File size is disk space. The GPU setups show which graphics processing units SGLang uses to run Ergo.

Ergo checkpoint sizes and SGLang setups

For Hugging Face Transformers, use BF16 to run or fine-tune Ergo.

Screenshot of Amazon Ergo’s model card on Hugging Face. Credit: Amazon.

On Amazon’s model card, a team can open License first, then choose the weight files that fit its servers. The MXFP4 examples then show how each server takes a request for Amazon-FMR/Ergo.

These examples use the MXFP4 checkpoint on four GB300 GPUs. Run one server at a time.

Start SGLang

Use a Linux node with four GB300 GPUs. Install an Ergo-capable SGLang build and xgrammar>=0.2.9 before running Bash. Check the linked host and CUDA requirements for a native install. For containers, follow the Docker setup for the GPU runtime and launch command.

SGLANG_DEEPEP_V2_NUM_MAX_DISPATCH_TOKENS_PER_RANK=4096 \
sglang serve \
--model-path Amazon-FMR/Ergo \
--tp-size 4 \
--ep-size 4 \
--enable-shared-experts-attn-tp \
--enable-fp32-lm-head \
--mem-fraction-static 0.85 \
--swa-full-tokens-ratio 0.03 \
--host 127.0.0.1 \
--port 30000

Start vLLM

Use the dedicated vLLM Docker image on a Linux GB300 NVL4 host with GPU access. The vendor recipe uses a privileged container and shares the host’s IPC namespace. Use a host where both are allowed. This command maps the service to the host’s loopback interface for the test.

docker run --gpus all \
--privileged --ipc=host -p 127.0.0.1:8000:8000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-e VLLM_USE_RUST_FRONTEND=1 \
vllm/vllm-openai:amazon-fmr-ergo 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-pool

Send a test request

Run the test where the server is reachable through loopback. Send this request on port 8000 for vLLM or change it to port 30000 for SGLang. Amazon’s model card recommends temperature of 1.0 and top_p of 0.99.

curl -fsS http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"Amazon-FMR/Ergo",
"messages":[{"role":"user","content":"Name two uses for a hash map."}],
"temperature":1.0,"top_p":0.99}'

Amazon describes the open-weights release as using fixed reasoning effort, so even simple queries can use more output tokens.

If the connection fails, check that the server finished loading and that you used its port. If the server reports a GPU memory error, recheck the checkpoint and GPU count against your chosen recipe.

If you self-host or fine-tune Ergo, your team must test model behavior and protect runtime data. Your team also needs to put safeguards in place for the running service.

What does the Ergo license allow?

The Amazon Ergo Open-Weights License lets you run, tune, change and share the weights without a license fee. Include the license with all copies or substantial portions of the model. You can use Ergo in products if you follow the license and Acceptable Use Policy.

A model-as-a-service business gives third parties access through an API or hosted endpoint for inference or fine-tuning. They control the inputs, training data, or both and receive the outputs. If you or an affiliate operates one, add up your gross revenue and that of your affiliates over any consecutive 12 months. The rule applies if that total exceeds US$20 million or its equivalent in another currency. Above the threshold, get a separate written agreement from Amazon before offering Ergo or a modified version through that business.

The rule excludes internal use and research. It also excludes commercial work outside a model-as-a-service business. That includes using Ergo to power your own product features outside such a business.

More on Amazon Ergo

Read what Amazon Ergo does and who it suits. Explore Amazon Ergo pricing on Bedrock. See how Ergo compares with Kimi, GLM and Mistral.

Sources

Sources checked on 4 December 2026.

  1. Introducing Amazon Ergo: A fast, cost-effective open-weights model, About Amazon
  2. Frontier Open Weight Model - Amazon Ergo, AWS
  3. Amazon Ergo-1.0 - Amazon Bedrock, AWS
  4. Use Amazon Ergo-1.0 with coding tools - Amazon Bedrock, AWS
  5. Open Weight LLM Pricing - Amazon Ergo, AWS
  6. Amazon Ergo open weight foundation model is now available on Amazon Bedrock, AWS
  7. Amazon-FMR/Ergo, Amazon Frontier Model Research on Hugging Face
  8. Amazon Ergo Open-Weights License, Amazon Frontier Model Research on Hugging Face
  9. Amazon Ergo - SGLang Documentation, SGLang
  10. Amazon-FMR/Ergo | vLLM Recipes, vLLM

Topics

  • amazon ergo

Xtrusio

AI visibility research

Xtrusio is the Perception Engine for B2B brands.

Free check

See how AI engines answer about you

Get your free AI visibility check

Talk to us about the managed plan (free trial)