Repository navigation
Conversation
Add checkpointing.load_replay_buffer so async GRPO resumes can start with an empty replay buffer while restoring the remaining checkpoint state. Keep restoration enabled by default and for legacy configs that omit the field. Signed-off-by: Yi-Fu Wu <[email protected]>
Contributor
Author
|
/ok to test 4256540 |
4 tasks
yfw
marked this pull request as draft
August 13, 2026 20:30
pjin-nvidia
pushed a commit
that referenced
this pull request
Aug 24, 2026
…ier path Resuming from a restored replay buffer biases the next steps toward short-rollout prompts: a prompt group completes only when its longest rollout finishes, so the groups sitting in the buffer at a save boundary are systematically the short ones, while the long-rollout groups were in flight. checkpointing.load_replay_buffer=false opts out of the restore, and with frontier-aligned checkpoints that is simply the empty-retained-set case of the same resume path: the dataloader is rewound to the trained frontier and the whole buffered window is regenerated fresh under one weight version — unbiased composition at the cost of re-rolling the window. No prompt is skipped either way. Restoration stays enabled by default and for legacy configs that omit the field. On a legacy (pre-frontier) checkpoint the option only skips the restore, matching the previous cursor semantics. The knob is declared in the exemplar YAML and the CheckpointingConfig Attributes block, read with a None-tolerant .get (no call-site default), and the restore block is extracted into _maybe_restore_async_replay_buffer_checkpoint for testability. Docs: async-grpo.md checkpointing section updated to describe frontier-aligned saves, lossless restores, and the new option. This supersedes the standalone load_replay_buffer change in #3583, which skipped the buffered window on resume because the dataloader cursor stayed advanced; here the window is regenerated instead. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Yi-Fu Wu <[email protected]> Signed-off-by: Peter Jin <[email protected]>
This branch has not been deployed
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.
What does this PR do ?
Add checkpointing.load_replay_buffer so async GRPO resumes can start with an empty replay buffer while restoring the remaining checkpoint state. Keep restoration enabled by default and for legacy configs that omit the field.
Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information