Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Transformer Reinforcement Learning library (TRL). Supervised fine-tuning (SFT), reward modeling, PPO, DPO, KTO, GRPO for RLHF. Process reward models and language model alignment.
.claude/skills/mkurman-trl/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -47% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-23 | ✗→✓ | ▲ Improved | 63% | 0% |
TRL (Transformer Reinforcement Learning) is Hugging Face's library for RLHF — SFT, reward modeling, PPO, DPO, KTO, and GRPO. It's the standard post-training toolkit for aligning language models with human preferences.
bashuv pip install trl
pythonfrom trl import SFTTrainer from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") trainer = SFTTrainer( model=model, tokenizer=tokenizer, train_dataset=dataset, args=dict(per_device_train_batch_size=4, learning_rate=2e-5, max_seq_length=2048), ) trainer.train()
pythonfrom trl import DPOTrainer dpo = DPOTrainer( model=model, ref_model=ref_model, tokenizer=tokenizer, train_dataset=preference_dataset, args=dict(per_device_train_batch_size=4, max_length=2048), ) dpo.train()
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 17,234 | 11,570 | -33% | 1 | 1 | 0% | 3,397 | 2,696 | -21% | 0 | 0 | — |
case-02 | fail→fail | 11,215 | 5,795 | -48% | 1 | 1 | 0% | 2,127 | 1,558 | -27% | 0 | 0 | — |
case-03 | pass→pass | 17,931 | 17,260 | -4% | 1 | 1 | 0% | 3,553 | 4,043 | +14% | 0 | 0 | — |
case-04 | pass→pass | 15,788 | 14,647 | -7% | 1 | 1 | 0% | 3,027 | 3,287 | +9% | 0 | 0 | — |
case-05 | pass→pass | 13,972 | 9,352 | -33% | 1 | 1 | 0% | 2,773 | 2,184 | -21% | 0 | 0 | — |
case-06 | pass→pass | 3,269 | 1,736 | -47% | 1 | 1 | 0% | 491 | 598 | +22% | 0 | 0 | — |
case-07 | fail→pass | 6,934 | 3,092 | -55% | 1 | 1 | 0% | 1,254 | 662 | -47% | 0 | 0 | — |
case-08 | pass→pass | 4,290 | 2,767 | -36% | 1 | 1 | 0% | 705 | 773 | +10% | 0 | 0 | — |
case-09 | fail→pass | 6,542 | 3,921 | -40% | 1 | 1 | 0% | 1,203 | 1,027 | -15% | 0 | 0 | — |
case-10 | fail→fail | 7,085 | 1,769 | -75% | 1 | 1 | 0% | 1,302 | 616 | -53% | 0 | 0 | — |
case-11 | pass→pass | 1,869 | 1,353 | -28% | 1 | 1 | 0% | 247 | 505 | +104% | 0 | 0 | — |
case-12 | pass→pass | 2,102 | 1,544 | -27% | 1 | 1 | 0% | 270 | 566 | +110% | 0 | 0 | — |
case-13 | pass→pass | 1,998 | 2,038 | +2% | 1 | 1 | 0% | 300 | 616 | +105% | 0 | 0 | — |
case-14 | pass→fail | 5,801 | 4,993 | -14% | 1 | 1 | 0% | 996 | 1,226 | +23% | 0 | 0 | — |
case-15 | fail→pass | 4,646 | 2,397 | -48% | 1 | 1 | 0% | 778 | 726 | -7% | 0 | 0 | — |
case-16 | fail→fail | 4,893 | 2,527 | -48% | 1 | 1 | 0% | 897 | 744 | -17% | 0 | 0 | — |
case-17 | pass→pass | 4,364 | 1,578 | -64% | 1 | 1 | 0% | 735 | 550 | -25% | 0 | 0 | — |
case-18 | pass→fail | 2,362 | 1,486 | -37% | 1 | 1 | 0% | 367 | 580 | +58% | 0 | 0 | — |
case-19 | fail→pass | 14,053 | 9,582 | -32% | 1 | 1 | 0% | 2,518 | 2,027 | -19% | 0 | 0 | — |
case-20 | pass→fail | 5,150 | 2,987 | -42% | 1 | 1 | 0% | 824 | 840 | +2% | 0 | 0 | — |
case-21 | fail→fail | 9,573 | 8,121 | -15% | 1 | 1 | 0% | 1,521 | 1,655 | +9% | 0 | 0 | — |
case-22 | pass→fail | 4,938 | 1,926 | -61% | 1 | 1 | 0% | 932 | 674 | -28% | 0 | 0 | — |
case-23 | fail→pass | 2,642 | 2,195 | -17% | 1 | 1 | 0% | 401 | 653 | +63% | 0 | 0 | — |
case-24 | fail→pass | 6,415 | 1,804 | -72% | 1 | 1 | 0% | 1,127 | 610 | -46% | 0 | 0 | — |
case-25 | pass→pass | 6,418 | 2,357 | -63% | 1 | 1 | 0% | 1,117 | 796 | -29% | 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. 25 cases were attempted. The headline lift of -11 percentage points is the difference between those two pass rates over the 25 comparable cases. 5 cases got worse with the skill loaded, and they are included in that figure.
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.
Other measured skills in the registry, with their headline benchmark lift.