AI & ML interests

None defined yet.

Recent Activity

Organization Card
TRL
A comprehensive library to post-train foundation models
TRL is the Hugging Face library for fine-tuning and aligning language models, built on 🤗 Transformers. It scales from one GPU to many nodes with vLLM, PEFT, DeepSpeed and FSDP.
Reproducible training runs built with TRL. Pick a project and a model, then copy the command that reproduces the run on HF Jobs or your own GPUs.
SFTTrainerAsyncGRPOTrainer
Carbon-X →
Post-training of a 14B DNA and language model: SFT on FineDNA, then async GRPO with verifiable DNA rewards.
Carbon-X· h200x8 per stage
AsyncGRPOTrainerLoRA
Harness adapters →
One LoRA adapter per agent harness (pi, hermes, opencode), trained with RL inside the unmodified harness. safeagents checks every tool call.
AsyncGRPOTrainerGUIDE
Multi-Harness RL →
Train a small model with RL inside unmodified agent harnesses (OpenCode, Claude Code, Codex, Mini-SWE-Agent) so it improves across all of them.
LFM2.5-2.6B
AsyncGRPOTrainerGUIDE
RL Environment Pipeline →
Build verifiable coding tasks with OpenEnv and keep the ones where the base model sometimes succeeds and sometimes fails.
Qwen3.8-27B
Browse all 7 recipes →
QUICKSTART
terminal
$ trl sft --model_name_or_path Qwen/Qwen2.5-0.5B \
    --dataset_name trl-lib/Capybara \
    --output_dir Qwen2.5-0.5B-SFT
grpo.py
from datasets import load_dataset
from trl import GRPOTrainer
from trl.rewards import accuracy_reward
 
dataset = load_dataset("trl-lib/DeepMath-103K", split="train")
 
trainer = GRPOTrainer(
    model="Qwen/Qwen2.5-0.5B-Instruct",
    reward_funcs=accuracy_reward,
    train_dataset=dataset,
)
trainer.train()
This org holds the models and datasets used in the TRL docs, examples and tests. Contribute → Releases →