← all repositories
agentscope-ai/Trinity-RFT

Decoupling the Mess of LLM Reinforcement Fine-Tuning

It splits reinforcement fine-tuning into three independent, swappable parts—exploration, training, and data buffering—so you can iterate on algorithms and agent workflows without rewriting the plumbing.

Trinity-RFT
Not currently ranked — collecting fresh signals.
star history

What it does

Trinity-RFT is a Python framework for reinforcement fine-tuning of large language models. It breaks the process into three coordinated components: an Explorer that generates experience through agent-environment interaction, a Trainer that updates model weights, and a Buffer that handles data pipelines. It supports everything from single-GPU colocated training to large distributed setups with FSDP2 and Megatron, and even offers a Tinker backend for GPU-less development.

The interesting bit

Most RL fine-tuning code is a tangled script you copy and tweak; Trinity-RFT treats the explorer, trainer, and buffer as separate, pluggable services. That means you can train a web-search agent with ReAct, test a new group-relative REINFORCE variant, or run offline DPO through the same data plumbing without gutting the codebase. It also runs offline and ships with benchmark suites that compare against veRL and rLLM.

Key highlights

  • Modular three-part architecture: Explorer, Trainer, Buffer.
  • Supports multi-step agentic workflows (ReAct, multi-turn dialogue, web-search agents).
  • Includes a Tinker backend for development without local GPUs.
  • Backed by multiple ICLR 2026 papers (CHORD, BOTS, group-relative REINFORCE).
  • Benchmark toolkit with comparisons to veRL and rLLM.

Verdict

Worth a look if you are building agentic LLM systems or prototyping new RL algorithms and need more structure than a single training script. If you just want to run a quick GRPO fine-tune on a single dataset and never touch the agent loop, it may be more framework than you need.

Frequently asked

What is agentscope-ai/Trinity-RFT?
It splits reinforcement fine-tuning into three independent, swappable parts—exploration, training, and data buffering—so you can iterate on algorithms and agent workflows without rewriting the plumbing.
Is Trinity-RFT open source?
Yes — agentscope-ai/Trinity-RFT is open source, released under the Apache-2.0 license.
What language is Trinity-RFT written in?
agentscope-ai/Trinity-RFT is primarily written in Python.
How popular is Trinity-RFT?
agentscope-ai/Trinity-RFT has 672 stars on GitHub.
Where can I find Trinity-RFT?
agentscope-ai/Trinity-RFT is on GitHub at https://github.com/agentscope-ai/Trinity-RFT.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.