Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
ed5ae4aa
Unverified
Commit
ed5ae4aa
authored
Sep 11, 2025
by
Kyuyeun Kim
Committed by
GitHub
Sep 11, 2025
Browse files
[Bugfix] Fix _synced_weight_loader (#24565)
Signed-off-by:
Kyuyeun Kim
<
kyuyeunk@google.com
>
parent
0fc36463
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/model_executor/utils.py
vllm/model_executor/utils.py
+2
-1
No files found.
vllm/model_executor/utils.py
View file @
ed5ae4aa
...
@@ -52,10 +52,11 @@ def set_weight_attrs(
...
@@ -52,10 +52,11 @@ def set_weight_attrs(
def
_make_synced_weight_loader
(
original_weight_loader
):
def
_make_synced_weight_loader
(
original_weight_loader
):
def
_synced_weight_loader
(
param
,
*
args
,
**
kwargs
):
def
_synced_weight_loader
(
param
,
*
args
,
**
kwargs
):
original_weight_loader
(
param
,
*
args
,
**
kwargs
)
out
=
original_weight_loader
(
param
,
*
args
,
**
kwargs
)
# torch._sync doesn't support, is not needed for CPU tensors.
# torch._sync doesn't support, is not needed for CPU tensors.
if
param
.
device
!=
torch
.
device
(
"cpu"
):
if
param
.
device
!=
torch
.
device
(
"cpu"
):
torch
.
_sync
(
param
)
torch
.
_sync
(
param
)
return
out
return
_synced_weight_loader
return
_synced_weight_loader
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment