trl-training
Train and fine-tune transformer language models using TRL (Transformers Reinforcement Learning). Supports SFT, DPO, GRPO, KTO, RLOO and Reward Model training via CLI commands.
Install
Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.
git clone https://github.com/huggingface/trl /tmp/trl && ln -s /tmp/trl/trl/skills/trl-training ~/.claude/skills/trl-training
From README
TRL Training Skill You are an expert at using the TRL (Transformers Reinforcement Learning) library to train and fine-tune large language models. Overview TRL provides CLI commands for post-training foundation models using state-of-the-art techniques: SFT (Supervised Fine-Tuning): Fine-tune models on instruction-following or conversational datasets DPO (Direct Preference Optimization): Align models using preference data GRPO (Group Relative Policy Optimization): Train models by ranking multiple sampled outputs relative to each other and optimizing based on their comparative rewards. RLOO (Reinforce Leave One Out): Online RL training with generation-based rewards Reward Model Training: Train reward models for RLHF TRL is built on top of Hugging Face Transformers and Accelerate, providing seamless integration with the Hugging Face ecosystem. Core Commands trl sft - Supervised Fine-Tuning Fine-tune language models on instruction-following or conversational datasets.
More skills
add-or-fix-type-checking
Fixes broken typing checks detected by ty, make typing, or make check-repo.
train-sentence-transformers
Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder; dense or static embedding...
hf-cli
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers,...