Registry / benchflow-ai

benchflow-ai/skillsbench/trl

Reference for the TRL (Transformer Reinforcement Learning) library codebase. Use proactively before reading or editing any file under `trl/` so you have the intended contracts and invariants in mind, not just what the current code says. Covers trainer hierarchy (SFT, DPO, GRPO, KTO), shared utility functions (selective_log_softmax, decode_and_strip_padding, padding helpers), configuration system, model wrappers, and how data flows through any TRL trainer.

Agent skill · version 0.0.0-main.1794330934.gf860ecf · from benchflow-ai/skillsbench

Install

npx yarkr-cli add skill:benchflow-ai/skillsbench/trl

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

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:benchflow-ai/skillsbench/trl
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:benchflow-ai/skillsbench/trl

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:benchflow-ai/skillsbench/trl

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