feat(grpo): asynchronous weight synchronization with vLLM background streams#67
Open
RUFFY-369 wants to merge 16 commits into
Open
feat(grpo): asynchronous weight synchronization with vLLM background streams#67RUFFY-369 wants to merge 16 commits into
RUFFY-369 wants to merge 16 commits into
Conversation
…rom integration branch
…ntegration branch
…rnization baseline
- Purged AI-generated Unicode separators and ASCII decorative boxes. - Removed conversational fillers and redundant documentation artifacts. - Standardized indentation and modernized technical documentation. - Hardened weight-sync patch layer with professional engineering standards.
…structure" This reverts commit 3ac4dba.
…ndling.py" This reverts commit 336000d.
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.
Summary
This PR implements Asynchronous Weight Synchronization for the GRPO trainer. It introduces a non-blocking communication layer that allows model weights to be pushed to the inference servers (vLLM/SGLang) in the background, significantly reducing pipeline "bubbles" and increasing overall training throughput.
Technical Context
Standard weight synchronization is a blocking operation that stalls the training loop while data is sent over the network. For large models, this synchronization time can account for a significant portion of the total step time.
This implementation introduces an asynchronous synchronization worker that:
Key Changes
Modernization & Compatibility
To support modern hardware and the latest PyTorch standards, this PR includes foundational modernization for PyTorch 2.5.1+.
Verification Results (vast.ai)