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.

by Orchestra-Research 12k GitHub stars MIT Updated Jun 16, 2026
fine-tuning-with-trl skill by Orchestra-Research
fine-tuning-with-trl — Productivity skill by Orchestra-Research

Overview

fine-tuning-with-trl is an open-source productivity skill for Claude Code and compatible agents, published by Orchestra-Research. Its author describes it as: “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 prefer…”. The project has 12k stars on GitHub and is available under the MIT license. Add it to your setup with `/plugin marketplace add Orchestra-Research/AI-Research-SKILLs`.

What fine-tuning-with-trl does

TRL provides post-training methods for aligning language models with human preferences.

What’s inside

The SKILL.md for fine-tuning-with-trl is organised into these sections:

  • Quick start
  • Common workflows
  • Workflow 1: Full RLHF pipeline (SFT → Reward Model → PPO)
  • Workflow 2: Simple preference alignment with DPO
  • Workflow 3: Memory-efficient online RL with GRPO
  • When to use vs alternatives
  • Common issues
  • Advanced topics
  • Hardware requirements
  • Resources

Installation

Add fine-tuning-with-trl to your agent with:

/plugin marketplace add Orchestra-Research/AI-Research-SKILLs

Review a skill’s source before installing it — skills can instruct your agent to run commands. This command comes from the skill’s public repository, which is the source of truth for setup steps. New to skills? Read how to install Claude Code skills.

Supported agents

  • Claude Code — ships a claude code plugin marketplace
  • Codex — declared in the repository topics

License

fine-tuning-with-trl is published under the MIT license.

Strengths

  • Clear MIT license — safe to read and adapt within its terms
  • Ships in Orchestra-Research/AI-Research-SKILLs, an established project with 11,807 GitHub stars
  • Works with Claude Code, Codex

Author

Orchestra-Research 41 skills in the catalog · GitHub profile ↗
View skills

Topics

Alternatives to fine-tuning-with-trl

Similar skills from other repositories:

Need a skill like this, tailored to your team?Build a custom skill →

Frequently asked questions

What does fine-tuning-with-trl do?
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.
How do I install fine-tuning-with-trl?
Run /plugin marketplace add Orchestra-Research/AI-Research-SKILLs in your agent, then reload your skills. Review the source at https://github.com/Orchestra-Research/AI-Research-SKILLs before installing.
Is fine-tuning-with-trl free to use?
Yes. fine-tuning-with-trl is free and open source under the MIT license, so you can read, run, and adapt it within that license's terms.
Which agents does fine-tuning-with-trl work with?
fine-tuning-with-trl lists Claude Code and Codex — named in its SKILL.md, its plugin marketplace or its repository topics. Skills use the portable SKILL.md format, so other agents that read that format may load it too.
Where does fine-tuning-with-trl come from?
fine-tuning-with-trl ships inside Orchestra-Research/AI-Research-SKILLs, a repository that contains 41 catalogued skills in total. The repository's 11,807 GitHub stars apply to that whole collection, not to this skill on its own.

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

Provides guidance for LLM post-training with RL using slime, a Megatron+SGLang framework. Use when training GLM models, implementing custom data generation workflows, or needing tight Megatron-LM integration for RL scaling.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

Provides guidance for PyTorch-native agentic RL using torchforge, Meta's library separating infra from algorithms. Use when you want clean RL abstractions, easy algorithm experimentation, or scalable training with Monarch and TorchTitan.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

Provides guidance for enterprise-grade RL training using miles, a production-ready fork of slime. Use when training large MoE models with FP8/INT4, needing train-inference alignment, or requiring speculative RL for maximum throughput.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free