Trl

TRL (Hugging Face Transformer Reinforcement Learning) is the post-training library with SFTTrainer, DPOTrainer, GRPOTrainer, RLOOTrainer, KTOTrainer, RewardTrainer and the trl CLI (trl sft, trl dpo, trl grpo). Use to install TRL, train with PEFT/LoRA/QLoRA, write custom reward functions, run GRPO with vLLM (server or colocate), scale with Accelerate or DeepSpeed, or fix errors such as chat-template, assistant_only_loss, vllm version, trl.experimental import failures. Not for Axolotl YAML or Unsloth loaders (axolotl, unsloth); method choice is fine-tuning-llms.

ScaleDockHQ Updated

File contents

ScaleDockHQ/llm-skills commit b4019c23ab

Frequently asked questions

npx get-skill add scaledockhq/trl