Customise Amazon Bedrock Cohere Command Light model

The SAM template deploys a Step Functions workflow that creates custom model by fine tuning Amazon Bedrock Cohere Command Light model.

Upload the training data in JSON Line format into the Amazon S3 bucket.
Start the AWS Step Functions Workflow using the `start-execution` api command with the input payload in JSON format.
The workflow invokes Amazon Bedrock's `CreateModelCustomizationJob` API to fine tune `Cohere Command Light` model with the traing data from the Amazon S3 bucket.
The workflow periodically checks for the status of the `CreateModelCustomizationJob`.
Once the custom fine tuned `Cohere Command Light` is created, the workflow invokes Amazon Bedrock's `CreateProvisionedModelThroughput` API to create a Provisioned Throughput with no commitment.

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/stepfunctions-bedrock-model-customisation-sam/cd step-functions-workflows-collection/stepfunctions-bedrock-model-customisation-sam

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete

Created by:

Biswanath Mukherjee

Biswanath Mukherjee

Sr. Solutions Architect working at AWS India.

Follow on LinkedIn