Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Train or fine-tune TRL language models on Hugging Face Jobs, including SFT, DPO, GRPO, and GGUF export.
.claude/skills/hugging-face-model-trainer/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 680% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 238% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 218% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 166% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 457% | 0% |
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
Use this skill when users want to:
Use Unsloth (references/unsloth.md) instead of standard TRL when:
FastVisionModel supportSee references/unsloth.md for complete Unsloth documentation and scripts/unsloth_sft_example.py for a production-ready training script.
Before starting any training job, verify:
hf_whoami()secrets={"HF_TOKEN": "$HF_TOKEN"} in job config to make token available (the $HF_TOKEN syntaxreferences your actual token value)
datasets.load_dataset()push_to_hub=True, hub_model_id="username/model-name"; Job: secrets={"HF_TOKEN": "$HF_TOKEN"}Production-ready templates with all best practices:
Load these scripts for correctly:
scripts/train_sft_example.py - Complete SFT training with Trackio, LoRA, checkpointsscripts/train_dpo_example.py - DPO training for preference learningscripts/train_grpo_example.py - GRPO training for online RLThese scripts demonstrate proper Hub saving, Trackio integration, checkpoint management, and optimized parameters. Pass their content inline to hf_jobs() or use as templates for custom scripts.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-19 | pass→pass | 8,085 | 5,945 | -26% | 1 | 1 | 0% | 1,333 | 9,078 | +581% | 0 | 0 | — |
case-01 | fail→fail | 12,182 | 6,179 | -49% | 1 | 1 | 0% | 2,618 | 8,537 | +226% | 0 | 0 | — |
case-02 | fail→fail | 33,737 | 25,154 | -25% | 1 | 1 | 0% | 1,937 | 11,466 | +492% | 0 | 0 | — |
case-03 | fail→fail | 11,436 | 58,738 | +414% | 1 | 1 | 0% | 2,491 | 14,201 | +470% | 0 | 0 | — |
case-04 | fail→pass | 5,761 | 2,973 | -48% | 1 | 1 | 0% | 1,092 | 8,517 | +680% | 0 | 0 | — |
case-20 | fail→pass | 14,550 | 11,562 | -21% | 1 | 1 | 0% | 3,095 | 10,468 | +238% | 0 | 0 | — |
case-05 | fail→fail | 8,675 | 13,130 | +51% | 1 | 1 | 0% | 1,547 | 9,401 | +508% | 0 | 0 | — |
case-06 | fail→pass | 17,494 | 7,972 | -54% | 1 | 1 | 0% | 3,018 | 9,607 | +218% | 0 | 0 | — |
case-07 | fail→pass | 29,184 | 3,137 | -89% | 1 | 1 | 0% | 3,238 | 8,599 | +166% | 0 | 0 | — |
case-08 | pass→pass | 15,064 | 44,649 | +196% | 1 | 1 | 0% | 2,677 | 9,850 | +268% | 0 | 0 | — |
case-09 | pass→pass | 13,725 | 6,418 | -53% | 1 | 1 | 0% | 2,462 | 9,235 | +275% | 0 | 0 | — |
case-10 | fail→pass | 7,694 | 2,828 | -63% | 1 | 1 | 0% | 1,519 | 8,461 | +457% | 0 | 0 | — |
case-11 | fail→pass | 12,577 | 9,505 | -24% | 1 | 1 | 0% | 2,377 | 10,051 | +323% | 0 | 0 | — |
case-12 | fail→pass | 9,877 | 4,847 | -51% | 1 | 1 | 0% | 2,015 | 8,916 | +342% | 0 | 0 | — |
case-17 | fail→pass | 5,416 | 3,498 | -35% | 1 | 1 | 0% | 1,029 | 8,725 | +748% | 0 | 0 | — |
case-13 | pass→pass | 9,627 | 3,895 | -60% | 1 | 1 | 0% | 1,598 | 8,664 | +442% | 0 | 0 | — |
case-14 | fail→pass | 19,189 | 3,554 | -81% | 1 | 1 | 0% | 1,704 | 8,625 | +406% | 0 | 0 | — |
case-15 | fail→pass | 14,534 | 9,623 | -34% | 1 | 1 | 0% | 2,530 | 8,955 | +254% | 0 | 0 | — |
case-16 | fail→fail | 8,037 | 6,633 | -17% | 1 | 1 | 0% | 1,590 | 8,504 | +435% | 0 | 0 | — |
case-18 | fail→pass | 12,333 | 5,923 | -52% | 1 | 1 | 0% | 2,100 | 8,989 | +328% | 0 | 0 | — |
case-21 | pass→pass | 8,296 | 6,183 | -25% | 1 | 1 | 0% | 1,412 | 9,219 | +553% | 0 | 0 | — |
case-22 | pass→pass | 5,227 | 4,890 | -6% | 1 | 1 | 0% | 961 | 8,864 | +822% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 17 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +50 percentage points is the difference between those two pass rates over the 17 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
The publisher has shipped newer versions since this run, so these numbers describe v2, not the version currently listed.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/28/2026 | +36% |
Other measured skills in the registry, with their headline benchmark lift.