Skip to content

Releases: agentscope-ai/Trinity-RFT

v0.6.0

Choose a tag to compare

@pan-x-c pan-x-c released this 26 Jun 10:04
f39a4d8

Overview

⭐️ Highlights

Trinity-RFT v0.6.0 adds SGLang support, optimizes fully asynchronous parameter synchronization and scheduling to reduce bubbles, improves MoE training stability, and upgrades the veRL backend to v0.8.0.

Explorer

  1. Add SGLang inference engine support, including SGLang OpenAI API responses with prompt_token_ids, token_ids, and routed_experts.
  2. Upgrade vLLM to v0.23.0 and SGLang to v0.5.13.
  3. Refactor rollout model creation and management to support cross-node deployment of rollout models.
  4. Optimize fully asynchronous parameter synchronization with partial rollouts.
  5. Refactor weight synchronization with vLLM's WeightTransferEngine.
  6. Improve MoE rollout support by returning routed experts from vLLM/SGLang OpenAI API paths.
  7. Add data, pipeline, and expert parallel settings for rollout models to improve rollout performance.
  8. Enhance multi-turn and multi-modal rollout support.
  9. Add rollout performance benchmarking tools.

Trainer

  1. Upgrade veRL to v0.8.0 while keeping v0.7.1 supported.
  2. Improve Qwen3.5 compatibility with FSDP and Megatron backends.
  3. Improve MoE model training stability and reduce OOM risk in FSDP/Megatron training paths.

Buffer

  1. Refactor Buffer with an asynchronous implementation.
  2. Update the SQL schema and add filtering support to the Experience Viewer.
  3. Optimize the Experience Viewer.

Others

  1. Add Connect the Dots (CoD) example.
  2. Add InterCode-SQL example/benchmark.
  3. Add the GiGPO and DAPO algorithms.
  4. Improve Docker and remote GPU unit test workflows.

🚨 Breaking Changes

Due to database schema changes, the database files in the existing checkpoint folder cannot be recognized by the new version. To continue running previous experiments, please remove the corresponding .db files (typically located in the checkpoint_root_dir/project/name/buffer directory).

What's Changed

New Contributors

Full Changelog: v0.5.2...v0.6.0

v0.5.2

Choose a tag to compare

@pan-x-c pan-x-c released this 08 Apr 07:25
eedef4b

Overview

  1. Added support for training Qwen3.5 series models.
  2. Upgraded core dependencies: transformers to v5.3.0, verl to v0.7.1, and vLLM to v0.19.0.
  3. Enabled the use of auxiliary models within the experience pipeline.
  4. Added support for stream mode in the rollout API.
  5. Enabled integration with external APIs (e.g., OpenAI) during training and benchmarking.
  6. Added experience data visualization capabilities.
  7. Optimized serialization and deserialization of experience data.

What's Changed

Full Changelog: v0.5.1...v0.5.2

v0.5.1

Choose a tag to compare

@pan-x-c pan-x-c released this 12 Feb 10:16
c3d356c

Overview

  1. Enhanced support for multi-modal models (including Qwen2.5 VL, Qwen3 VL and Kimi-VL-A3B-Thinking series)
  2. Refactored trinity command line interface using typer
  3. Added a log management tool and fixed bugs in the logging system.
  4. Added Jensen-Shannon Divergence for on-policy distillation.
  5. Fixed bugs in model weight synchronization and over-rollout.

What's Changed

New Contributors

Full Changelog: v0.5.0...v0.5.1

v0.5.0

Choose a tag to compare

@pan-x-c pan-x-c released this 05 Feb 05:47
fdfdc7b

Overview

⭐️ Highlights

  1. Added colocate mode for single-GPU deployment.
  2. Refactored the Synchronizer and introduced a new model weight synchronization style: TRAINER_DRIVEN.
  3. Automatically provide parallelism setting suggestions based on cluster resources.

Explorer

  1. Added Multi-Threaded / Asynchronous Workflow Runner.
  2. Supported colocating the Rollout Model with the Trainer in single-GPU scenarios.
  3. Refined explorer-side metrics computation.
  4. Supported vLLM up to v0.15.1 (v0.10.2 remains supported).
  5. Fixed bugs related to multi-turn truncation.

