Agent skill · Workflow & Productivity

finetuning

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.

Amazon Web Services - Labs12,649★ · +18/wk · 2 repos on radarProfile →
claude-codeships scriptsApache-2.0
Install
npx skills add awslabs/agent-plugins --skill finetuning --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 14
SKILL.md size: 9 KB
Bundled scripts: yes
Version: 1.0.0
Path: plugins/sagemaker-ai/skills/finetuning/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 850
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Prerequisites Before starting this workflow, verify: 1. A `use_case_spec.md` file exists - If missing: Activate the `use-case-specification` skill first, then resume - DON'T EVER offer to create a use case spec without activating the use-case-specification skill. 2. A fine-tuning technique (SFT, DPO, RLVR, RLAIF, or CPT/RFT (for Nova)) and base model have already been selected - If missing: Activate the `model-selection` and/or `finetuning-technique` skills to collect what's missing, then resume - Don't make recommendations on the spot. You MUST activate the appropriate skill. 3. A base model name available on SageMakerHub has been identified - If missing: Activate the `model-selection` skill to get it - **Important:** Only use the model name that `model-selection` retrieves, as it may differ from other commonly used names for the same model 4. The SDK environment has been verified (SDK version, region, execution role) - If not done: Activate the `sdk-getting-started` skill first, then resume 5. A training dataset uploaded to a bucket in the environment's default region. - If not met: Help the user upload the dataset to the correct S3 --- # Critical Rules ## Code Generation Rules

What's inside
Steps it walks through
  1. Code Generation Rules
  2. User Communication Rules
  3. 1. Code Generation Setup
  4. 1.1 Directory Setup
  5. 1.2 Select Code Template
  6. 1.3 Generate Code
  7. 1.4 Auto-Generate Configuration Values
  8. 2.1 Check Reward Function Status
  9. 2.2 Generate Reward Function From Template
  10. 2.3 Set CUSTOMREWARDFUNCTION value
  11. 3. RLAIF (for RLAIF only, skip this section if technique is not RLAIF)
  12. 4. EULA review and acceptance
  13. 5. Post-Generation
  14. 6. Continuous Customization
Ships with 13 files
  • code_templates/dpo.py
  • code_templates/rlaif_builtin.py
  • code_templates/rlaif_custom_prompt.py
  • code_templates/rlvr.py
  • code_templates/sft.py
  • references/code_output_guide.md
  • references/continuous_customization.md
  • references/eula_links.md
  • references/rlaif_guide.md
  • references/rlvr_reward_function.md
  • scripts/mlflow_reference.py
  • templates/nova_rlvr_reward_function_source_template.py
  • templates/rlvr_reward_function_source_template.py
More from agent-plugins
All skills →
About this skill
What does the finetuning skill do?

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.

How do I install it?

Run `npx skills add awslabs/agent-plugins --skill finetuning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From awslabs/agent-plugins, a repository with 850 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going