amazon-location-servic…
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or…
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
Claude Code
$ npx -y skills add awslabs/agent-plugins --skill finetuning --agent claude-code
Codex
$ npx skills add awslabs/agent-plugins --skill finetuning -a codex -y
Cursor
$ npx skills add awslabs/agent-plugins --skill finetuning -a cursor -y
Gemini CLI
$ npx skills add awslabs/agent-plugins --skill finetuning -a gemini-cli -y
GitHub Copilot
$ npx skills add awslabs/agent-plugins --skill finetuning -a github-copilot -y
OpenCode
$ npx skills add awslabs/agent-plugins --skill finetuning -a opencode -y
Windsurf
$ npx skills add awslabs/agent-plugins --skill finetuning -a windsurf -y
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
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or…
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…
Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry…
Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI,…
Build, run, debug, and operate applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.