Fine-tune LLMs using reinforcement learning with TRL - SFT for instruction tuning, DPO for preference alignment, PPO/GRPO for reward optimization, and reward model training. Use when need RLHF, align model with preferences, or train from human feedback. Works with HuggingFace Transformers.

AI research & ML14.8k stars on the repoMIT
share

Install fine-tuning-with-trl

npx skills add orchestra-research/ai-research-skills --skill trl-fine-tuning -a claude-code

Installs into .claude/skills/ in your project. Add -g to install it for all your projects, in ~/.claude/skills/.

More ai research & ml skills