-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
[Bugfix] Fix _synced_weight_loader #24565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bugfix] Fix _synced_weight_loader #24565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request fixes a bug in _synced_weight_loader where the return value from the wrapped original_weight_loader was being discarded. The change correctly captures this return value and returns it after the synchronization logic. This is a critical fix as callers, especially in TPU environments where this wrapper is used, may rely on the weight loader's return value, and were previously receiving None. The fix is correct and well-isolated.
465f329 to
f0efeeb
Compare
yaochengji
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
916bb80 to
edbab1b
Compare
Fixes a bug when the vLLM expects weight loader to return output when using return_success=True Signed-off-by: Kyuyeun Kim <kyuyeunk@google.com>
edbab1b to
af0ca8a
Compare
Signed-off-by: Kyuyeun Kim <kyuyeunk@google.com>
Signed-off-by: Kyuyeun Kim <kyuyeunk@google.com>
Signed-off-by: Kyuyeun Kim <kyuyeunk@google.com>
Signed-off-by: Kyuyeun Kim <kyuyeunk@google.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Signed-off-by: Kyuyeun Kim <kyuyeunk@google.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Fixes a bug when the vLLM expects weight loader to return output when using return_success=True
Purpose
Fixes a bug when the vLLM expects weight loader to return output when using
return_success=TrueExample: qwen3_moe.py