Trainer

  1. Supported sharing GPU with Explorer in single-GPU scenarios.

Buffer

  1. Moved Selector into TaskFileReader.

Others

  1. Added a Huggingface-format checkpoint conversion tool to the trinity CLI.
  2. Refactored the configuration validation system.
  3. Provided parallelism setting suggestions to help avoid OOM issues.

What's Changed

Full Changelog: v0.4.1...v0.5.0

v0.4.1

Choose a tag to compare

@pan-x-c pan-x-c released this 16 Jan 08:37
c9168b6

Overview

⭐️ Trinity-RFT repository has moved to agentscope-ai organization. You can find our new repository here🔗 and documentation here📚

This is a minor release that includes several bug fixes, feature improvements, and dependency upgrades.

Explorer

  1. Add OpenAI API support for Tinker backend, now users can use tinker backend to run agentic RL examples.
  2. Enhance the AgentScope Workflow Adapter to support features of AgentScope Tuner.

Trainer

  1. Update veRL to v0.7.0, which includes various performance improvements and bug fixes.
  2. Fix bugs in multi-stage resume and last checkpoint saving.
  3. Avoid preserving checkpoints for weight synchronization purpose to reduce storage usage.

Buffer

  1. Fix batch size mismatch issue in SQL buffer.

Others

  1. Introducing R3L, a systematic reflect-then-retry RL mechanism with efficient language-guided exploration and stable off-policy learning. [github repo], [paper]
  2. Improve documentation.

🚨 Breaking Changes

veRL has been upgraded to v0.7.0, and v0.5.0 is no longer supported.

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@pan-x-c pan-x-c released this 30 Dec 08:32
4b27dff

Overview

⭐️ Highlights

Add Tinker backend for users without GPUs to leverage Trinity-RFT. See example for more details.

Explorer

  1. Add Tinker SamplingClient backend for users without GPUs.
  2. Support vLLM v0.12.0 (v0.10.2 ~ v0.11.0 are still supported).
  3. Add a tinker-compatible sample API to the vLLM backend.
  4. Enhance serve mode for online RL.
  5. Fix several bugs in the vLLM OpenAI API.

Trainer

  1. Add Tinker TrainingClient backend for users without GPUs.
  2. Add a switch in PPOPolicyLossFn to ignore explorer-generated logprobs.

Buffer

  1. Support staleness control, which mitigates the negative effects of excessively off-policy data.
  2. Add a Streamlit viewer to visualize the experience data.

Others

  1. Add benchmark comparisons with veRL and rLLM.
  2. Refactor registration system to avoid loading all modules during initialization.
  3. Add algorithms: SAPO, on-policy distillation.
  4. Enhance debug mode; add --module viewer to visualize experience data generated during debugging.
  5. Add SwanLab monitor.
  6. Add tutorial on aligning configuration with veRL.
  7. Add tutorial on choosing model context length based on GPU and model size.
  8. Optimize README and Sphinx docs.

🚨 Breaking Changes

  1. The schema of SQL experience buffer is changed. Experience data saved in previous version cannot be used.
  2. The registration system has been refactored. Developers no longer need to use @REGISTRY.register_module to register modules. See Developer Guide for details.
  3. Tinker requires Python >= 3.11. (For users who do not use tinker, Python 3.10 is still supported)
  4. vLLM 0.12.0 requires CUDA >= 12.9. (For users using vLLM 0.11.0 or lower, CUDA 12.8 is still supported)
  5. Refactor SampleStrategy, add kwargs to its inputs, and change the output type from Experiences to List[Experience].
  6. Experiences (not Experience) is going to be deprecated

What's Changed

New Contributors

Full Changelog: v0.3.3...v0.4.0

v0.3.3

Choose a tag to compare

@pan-x-c pan-x-c released this 27 Nov 12:42
fbf6c96

Overview

This is a bug fix update that addresses many bugs present in versions 0.3. We recommend all users currently using versions 0.3.0/0.3.1/0.3.2 upgrade to this new version.

