Agent skill · Data & Analytics

unsloth-sft

Supervised fine-tuning using SFTTrainer, instruction formatting, and multi-turn dataset preparation with triggers like sft, instruction tuning, chat templates, sharegpt, alpaca, conversation_extension, and SFTTrainer.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill unsloth-sft-cuba6112-skillfactory-2 --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/ai-ml/unsloth-sft-cuba6112-skillfactory-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

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

From the SKILL.md

## Overview Supervised Fine-Tuning (SFT) in Unsloth focuses on training models to follow instructions using specific formats. It provides tools for chat template mapping, multi-turn conversation synthesis via `conversation_extension`, and optimized dataset processing. ## When to Use - When training models on instruction-response datasets (e.g., Alpaca). - When developing multi-turn conversational agents. - When you need to standardize various dataset formats (ShareGPT, OpenAI) for training. ## Decision Tree 1. Is your dataset single-turn? - Yes: Use `conversation_extension` to synthetically create multi-turn samples. - No: Map columns using `standardize_sharegpt`. 2. Are you training on Windows? - Yes: Set `dataset_num_proc = 1` in SFTConfig. - No: Use multiple processes for faster mapping. 3. Want to increase multi-turn accuracy? - Yes: Enable masking of inputs to train on completions only. ## Workflows ### Chat Template Implementation 1. Select a template (e.g., 'chatml', 'llama-3.1') using `get_chat_template(tokenizer, chat_template='...')`. 2. Map dataset columns using the mapping parameter (e.g., `mapping = {'role' : 'from', 'content' : 'value'}`). 3. Apply the formatting func

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Decision Tree
  4. Workflows
  5. Chat Template Implementation
  6. Multi-turn Data Preparation
  7. Non-Obvious Insights
  8. Evidence
  9. Scripts
  10. Dependencies
  11. References
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the unsloth-sft skill do?

Supervised fine-tuning using SFTTrainer, instruction formatting, and multi-turn dataset preparation with triggers like sft, instruction tuning, chat templates, sharegpt, alpaca, conversation_extension, and SFTTrainer.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill unsloth-sft-cuba6112-skillfactory-2 --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 majiayu000/claude-skill-registry, a repository with 534 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