Pular para o conteúdo
Kitbay
SkillOficial

trl-training

Apache-2.0Atualizado em 11 de nov. de 202611.334Estrelas no GitHub

A compact Hugging Face skill for post-training language models with the TRL library, through its Python API or the trl command line.

O que a skill ensina

A compact Hugging Face skill for post-training language models with the TRL library, through its Python API or the trl command line. It maps each training method (supervised fine-tuning, DPO, GRPO online reinforcement learning, distillation, KTO and reward models) to its trainer class, config and expected dataset format, explains the fields that matter for SFT and the setup for GRPO reward functions, notes that configs extend the Transformers training arguments, and points to the experimental trainers. It is guidance only and links to the TRL documentation for more.

O que faz

  • Pick the TRL trainer and dataset format for a method
  • Set up supervised fine-tuning runs
  • Configure GRPO reward functions
  • Run training from the trl CLI