In this article
- Before you start: do you really need your own servers?
- Step 1: choose a version
- Step 2: prepare the hardware
- Step 3: run it with vLLM
- Step 3 (alternative): run it with SGLang in Docker
- Step 4: test that it works
- Step 5: use the recommended settings
- Step 6: connect it to your team's tools
- Security: your responsibility
- The licence in brief
You can download Amazon Ergo for free and run it on your company's servers with a single command using vLLM or SGLang, and its licence allows commercial use. But it will not run on a laptop or a desktop: the smallest version of its files is 626 GB, so you need a server with several data-centre GPUs whose combined memory exceeds that figure by a clear margin. This article walks through the steps as Amazon published them on the official model page: choosing a version, hardware, two ways to run it, testing, recommended settings, and what to watch for on security.
Before you start: do you really need your own servers?
Ergo is also available on Amazon Bedrock at $1 per million input tokens and $3 per million output tokens, according to the Bedrock documentation. A team using 100 million input tokens and 10 million output tokens a month pays only about $130, far less than a server with several GPUs. So self-hosting pays off in three cases: your data must not leave your network, your volumes are very large, or you want to fine-tune the model on your own data. If you have not yet decided whether Ergo is the right model at all, start with our comparison of Amazon Ergo and Claude Opus 5.5.
Step 1: choose a version
Amazon published three versions on the model page on Hugging Face; they differ in the precision used to store the weights:
- MXFP4 (repository Amazon-FMR/Ergo): 626 GB. The default and smallest version, and the one the commands in this article run.
- MXFP8 (repository Amazon-FMR/Ergo-mxfp8): 1.17 TB.
- BF16 (repository Amazon-FMR/Ergo-bf16): 2.22 TB. You need it for fine-tuning or for running with the Transformers library.
Step 2: prepare the hardware
Ergo has 1.1 trillion parameters, of which 55 billion work on each token. That makes it fast, but all the weights must sit in GPU memory. Amazon has not yet published an official setup with a GPU count or type, so we will not invent one for you. The rule: the combined GPU memory in the server must exceed 626 GB by a clear margin, because the model needs extra memory for every request, and that memory grows with context length, which in Ergo reaches one million tokens. Also allow download storage of at least the size of the version you chose.
If you do not have this hardware, Amazon offers fine-tuning and hosting of Ergo on Amazon SageMaker AI instead of buying servers.
Step 3: run it with vLLM
The simplest way. Install the tool, then start the server; the model downloads automatically the first time:
pip install vllm
vllm serve "Amazon-FMR/Ergo"
This opens a server on port 8000 with an OpenAI-compatible API, so any program that can talk to OpenAI can talk to it by changing only the address.
Step 3 (alternative): run it with SGLang in Docker
If you prefer containers, this command comes from the same model page. Put your Hugging Face access token in place of the marked text:
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<your-token>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "Amazon-FMR/Ergo" \
--host 0.0.0.0 \
--port 30000
Here the server runs on port 30000 instead of 8000.
Step 4: test that it works
Send a simple request from the server itself:
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{"model": "Amazon-FMR/Ergo",
"messages": [{"role": "user", "content": "Write a Python function that reverses a string"}]}'
If you get a reply containing a Python function, the model is working. With SGLang, change the port to 30000.
Step 5: use the recommended settings
Amazon recommends these values in the model card:
- temperature: 1.0
- top_p: 0.99
- max_tokens: up to 131,072 tokens (128K).
- Context: up to 1,048,576 tokens (1M).
Remember that Ergo always reasons before answering and there is no setting to reduce it, so leave enough room in max_tokens.
Step 6: connect it to your team's tools
Amazon says in the Ergo announcement that it works with Claude Code, Codex, OpenCode and Kiro. Because your server offers an OpenAI-compatible API, connecting usually means entering your server address and the model name Amazon-FMR/Ergo in the tool's settings. Check each tool's documentation for how to connect it to a private server, as this differs from tool to tool.
Security: your responsibility
When you run Ergo yourself, you become responsible for protecting it, as the model card states. Three things not to ignore:
- Do not expose the port to the internet: the server in the examples above asks for no password, so keep it inside your network or put an authenticating gateway in front of it.
- Limit the agent's permissions: Amazon warns that an agent that runs commands can delete files or expose credentials. Run it in an isolated environment, not on a production server.
- Review code before merging: Ergo can write code that looks right and fails, and Amazon itself recommends human review.
The licence in brief
Ergo's licence is free and lets you run, modify, fine-tune and redistribute it, and build it into products you sell. The main limit applies to companies that sell others access to models through an API and earn over $20 million in 12 months; they need a separate agreement with Amazon. The limit does not cover internal use or features inside your product.
We discussed the same decision, when self-hosting is worth it, for other open models in our Kimi K3 article and our Mistral Large 4 article. If you would like help choosing hardware or running Ergo inside your company, contact the Origami team.
Sources
Frequently asked questions
Can I run Amazon Ergo on a laptop?
No. The smallest version of Ergo is 626 GB, so you need a server with several data-centre GPUs.
Is running Ergo on my servers free?
The licence is free and allows commercial use, but you pay for hardware and power. The main limit applies to companies that sell access to models and earn over $20 million in 12 months.
How many GPUs does Ergo need?
Amazon has not published an official number yet. The rule is that combined GPU memory must exceed 626 GB with a clear margin for context memory.
Which tools run Ergo?
vLLM and SGLang support it from day one, and the BF16 version works with the Transformers library for fine-tuning.
Can I connect it to Claude Code?
Amazon says Ergo works with Claude Code, Codex, OpenCode and Kiro. Your server offers an OpenAI-compatible API, and the connection method varies by tool.







