ai-agent

Trinity‑RFT: Fine‑Tune LLMs with Scalable Reinforcement Learning

Empower your AI product with a flexible Python framework that streamlines reinforcement fine‑tuning of large language models—ideal for founders building custom LLM agents.

From the repo · “Trinity-RFT is a general-purpose, flexible and scalable framework designed for reinforcement fine-tuning (RFT) of large language models (LLM).”

advanced⏱ 1-2 hours💵 Free + LLM API costs
710 stars87 forksPythonGuide quality 9/10 · reviewed Oct 7Updated 10/8/2026100% free · open source
What it is

You fine-tune large language models for AI agents using a flexible and scalable framework.

Real use case example

"A founder wants to create a chatbot that can answer frequently asked questions on their e-commerce website. They fine-tune an LLM using Trinity-RFT and then integrate it into their site using a webhook. The chatbot can respond to customer inquiries in under 5 seconds, improving customer satisfaction."

Best insideClaude Desktop
When to use it
  • •When you need to adapt a pre-trained language model to a specific task or domain
  • •When you want to improve the performance of a language model on a particular dataset or metric
  • •When you need to integrate reinforcement learning with other AI techniques, such as supervised or unsupervised learning
Ready-to-paste prompt
python train.py --config config.json --model-name 't5-base' --dataset 'wikitext-103' --reward 'bleu'
Heads up: Ensure you have the required GPU resources and a compatible CUDA version, as specified in the Trinity-RFT README, to avoid compatibility issues during training
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/trinity-rft && curl -fsSL https://workflowstacks.com/api/skills/trinity-rft/claude-skill -o ~/.claude/skills/trinity-rft/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

What's inside — free to inspect

No purchase needed

Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.

11
top-level files
11
folders
1549.9M
source size
Apache-2.0
license
Key files
.pre-commit-config.yaml
AGENTS.md
README_zh.md
README.md
File tree
.codex/
.github/
benchmark/
docker/
docs/
environments/
examples/
perf/
scripts/
tests/
trinity/
.flake8
.gitignore
.mcp.json
.pre-commit-config.yaml
AGENTS.md
CONTRIBUTING.md
LICENSE
pyproject.toml
README_zh.md
README.md
setup.py
Quick Actions
Details
Creator
agentscope-ai
Language
Python
Category
ai-agent
Published
4/9/2025

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/trinity-rft.svg)](https://workflowstacks.com/skills/trinity-rft?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.