home/categories/machine-learning/davila7-claude-code-templates-cli-tool-components-skills-ai-research-post-training-trl-fine-tuning-skill-md
machine-learningdata-ai

fine-tuning-with-trl

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.

davila7
maintainer
davila7
更新日 1/20/2026
スター
17577
フォーク
1576
quick start

Installation and usage

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.

インストール
$ install --globalskills.sh
使い方

インストール後、ターミナルで以下のコマンドを実行してこのスキルを使用できます:

skills use fine-tuning-with-trl