AWS Builder Center

What's new in ML Container Creator v2.0

ML Container Creator v2.0 lets you pick the deployment target at deploy time, checks GPU fit before anything is created, and adds fine-tuning on HyperPod, real serving metrics and scale-to-zero.

AWS AI/ML Specialist SA

From model ID to production endpoint: what's new in ML Container Creator v2.0


Getting a model from Hugging Face onto a GPU in production is rarely the hard part on day one. It's day two that hurts: picking the right instance, wiring secrets, benchmarking honestly, swapping in a fine-tuned version, and doing it all over again when you want to test out a new model.  ML Container Creator  (MLCC) is an open-source CLI that generates the container, a set of lifecycle scripts and the supporting AWS infrastructure for a model, so those day-two tasks become commands in your project instead of one-off scripts.

Version 2.0 is the largest release so far. This post walks through it with a small LLM, from generation to a fine-tuned adapter.


What MLCC gives you

You run one generator. You get a project with a Dockerfile, serving code for your engine (vLLM, SGLang, TensorRT-LLM, LMI, Triton, and classic frameworks such as scikit-learn), and a  do/  directory of scripts:  submit ,  deploy ,  test ,  benchmark ,  metrics ,  tune ,  train ,  adapter ,  clean , and more. A one-time  bootstrap  setup creates the shared AWS resources (execution role, ECR, buckets, MLflow and so on) as CloudFormation stacks. Recommend to bootstrap once per account-region.

## The big changes in v2.0

**The deployment target is a deploy-time choice.** The same project deploys to SageMaker AI real-time, async or batch transform, to SageMaker HyperPod (EKS), or to plain Amazon EKS:

./do/deploy --target realtime-inference
./do/deploy --target hyperpod-eks --cluster-name <cluster> --namespace <ns>
./do/deploy --target eks


Plain EKS is new and treated as bring-your-own: MLCC checks the cluster contract (pod identity, CSI driver, the volume behind a model mount) before applying, and stops with the fix if something is missing. For HyperPod, MLCC now consumes the cluster you already run rather than provisioning one.

Right-sizing before anything is created.  ./do/deploy --dry-run  and  ./do/validate  estimate weights, KV cache, LoRA buffers and any draft model against GPU memory, and also check context length, tensor parallelism, dtype support, disk and Service Quotas. A deploy that clearly can't fit stops in seconds instead of failing a health check twenty minutes later. On HyperPod it also checks free pod slots, which catches a node that has a free GPU but no room for the pod that mounts your weights.

One way to add models to a live deployment. The kind of artifact picks the verb, and the target picks the mechanism:


You have
Verb
Where
A LoRA adapter
 ./do/adapter add <name> 
SageMaker AI real-time, HyperPod, EKS
A full tine-tuned model
`./do/add-ic <name>
SageMaker AI real-time (inference component)
A full fine-tuned model
`./do/add-pod <name>
HyperPod
All three accept  --from-tune ,  --from-train ,  --from-weights s3://...  or  --from-registry <arn> . Adapters are stored under versioned, content-addressed prefixes, so an update with identical content is a no-op and new content becomes a new version.

Fine-tune on SageMaker AI or on your HyperPod cluster.  ./do/tune  covers managed SFT, DPO, RLAIF and RLVR, and now prompts for each technique's real hyperparameters. The generator's model picker shows which techniques each model supports. Both  ./do/tune  and  ./do/train  gain  --backend hp-eks  to run on your HyperPod cluster; SageMaker training jobs stay the default. You can also write your own  do/train  technique as a small descriptor plus script.

Real serving metrics and cost. Benchmark results carry GPU utilization, KV-cache usage, queue depth, prefix-cache hit rate and error rate for each concurrency level. They come from SageMaker AI observability or the HyperPod observability add-on, and they land in an Athena table you can query. Cost per million tokens comes from the AWS Price List API, with an Amazon Bedrock on-demand comparison where a verified equivalent exists.  ./do/metrics  gives you a live readout at any time.

Scale-to-zero for real-time endpoints (opt-in).  ./do/deploy --scale-to-zero on --scale-max 2  lets inference components scale to zero copies when idle.

Secrets by reference. Hugging Face and NGC tokens are passed to containers as AWS Secrets Manager ARNs and resolved at start. A plaintext token is refused unless you pass  --allow-plaintext-secret .


Walkthrough: Qwen3-4B on SageMaker AI, then a tuned adapter

Install and bootstrap once per account and Region:

npm install -g @aws/ml-container-creator
ml-container-creator bootstrap

Generate a vLLM project:

ml-container-creator qwen-chat \
--deployment-config=transformers-vllm \
--model-name=Qwen/Qwen3-4B
cd qwen-chat

Build with AWS CodeBuild (no local Docker needed), check the fit, and deploy:

./do/submit
./do/deploy --dry-run # resolved config + right-sizing preflight, creates nothing
./do/deploy --target realtime-inference
./do/test

Benchmark with a realistic workload and look at live metrics:

./do/benchmark --workload multi-turn-chat
./do/metrics --window 15

Fine-tune with managed SFT and hot-load the result as an adapter on the running endpoint:

./do/tune --technique sft --dataset s3://<bucket>/datasets/my-chat/
./do/adapter add support-bot --from-tune sft

Clean up when you're done:

./do/clean


Upgrading from 1.x


A few changes need action: plaintext secrets are refused, the right-sizing preflight can stop a deploy,  --deployment-target  at generation gives way to  ./do/deploy --target , and the benchmark table needs a one-time migration ( ml-container-creator bootstrap update --module benchmark ). The  upgrade guide  has the steps.


Where it stands

Everything in v2.0 passes the offline test suite. Serving metrics, cost, managed tuning and the IAM policy have been validated against live AWS resources. Plain-EKS deploys, scale-to-zero, the HyperPod training backend and  do/add-pod  are tested offline and haven't had a live run yet, so reports from real workloads are very welcome.


If you try it, I'd like to hear which model and target you used and what got in your way. If you encounter any bugs or issues, please open an issue in the GitHub repository. If you would like to fix said issue, please refer to the  Contributing guide .
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article