Concept
Automating FM deployment and fine-tuned model versions
A pipeline from data to a deployed custom model, with versioning, Provisioned Throughput and rollback.
- 1Prepare and validate the training data in S3.
- 2Run the customization job.
- 3Evaluate the custom model against the base model.
- 4Register the version with its metrics.
- 5Deploy the model and cut over to it.
Step by step
- 1Prepare and validate the training data in S3.
- 2Run the customization job.
- 3Evaluate the custom model against the base model.
- 4Register the version with its metrics.
- 5Deploy the model and cut over to it.
Naming
- How
- Base model, task, version, tags
- Watch for
- Traceable to data and job
Deployment
- How
- Provisioned Throughput or on-demand, from the pipeline or IaC
- Watch for
- Provisioned Throughput bills every hour until deleted
Cutover
- How
- Change the model ARN the app reads
- Watch for
- Old and new both cost money
Rollback
- How
- Point back at the old ARN
- Watch for
- Keep the old model until stable
| Step | How | Watch for |
|---|---|---|
| Naming | Base model, task, version, tags | Traceable to data and job |
| Deployment | Provisioned Throughput or on-demand, from the pipeline or IaC | Provisioned Throughput bills every hour until deleted |
| Cutover | Change the model ARN the app reads | Old and new both cost money |
| Rollback | Point back at the old ARN | Keep the old model until stable |
1 / 2
Naming
- How
- Base model, task, version, tags
- Watch for
- Traceable to data and job
Deployment
- How
- Provisioned Throughput or on-demand, from the pipeline or IaC
- Watch for
- Provisioned Throughput bills every hour until deleted
| Step | How | Watch for |
|---|---|---|
| Naming | Base model, task, version, tags | Traceable to data and job |
| Deployment | Provisioned Throughput or on-demand, from the pipeline or IaC | Provisioned Throughput bills every hour until deleted |
2 / 2
Cutover
- How
- Change the model ARN the app reads
- Watch for
- Old and new both cost money
Rollback
- How
- Point back at the old ARN
- Watch for
- Keep the old model until stable
| Step | How | Watch for |
|---|---|---|
| Cutover | Change the model ARN the app reads | Old and new both cost money |
| Rollback | Point back at the old ARN | Keep the old model until stable |
What it is
A fine-tuning pipeline has five stages: prepare the data, run the customization job, evaluate, register, deploy. Amazon S3 holds the training and validation files. A Bedrock customization job produces a custom model. Evaluate it on a held-out set and against the base model. Only a model that passes is registered and deployed. AWS Step Functions can run it, because it can start a customization job and wait for it to finish.
What it is
Naming and versioning make models traceable. Put the base model, the task and a version or date in the custom model name, and tag the model with the data version and job ID. Keep a record of each custom model version, its metrics and the data behind it, for audit.
What it is
A customized Bedrock model may need Provisioned Throughput to be called. Many do. For a few models, you can instead create a custom model deployment and pay per token. AWS lists Amazon Nova Lite, Nova 2 Lite, Nova Micro, Nova Pro and Llama 3.3 70B Instruct. The model must be customized on or after July 16, 2025, in a supported US Region. Check the docs for your model and Region. If you use Provisioned Throughput, create it from the pipeline, through an API call or your infrastructure as code. It bills by the hour until you delete it, so pick a commitment with care.
What it is
Cut over by changing one setting: the model ARN that the application reads, for example from Parameter Store. During the switch, the old and new provisioned models run together and both cost money. If the new model fails checks or alarms, set the value back to the old ARN. Delete the old Provisioned Throughput only after the new model has proved stable.
Remember
- Pipeline: data prep, customization job, evaluation, register, deploy.
- Name and tag custom models with the base model, version and data version.
- A customized Bedrock model may need Provisioned Throughput, which bills until deleted. Some models also support on-demand deployment.
- Cut over by changing the model ARN the application reads.
Remember
- Roll back by restoring the old ARN. Keep the old provisioned model until the new one is stable.
On the exam
- “Automate fine-tuning, evaluation and release of a Bedrock custom model” points to a Step Functions or Pipelines workflow with an evaluation gate.
- “Return to the previous fine-tuned model quickly” points to a parameter holding the model ARN, switched back.
- “Overlap two versions during cutover” points to double Provisioned Throughput cost for a while.
In this task · 3.3
- Deployment strategies and rollback
CodePipeline
CodeBuild
CodeDeploy
SageMaker Pipelines
- Automated testing in ML pipelines
- Triggering retraining
Model Registry
Prompt Management
- Agent deployment pipelines and versions
- AI model and prompt testing
- Automating FM deployment and fine-tuned model versions
- RAG update and knowledge base refresh pipelines
Step Functions