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.

Yash Amin
14 min

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

Ergo is two days old. Everything below comes from Amazon, AWS, Hugging Face and vLLM sources published at launch, plus Crescent AI’s own data collected on 3 December, and we separate confirmed facts from estimates and open questions. Expect AWS to add recipes and change limits quickly, so recheck before you start a project.

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

StatusItemSource
ConfirmedThe licence allows running, fine-tuning, modifying, redistributing and selling, subject to the acceptable use policy[1]
ConfirmedBedrock does not fine-tune Ergo; AWS points customers to SageMaker AI[3]
ConfirmedOne public recipe: LoRA SFT, verl 0.9, ml.p6-b200.48xlarge, 16K-token training sequences[5]
ConfirmedLoRA reinforcement learning works with SkyRL, Megatron-Bridge and vLLM on 64 GB200 GPUs[7]
ConfirmedBedrock Custom Model Import does not list Ergo and caps imports below 200 GB; Ergo's smallest weights are 626 GB[8]
EstimateFull fine-tuning needs about 17.6 TB of accelerator memory, so 13 to 16 B200 nodesOur arithmetic
UnknownAWS recipes for DPO, RL or full fine-tuning; Regions where SageMaker trains ErgoNot yet published by AWS
UnknownA pretrained base checkpoint or smaller Ergo sizesRequested 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 situationBest first moveFine-tune Ergo when
Ergo lacks facts about your code or docsPut the files in context (1M tokens, cached) or add retrievalIt finds the right code but still uses it the wrong way
Some tasks are too hard for ErgoRoute those tasks to a stronger closed modelThe hard tasks are your own conventions, not general reasoning
The task is narrow and runs millions of timesDistil into a smaller modelYou need Ergo-level skill across many related tasks
Data must stay in your country or on your serversSelf-host base Ergo first and measure itBase Ergo misses your bar on your own tasks
You have fewer than a few hundred good examplesCollect examples and build the test setYou have enough examples, and a test, to prove a gain

The decision rule

Fine-tune Ergo with LoRA only when all five hold: a stable, repeated task (one large codebase, an internal DSL, your house conventions); an automated evaluation set built from real tasks; thousands of good examples or trajectories; a hard reason to run your own copy, such as data residency or private code; and someone who owns retraining when Amazon ships a new Ergo.

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

1

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.

2

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.

3

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].

4

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.

5

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.

6

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.

7

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.

Crescent AI research

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.

Crescent AI research

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:

LicenceFine-tune and sellAttributionScale gateAcceptable use policy
Amazon Ergo Open-WeightsYesLicence text onlyAgreement if model-as-a-service and group revenue > US$20M / 12 monthsYes, binds customised versions
DeepSeek V3.2 (MIT)YesNoticeNoneNone
Kimi K3.1-Pro (modified MIT)YesUI display above 100M MAU or US$20M/monthAgreement if model-as-a-service > US$20M / 12 monthsNone
Llama 4 CommunityYes“Built with Llama” and a “Llama” name prefixAbove 700M MAU, at Meta's discretionYes

IP indemnity does not follow your fine-tune

The AWS Ergo product page says Bedrock provides “intellectual property indemnification for model outputs” [10]. The AWS Service Terms, updated 30 November 2026, list indemnified services in Section 50.10, Ergo is not on that list, and Section 50.10.2(iv) excludes claims that would not have occurred but for your own fine-tuning or customisation [11]. No document we read extends indemnity to a fine-tuned or self-hosted Ergo. This is not legal advice; confirm with AWS and your counsel.

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.

Frequently Asked Questions

Yes. Amazon Ergo's weights are open, and the Amazon Ergo Open-Weights License allows fine-tuning, commercial use and redistribution, subject to its acceptable use policy.
No. Bedrock serves Ergo but does not train it, and a fine-tuned Ergo cannot be imported back into Bedrock today. AWS points customers to SageMaker AI.
Through SageMaker HyperPod recipes. The one published Ergo recipe is LoRA supervised fine-tuning with verl 0.9 on ml.p6-b200.48xlarge instances, with training examples of up to 16,384 tokens. Jobs are submitted with the HyperPod CLI on EKS or Slurm.
LoRA in almost every case. Full fine-tuning a 1.1-trillion-parameter mixture-of-experts model needs roughly 17.6 TB of accelerator memory by our estimate, so 13 or more B200 nodes, and AWS has published no full fine-tuning recipe.
Supervised fine-tuning (SFT) teaches from examples. Reinforcement fine-tuning rewards results that can be checked, such as passing tests. AWS's recipe is SFT; a day-0 reinforcement learning route exists through vLLM, SkyRL and Megatron-Bridge.
Amazon publishes no minimum. The frozen base weights alone are about 0.63 TB (MXFP4) to 2.2 TB (BF16), so even LoRA needs multi-GPU B200 or GB200-class nodes.
It depends on the task. Published repository-specialisation research used around 8,000 trajectories per repository; narrow tasks need fewer. Build a held-out test set before you collect training data.
Start with your code in context or retrieval, since Ergo's cached input costs $0.03 per million tokens on Bedrock. Fine-tune only when a repeated task keeps failing and you have a test that proves the gain.
LoRA trains small adapter weights and leaves the base frozen, which limits forgetting but does not remove it. Run regression tests on Ergo's coding and tool-calling skills before you accept a tuned model.
On a SageMaker endpoint, or self-hosted with vLLM or SGLang. It cannot run on Bedrock, so you lose Bedrock's zero-data-retention guarantee and own runtime data protection.
No. The acceptable use policy binds customised versions and bans using Ergo to circumvent safety measures or alignment.
Yes, with the licence included. A business that offers Ergo or a tuned Ergo to third parties as a hosted service needs a separate Amazon agreement if its group revenue tops US$20M in any 12 months.
Not on the documents we read. The AWS Service Terms' indemnity list (Section 50.10) does not include Ergo, and Section 50.10.2(iv) excludes claims caused by your own fine-tuning. Confirm with AWS and your counsel.
Not for a real task, as of 3 December 2026. Crescent AI counted 16 public models built on Ergo on Hugging Face: 6 remove its safety training, which the licence forbids, 6 are compressed copies for running locally, 2 prune experts, 1 is Amazon's own draft model and 1 is a crypto repackage. None is tuned for a codebase, domain or company, and there are no LoRA adapters.
Not yet. Only the 1.1T post-trained model is published. The 3.24B Ergo-DSpark is a draft model that speeds up Ergo's output, not a standalone model to fine-tune.
Yash Amin

Written by

Yash Amin

CEO, Crescent AI

LinkedIn

We use analytics cookies to understand how visitors use the site. No ads or retargeting. Learn more