Explorer

  1. Over Rollout: This mechanism allows the explorer to proceed with fewer tasks than the full batch size. It effectively increases throughput in scenarios where some tasks take significantly longer to complete than others.
  2. Make the prompt truncation configurable
  3. Fix logprobs calculation when temperature is not 1.0
  4. Support rope scaling
  5. Support loading custom chat template files
  6. Support recording workflow running status
  7. Optimize the aggregation of workflow metrics

Trainer

  1. Update ppo policy loss calculation
  2. Fix loss aggregation for kl loss and entropy loss
  3. Optimize Trainer checkpoints saving

Buffer

  1. Support registering custom Task Reader
  2. Support token-level reward
  3. Fix some bugs

Others

  1. Add "Learn to Ask" and "Frozen Lake" examples
  2. Update Dockerfile

What's Changed

Full Changelog: v0.3.2...v0.3.3

v0.3.2

Choose a tag to compare

@pan-x-c pan-x-c released this 06 Nov 11:07
30ca213

Overview

This is a bug fix update that addresses many bugs present in versions 0.3. We recommend all users currently using versions 0.3.0 and 0.3.1 upgrade to this new version.

Buffer

  1. Support task scheduler and selector in task dataset
  2. Add BOTS: Online RL task selection for efficient LLM fine-tuning (paper).
  3. Extract the PriorityFunction of the replay buffer as a customizable module.

Explorer

  1. Update vLLM to v0.11.0
  2. Fix logprobs, top_k, top_p, temperature mismatch when using vLLM's OpenAI API server
  3. Fix torch cache conflicts when enforce_eager is False
  4. Simplify Workflow Inferface

Other Modules

  1. Optimize monitor metrics organization
  2. Optimize and simplify Config and config manager
  3. Add more algorithm and examples

What's Changed

New Contributors

Full Changelog: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@pan-x-c pan-x-c released this 17 Oct 07:47
c04b993

Overview

Agentic RL

  1. Add more agentic RL examples using agent frameworks (e.g. AgentScope)
  2. Provide Debug mode for workflow developers
  3. Add examples for RL in non-verifiable domain: trainable RULER reward, rubric-as-reward

Framework Enhancement

  1. Support multi-stage training
  2. Support using environment variables in configuration file
  3. Support LoRA
  4. Enhance checkpoint saving process
  5. Enhance experience replay mechanism for priority queue buffer
  6. Add algorithms: group-relative REINFORCE variants
  7. Update vLLM to 0.10.2

Documentation

  1. Add Chinese Docs
  2. Rewrite Developer Guide

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@pan-x-c pan-x-c released this 09 Sep 10:14
7d2323f

Overview

Framework Development

Buffer Module

  1. Use Operator Interface to replace the original AddStrategy. Operator can perform various transformations on experience data in a pipeline manner. [Breaking Change]
  2. Add TaskPipeline and ExperiencePipeline for task and experience data preprocessing.
  3. Support calling Data-Juicer services in both TaskPipeline and ExperiencePipeline, and resolve some dependency conflicts.
  4. Refactor SQL/FILE storage. SQL can store SFT/DPO/Rollout/Experience data. SQL and FILE support parsing multi-turn SFT data with tools. [Breaking Change]

Trainer Module

  1. Support FSDP2 backend
  2. Support Megatron backend
  3. Support Qwen2.5 VL muti-modal models [Experimental]

Explorer Module

  1. Support Qwen2.5 VL multi-modal models [Experimental]
  2. Workflow supports running in async mode.
  3. ModelWrapper provides openai.AsyncOpenAI interface.

Utils Module

  1. Enhance logger and support printing logs of different actors to different files under the checkpoint dir
  2. Enhance wandb and mlflow monitor

New Algorithms

  1. AsymRE
  2. sPPO
  3. RULER
  4. TOPR and CISPO

New Workflows

  1. General Multi-turn Email Search

Others

  1. Support uv
  2. Refactor README and documents
  3. Fix many bugs

What's Changed

Full Changelog: v0.2.1...v0.3.0