- Blog
- How to Fine-Tune Amazon Ergo on SageMaker: LoRA, Data, Evals and the Licence
How to Fine-Tune Amazon Ergo on SageMaker: LoRA, Data, Evals and the Licence
Yes, you can fine-tune Amazon Ergo, but on SageMaker AI or your own GPUs, not Bedrock. The published LoRA recipe, its 16K-token limit, what the licence allows, where a tuned Ergo runs, and when fine-tuning is worth it at all.
Key takeaways
- You can fine-tune Amazon Ergo: its licence allows fine-tuning, commercial use and resale.
- Fine-tuning runs on SageMaker AI or your own GPUs, not Bedrock, and a tuned Ergo can't be imported back into Bedrock.
- Score the base model on your own tasks first. AWS's published recipe is LoRA supervised fine-tuning.
Free guide for this topic: benchmark a model on your own workload — Run your current and candidate model through the same agent harness and measure the real gap.
Yes, you can fine-tune Amazon Ergo, Amazon’s open-weight AI model for coding and agents, released on 1 December 2026. The licence allows fine-tuning, commercial use and resale [1]. The catch is where: fine-tuning runs on Amazon SageMaker AI or your own GPUs, not on Amazon Bedrock, and a tuned Ergo cannot be imported back into Bedrock [3] [8]. AWS’s one published recipe is LoRA supervised fine-tuning, with training examples capped at 16K tokens [5].
This guide covers how Ergo fine-tuning works, the seven steps from baseline to handover, what people have built on Ergo so far (Crescent AI’s own data), what the licence lets you do with a tuned model, where it can run, and the harder question first: whether you should fine-tune at all. If you are new to the model itself, start with Amazon Ergo explained: what it is, examples and use cases.
Facts as of 3 December 2026
Can You Fine-Tune Amazon Ergo?
Yes, and the licence is unusually permissive. Its grant copies MIT’s wording: you may “use, run, deploy, copy, fine-tune or otherwise modify, merge, publish, distribute, sublicense, and/or sell copies of the Model” [1]. There is no “Built with” attribution rule and no user-count gate. Amazon makes no ownership claim over your fine-tuned weights or outputs.
What you cannot do is fine-tune it on Bedrock. Ergo is missing from Bedrock’s fine-tuning table, which lists Nova, Titan, Claude 3 Haiku and Llama 3.x [4], and AWS’s launch note sends customers elsewhere: “You can fine-tune Amazon Ergo with your data on SageMaker AI, using ready-to-use recipes or your own” [3].
What is confirmed, estimated and unknown
| Status | Item | Source |
|---|---|---|
| Confirmed | The licence allows running, fine-tuning, modifying, redistributing and selling, subject to the acceptable use policy | [1] |
| Confirmed | Bedrock does not fine-tune Ergo; AWS points customers to SageMaker AI | [3] |
| Confirmed | One public recipe: LoRA SFT, verl 0.9, ml.p6-b200.48xlarge, 16K-token training sequences | [5] |
| Confirmed | LoRA reinforcement learning works with SkyRL, Megatron-Bridge and vLLM on 64 GB200 GPUs | [7] |
| Confirmed | Bedrock Custom Model Import does not list Ergo and caps imports below 200 GB; Ergo's smallest weights are 626 GB | [8] |
| Estimate | Full fine-tuning needs about 17.6 TB of accelerator memory, so 13 to 16 B200 nodes | Our arithmetic |
| Unknown | AWS recipes for DPO, RL or full fine-tuning; Regions where SageMaker trains Ergo | Not yet published by AWS |
| Unknown | A pretrained base checkpoint or smaller Ergo sizes | Requested on Hugging Face; not published |
One more point causes confusion: Ergo-DSpark, the 3.24B model on Hugging Face, is a speculative-decoding draft model that speeds up Ergo’s output. It is not a smaller Ergo you can fine-tune [2].
Should You Fine-Tune Ergo at All?
Usually not as a first move. Base Ergo on Bedrock costs $1 per million input tokens, $0.03 per million cached input tokens and $3 per million output tokens [9], and it reads up to 1M tokens. Loading your code into context is cheap, and it fixes most “it doesn’t know our code” problems. Fine-tuning changes how the model behaves; it is the right tool when Ergo has the information but keeps using it the wrong way.
| Your situation | Best first move | Fine-tune Ergo when |
|---|---|---|
| Ergo lacks facts about your code or docs | Put the files in context (1M tokens, cached) or add retrieval | It finds the right code but still uses it the wrong way |
| Some tasks are too hard for Ergo | Route those tasks to a stronger closed model | The hard tasks are your own conventions, not general reasoning |
| The task is narrow and runs millions of times | Distil into a smaller model | You need Ergo-level skill across many related tasks |
| Data must stay in your country or on your servers | Self-host base Ergo first and measure it | Base Ergo misses your bar on your own tasks |
| You have fewer than a few hundred good examples | Collect examples and build the test set | You have enough examples, and a test, to prove a gain |
The decision rule
Set expectations too. In Ai2’s SERA research, repository-specialised open models slightly beat their teacher on two of three repositories and trailed on the third, and the authors call the edge “modest” [13]. Ergo already scores 74.2 on DeepSWE [2], so the headroom on general coding is probably smaller still. Big jumps show up on narrow, well-specified tasks: in one study, a 7B coder went from 4.8% to 96.6% on secure-code-review verdicts after tuning [15].
How Amazon Ergo Fine-Tuning Works
Ergo is a mixture-of-experts (MoE) model with 1.1 trillion total parameters and 55 billion active per token: each layer routes every token to 8 of 256 experts plus one shared expert [2]. Training all of that is rarely worth it, so every practical route starts with adapters.
LoRA supervised fine-tuning on SageMaker
LoRA (low-rank adaptation) trains a small set of added weights while the base model stays frozen. The only public Ergo recipe, “Ergo 1.0 SFT LoRA Fine-Tuning (verl 0.9) (16k)”, sits in AWS’s sagemaker-hyperpod-recipes repository and runs on ml.p6-b200.48xlarge instances (8× NVIDIA B200) [5]. Jobs go through the HyperPod CLI on EKS or Slurm [6]. Supervised fine-tuning (SFT) means the model learns from examples of the right answer.
LoRA reinforcement fine-tuning
Reinforcement fine-tuning rewards results that can be checked automatically, such as tests passing or a tool call succeeding. vLLM reported “Day-0 LoRA RL on Amazon Ergo” with SkyRL and Megatron-Bridge across 64 GB200 GPUs. It replays the rollout’s expert routing so training and inference stay consistent [7]. AWS has not published an RL recipe for Ergo yet.
Full fine-tuning and distillation
Full fine-tuning updates every weight. By our arithmetic it needs roughly 17.6 TB for weights, gradients and optimizer state, so at least 13 and realistically 16 B200 nodes, and no official recipe exists. It only makes sense for very large proprietary corpora. For one narrow, high-volume task, distilling into a smaller model is often the better route.
How to Fine-Tune Amazon Ergo, Step by Step
Score base Ergo on your own tasks first
Pick 30 to 100 real tasks, such as tickets with accepted fixes or agent runs your engineers reviewed, and score base Ergo on them with your code in context. If it already clears your bar, stop here.
Build a held-out evaluation set
Use tests, linters, a build or a rubric your engineers trust, so gains and regressions show up automatically. Keep these tasks out of training for good.
Prepare data that fits the 16K limit
Collect examples and agent trajectories, remove secrets and personal data, and split or summarise anything over 16,384 tokens. The AWS recipe fails rows over that limit instead of truncating them [5].
Pick the method
LoRA supervised fine-tuning for most cases. LoRA reinforcement fine-tuning when success can be checked automatically. Distillation when one narrow task runs at very high volume.
Run the recipe in your account
Submit the LoRA job to SageMaker HyperPod with the HyperPod CLI on EKS or Slurm [6], or run the open-source stack on your own Blackwell-class GPUs. Log every run and watch expert use.
Prove the gain and check regressions
Compare tuned and base Ergo on the held-out set, then re-run checks for general coding, tool calling and refusals, plus cost per task and latency.
Package it, with the licence
Package the adapter or weights for vLLM, SGLang or a SageMaker endpoint. Ship LICENSE.md with it and pass the acceptable use policy on in your terms [1].
What the Published Recipe Leaves Out
- 16K-token training examples against a 1M-token context. Long agent trajectories have to be split or summarised, and long-context fine-tuning has no packaged path [5].
- No guidance on settings. Amazon publishes no chat template for SFT, no recommended LoRA target modules or learning rates, and no advice on freezing the router.
- Expert load balancing. A narrow dataset may overload a few experts, and nobody has documented how Ergo’s load balancing behaves during fine-tuning. Watch expert use during training.
- Only the post-trained model is public. Any continued training starts from the instruct model, not a base checkpoint.
- Thin tooling outside AWS. We found no Ergo support yet in Unsloth, Axolotl or LLaMA-Factory, and every confirmed training stack runs on NVIDIA Blackwell-class GPUs.
- Forgetting. LoRA “learns less and forgets less” than full fine-tuning [14], but no study yet measures the loss of tool use or agent skills after tuning a large MoE coder. Regression tests are not optional.
What to Fine-Tune Amazon Ergo For
The strongest cases are narrow and repeated, with a test that can tell a good result from a bad one:
- Your internal codebase: one large private repository, so Ergo follows your architecture, naming and review standards.
- Internal DSLs and frameworks: languages and config formats that public training data never covered.
- Your tool APIs and agent workflows: exact tool-call schemas, ordering and error handling, scored by whether each call succeeds.
- Legacy modernisation: repeated migration patterns on less-represented languages and frameworks, where Amazon itself warns Ergo can be uneven.
- Narrow verdict tasks: secure-code-review or policy verdicts with a fixed output format.
For data volume, SERA used about 8,000 trajectories per repository [13]. Narrow verdict tasks need far fewer. Data work, not GPU time, is usually the biggest effort.
What People Have Built on Ergo So Far
Before you tune, it helps to see what others did with the weights in the first 48 hours. This is Crescent AI’s own data, collected on 3 December 2026.
16 models built on Ergo: 6 strip its safety training, 0 are tuned for a real task
Of the 16 public models built on Ergo, six had their safety training removed, which breaks the acceptable use policy that also binds customised versions. Another six were compressed copies for running locally, although even 2-bit versions need hundreds of gigabytes of memory. Two pruned experts to shrink the model, one cutting routed experts from 256 to 128 per layer.
One was Amazon’s own Ergo DSpark, a 3.24B draft model that speeds up output, and one repackaged the weights for a crypto project. None was fine-tuned for a real task such as coding, a specific industry or a company’s own data.
- No task fine-tunes yet. Nobody has published Ergo tuned for a codebase, a domain or a company, and there are no LoRA adapters on Hugging Face. A team that tunes Ergo for a real job now is early, with no public examples to copy.
- The most common “fine-tune” breaks the licence. Six of the 16 remove Ergo’s safety training. The acceptable use policy binds customised versions and bans circumventing safety measures, so these are not a template for a business.
- Shrinking it is the other big theme. Six are compressed copies for local use and two prune experts, which shows demand for a smaller Ergo that Amazon has not released.
Our analysis
Two days after launch, the models people built on Ergo changed its limits and its size, not its skills: safety removed, compressed copies, pruned experts. None was tuned for a real task.
Until task fine-tunes appear, we see little public evidence of how well Ergo adapts to specific work, so we would test that on your own data before planning around it.
Developers argued about the licence more than anything else
Licence threads held 200 of the 689 comments (29%), more than price and speed (17%) or benchmarks (3%). The largest single subthread, at 178 replies, started from a comment arguing that Ergo is not truly open because its licence bans changing the weights to remove refusals. For anyone fine-tuning, that is the clause to design around: you can change what Ergo knows and how it formats answers, but not strip its safety behaviour.
Our analysis
Our reading is that the launch conversation was about whether Ergo is truly open, not how well it scores. Benchmarks barely came up, while one licence argument drew more replies than any other subthread.
For buyers, we think Ergo’s licence terms deserve as much review as its benchmark results, especially if you plan to change or fine-tune the model.
The Amazon Ergo Licence for Fine-Tuned Models
Three clauses shape what you can do with a tuned Ergo [1]:
- The acceptable use policy binds “any customized versions”. It bans using Ergo “to intentionally circumvent safety measures or model alignment”, so a tune that strips refusals breaks the licence. It says Ergo is not intended for people under 18, is not validated for EU AI Act Article 6 high-risk uses, and needs human oversight for consequential decisions such as hiring, lending, medical, legal or financial advice.
- Model-as-a-service above US$20M needs an Amazon agreement. If you give third parties API or endpoint access to Ergo or a tuned Ergo, and your group’s total gross revenue exceeds US$20M in any 12 months, you need a written agreement with Amazon first. Internal use and powering features of your own product are carved out. The test counts total group revenue, not revenue from the service [17].
- Pass it on. Include the licence with any copy you distribute, and because the policy also bars letting others misuse the model, write the acceptable use terms into contracts with anyone who receives your tuned weights.
How Ergo’s licence compares with other open-weight models for fine-tuning:
| Licence | Fine-tune and sell | Attribution | Scale gate | Acceptable use policy |
|---|---|---|---|---|
| Amazon Ergo Open-Weights | Yes | Licence text only | Agreement if model-as-a-service and group revenue > US$20M / 12 months | Yes, binds customised versions |
| DeepSeek V3.2 (MIT) | Yes | Notice | None | None |
| Kimi K3.1-Pro (modified MIT) | Yes | UI display above 100M MAU or US$20M/month | Agreement if model-as-a-service > US$20M / 12 months | None |
| Llama 4 Community | Yes | “Built with Llama” and a “Llama” name prefix | Above 700M MAU, at Meta's discretion | Yes |
IP indemnity does not follow your fine-tune
EU AI Act. Amazon names itself as the general-purpose AI provider for Ergo [2]. Under the European Commission’s guidelines, a company that fine-tunes a model becomes a provider only if its modification uses more than a third of the original model’s training compute [16]. Amazon has not disclosed Ergo’s training compute, but typical LoRA work is estimated to be orders of magnitude below that line.
Where a Fine-Tuned Ergo Runs
Not on Bedrock. Bedrock Custom Model Import does not list Ergo’s architecture and caps imported weights below 200 GB, while Ergo’s smallest weight file is 626 GB [8]. A tuned Ergo runs on a SageMaker endpoint or on your own servers with vLLM or SGLang. You lose Bedrock’s zero-data-retention guarantee and take on runtime data protection yourself.
Data residency is the strongest reason to tune and self-host. Bedrock serves Ergo only through US or Global cross-Region inference, with no in-Region option [9]. Buyers in the EU, UK, Switzerland, India, Australia, Japan and elsewhere can reach Ergo on Bedrock only through Global routing, which can process requests in other countries, and Bedrock does not offer Ergo from the UAE, Saudi Arabia, Bahrain or Hong Kong [3]. A copy in your own Region or data centre is the only route to Ergo with data kept in-country.
Training Is Cheap, Running It Is Not
At AWS’s Capacity Block rate of $113.666 per hour for an 8× B200 p6-b200 instance [12], a LoRA run on about a billion training tokens costs low thousands of dollars of compute by our estimate. Running the result is the expensive part: a tuned 1.1T model needs at least one multi-GPU node serving all month, which costs tens of thousands of dollars at the same published rates.
So fine-tune Ergo for quality, residency or control, not to save money. A tuned Ergo will rarely be cheaper than base Ergo on Bedrock. It wins when it is measurably better on your work, keeps data where it must stay, or gives you a pinned version you own. Serving several LoRA adapters on one base deployment spreads the cost, but the base still occupies a full node.
Mistake: Fine-tuning on Bedrock. Not supported. Use SageMaker AI or your own GPUs.
Mistake: Tuning before measuring base Ergo. Most problems are fixed with context or routing; you can’t prove a gain without a baseline.
Mistake: Feeding 100K-token trajectories to the recipe. Rows over 16,384 tokens fail; split or summarise them first.
Mistake: Full fine-tuning by default. LoRA forgets less and costs a fraction; full fine-tuning needs 13+ B200 nodes.
Mistake: Stripping safety refusals. The acceptable use policy forbids it for customised versions.
Mistake: Skipping regression tests. A tune can get better at your task and worse at tool calling.
Mistake: Assuming indemnity covers the tune. AWS’s Service Terms exclude claims caused by your own fine-tuning.
Bottom Line
You can fine-tune Amazon Ergo today, legally and commercially, but only on SageMaker AI or your own GPUs, with one published LoRA recipe and a 16K-token training limit. The compute for a LoRA run is small next to the data work, the evaluation and the cost of running a tuned 1.1T model. Fine-tune when a repeated task keeps failing on your own code, you can prove the gain, and you have a reason to own the model, such as data residency. Otherwise, start with base Ergo and your code in context.
Where to start
Before switching models, decide which of your own tasks the new model has to pass. Public leaderboards rarely match your workload.
Crescent builds a benchmark from your workload, runs the current and candidate models side by side, and recommends whether to switch, route, reject or retest.
Sources
- [1] Amazon Ergo Open-Weights License and Acceptable Use Policy — Hugging Face
- [2] Amazon-FMR/Ergo model card — Hugging Face
- [3] Amazon Ergo open-weight foundation model on Amazon Bedrock — AWS What's New
- [4] Supported models for Bedrock fine-tuning — Amazon Bedrock User Guide
- [5] Ergo 1.0 SFT LoRA recipe (verl 0.9, 16k) — aws/sagemaker-hyperpod-recipes, GitHub
- [6] Customizing models with SageMaker HyperPod — Amazon SageMaker AI Developer Guide
- [7] Day-0 LoRA RL on Amazon Ergo — vLLM, 1 Dec 2026
- [8] Bedrock Custom Model Import — Amazon Bedrock User Guide
- [9] Amazon Ergo-1.0 model card — Amazon Bedrock User Guide
- [10] Amazon Ergo product page — AWS
- [11] AWS Service Terms, Section 50.10 — AWS, updated 30 Nov 2026
- [12] Amazon EC2 Capacity Blocks pricing — AWS
- [13] SERA: repository-specialised coding agents — Ai2, arXiv
- [14] LoRA Learns Less and Forgets Less — Biderman et al., arXiv
- [15] Fine-tuning a 7B coder for secure-code-review verdicts — arXiv
- [16] Guidelines on obligations for general-purpose AI providers — European Commission
- [17] Amazon is back in the LLM race with open-weights Ergo — The Register, 2 Dec 2026
- [18] Models built on Amazon-FMR/Ergo — Hugging Face
- [19] Amazon Ergo launch discussion — Hacker News
Frequently Asked Questions

Written by
Yash Amin
CEO, Crescent AI