amazon-location-servic…
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode…
Generates code that fine-tunes a base model using SageMaker serverless training jobs. Use when the user says "start training", "fine-tune my model", "I'm ready to train", or when the plan reaches the finetuning step. Supports SFT, DPO, RLVR, and RLAIF trainers, including RLVR
$ npx -y skills add awslabs/agent-plugins --skill finetuning --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/finetuningContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates code that fine-tunes a base model using SageMaker serverless training jobs. Use when the user says "start training", "fine-tune my model", "I'm ready to train", or when the plan reaches the finetuning step. Supports SFT, DPO, RLVR, and RLAIF trainers, including RLVR
name: finetuning description: Generates code that fine-tunes a base model using SageMaker serverless training jobs. Use when the user says "start training", "fine-tune my model", "I'm ready to train", or when the plan reaches the finetuning step. Supports SFT, DPO, RLVR, and RLAIF trainers, including RLVR Lambda reward function and RLAIF custom prompt creation. metadata: version: "1.0.0"
Before starting this workflow, verify:
1. A `use_case_spec.md` file exists
2. A fine-tuning technique (SFT, DPO, RLVR, RLAIF, or CPT/RFT (for Nova)) and base model have already been selected
3. A base model name available on SageMakerHub has been identified
4. The SDK environment has been verified (SDK version, region, execution role)
5. A training dataset uploaded to a bucket in the environment's default region.
---
---
1. Identify project directory from conversation context
⏸ Wait for user.
Read `references/code_output_guide.md` for output format rules, then read the code template matching the finetuning strategy:
The template is a Python file where each `# Cell N: Label` comment marks the start of a new section. Split on these markers — everything between one marker and the next becomes one unit of output.
1. Write the code from the template following the rules in `code_output_guide.md` 2. Use same order, dependencies, and imports as the template 3. DO NOT improvise or add extra code 4. If the model is **NOT** a Meta/Llama model (model ID does NOT start with `meta-`):
5. If the model is from the Nova family, omit any code containing `max_epochs` or `lr_warmup_steps_ratio` from the Configure Trainer section and the Hyperparameter Overrides section
**In the 'Setup & Credentials' cell, populate:**
1. **BASE_MODEL**
2. **MODEL_PACKAGE_GROUP_NAME**
3. Save notebook
1. Follow workflow in `references/rlvr_reward_function.md` section "Helping Users Create Custom Reward Functions"
1. Set the value for `CUSTOM_REWARD_FUNCTION` in the Notebook with the ARN of the reward function (either given directly by the user, or from the function generation code as `evaluator.arn`).
Read `references/rlaif_guide.md` and follow its instructions.
1. Look up the official license link for the selected base model from references/eula_links.md 2. Display the license to the user following the phrasing in references/eula_links.md. For OSS models: "This model is licensed under **{License}**. Please review the license terms here: {URL}." For Nova models: "This model is subject to the AWS Service Terms: {URL}." 3. Check if the se
Read this in other languages: 日本語 Generative AI can make mistakes. You should consider reviewing all output and costs generated by your chosen AI model and agentic coding assistant. See AWS Responsible AI Policy.
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode…
Build and deploy full-stack web and mobile apps with AWS Amplify Gen2
Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API,…
Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for…
Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI, capacity provider,…
Build, run, debug, and operate applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute environments that run inside a…