Registry / openlair

openlair/dr-claw/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. Also covers GRPO with TRL and SimPO (guides in references/).

Agent skill · version 1.3.1 · from OpenLAIR/dr-claw

Install

npx yarkr-cli add skill:openlair/dr-claw/fine-tuning-with-trl

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:openlair/dr-claw/fine-tuning-with-trl
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:openlair/dr-claw/fine-tuning-with-trl

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:openlair/dr-claw/fine-tuning-with-trl

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.