Repository navigation
Remove the experimental GRPO-with-replay-buffer trainer - #7132
Merged
Merged
Conversation
Removes `trl.experimental.grpo_with_replay_buffer` (`GRPOWithReplayBufferTrainer`, `GRPOWithReplayBufferConfig`, `ReplayBuffer`), added in #4060.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
βΉοΈ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with π while any review is running, comments if it has suggestions, and reacts with π once all reviews finish with no findings. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
30 tasks done
This was referenced Sep 18, 2026
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
trl.experimental.grpo_with_replay_buffer(GRPOWithReplayBufferTrainer,GRPOWithReplayBufferConfig,ReplayBuffer), added in #4060.Why
High maintenance cost.
GRPOWithReplayBufferTrainersubclassesGRPOTrainerand overrides_generate_and_score_completions, the surface that churns most (grpo_trainer.py: 208 commits since the replay buffer landed). The override is a hand-copied version of that method, and it has drifted: 385 of 616 lines differ from the GRPO original today.31 commits touched
trl/experimental/grpo_with_replay_buffer/: GRPO work re-applied by hand inside the copy: #4157 and #4203 (images), #4391 (image insertion), #4300 (agent training), #6001 and #6002 (multiple environments), #6238 (environment-owned reward), #6083 (MoE aux loss), #6352 (log_multimodal), #6439 (truncated-completion loss normalization), #6693 (Nonelogprobs from vLLM). #4158 refactored GRPO and RLOO specifically to make the override possible.Low adoption. 8 genuine trainings in the last 2 months as per our telemetry, ~1 year after landing (2025-09-24).
Notes
trl.experimentalhas no stability guarantee, so no deprecation cycle. The code stays in git history for anyone wanting to revive it.Note
Medium Risk
Breaking change for the small set of imports of
GRPOWithReplayBufferTrainer; core GRPO training is unchanged.Overview
Removes the experimental
trl.experimental.grpo_with_replay_bufferpackage, includingGRPOWithReplayBufferTrainer,GRPOWithReplayBufferConfig, andReplayBuffer, along with its dedicated tests and documentation page.Public surface is trimmed by dropping
GRPOWithReplayBufferTrainerfrom the experimental trainer list in docs (index.md,_toctree.yml) and from the telemetry allowlist inbase_trainer.py. Users who relied on this trainer must switch to standardGRPOTraineror recover the code from git history;trl.experimentalhad no stability guarantee, so there is no deprecation shim.Reviewed by Cursor Bugbot for commit 2b6f306. Bugbot is set up for automated code reviews on this repo. Configure here.