revert: Discard weight when finish generation in the main loop (#2495) - #2658
Merged
Merged
Conversation
This reverts commit 2a2e7c1 which introduced vLLM sleep level 2 (weight discarding) for colocated inference. The optimization caused silent failures with DAPO and speculative decoding (issue #2646). Reverting until the feature is fully tested against these cases. Closes #2646 Signed-off-by: Terry Kong <terryk@nvidia.com>
Collaborator
Author
|
/ok to test fd42793 |
guyueh1
approved these changes
Jun 1, 2026
guyueh1
left a comment
Contributor
There was a problem hiding this comment.
no problem with the revert
pengdurice
pushed a commit
to pengdurice/RL
that referenced
this pull request
Jun 12, 2026
…A-NeMo#2495) (NVIDIA-NeMo#2658) Signed-off-by: Terry Kong <terryk@nvidia.com>
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?
Reverts #2495 which introduced vLLM sleep level 2 (weight discarding) for colocated inference. The optimization caused silent failures with DAPO and speculative decoding (#2646). Reverting until the feature is fully tested against these cases.
Changes
discard_weights=colocated_inferencefromfinish_generation()call and removePOLICY_GENERATION_STALE = Trueflagkwargs = {}and**kwargspassthrough infinish_generationdiscard_weightsparam fromsleep(), revert tolevel=1discard_weightsparam fromsleep_async(), revert tolevel=1discard_weights=TrueassertionIssues
Related to #2646
Before your PR is "Ready for review"
Pre checks: