Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Agent workflows

Fine-tune Haiku on Bedrock and host a task model

Validate conversational JSONL, upload it to S3, launch a Bedrock customization job, and host the resulting model for inference.

Goal

Produce a callable customized Claude Haiku model from a validated sample set rather than only inspecting training data.

Steps

  1. Prepare JSONL with system/messages: first message user, last assistant, at least two messages, and alternating roles. [src10-anthropic-finetune-haiku-task-model-on-bedrock]
  2. Upload training data to your S3 bucket and submit a customization job using a Bedrock service role allowed to read it. [src10-anthropic-finetune-haiku-task-model-on-bedrock]
  3. Poll job status with boto3; after completion create the model deployment/inference profile and test using held-out prompts. [src10-anthropic-finetune-haiku-task-model-on-bedrock]

How to verify

Job status is Completed, deployment succeeds, and held-out prompts follow the target JSON format without copying training examples.

Troubleshooting

For role denial, check S3 read permissions and region; for job failure, check JSONL first/last roles and extra fields before starting a new job.

Permissions

Prerequisites

Permissions

Limitations

Training time, price, and regions depend on current Bedrock support; use approved, de-identified examples only.

Pinned upstream source

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/finetuning/finetuning_on_bedrock.ipynb

Repository
anthropics/anthropic-cookbook
File path
finetuning/finetuning_on_bedrock.ipynb
Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Main topic

Turn ecommerce campaign materials into a reviewable weekly brief

Related resources