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
f8977c23
Unverified
Commit
f8977c23
authored
May 29, 2025
by
Chenyaaang
Committed by
GitHub
May 29, 2025
Browse files
Fix an error in dummy weight loading for quantization models (#18855)
Signed-off-by:
Chenyaaang
<
chenyangli@google.com
>
parent
f274581f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/model_loader/weight_utils.py
vllm/model_executor/model_loader/weight_utils.py
+1
-1
No files found.
vllm/model_executor/model_loader/weight_utils.py
View file @
f8977c23
...
...
@@ -696,7 +696,7 @@ def initialize_dummy_weights(
# Note: We avoid using torch.rank_like as it doesn't currently
# support the generator argument.
param
.
copy_
((
high
-
low
)
*
torch
.
rand
(
*
param
.
shape
,
torch
.
rand
(
param
.
shape
,
generator
=
generator
,
dtype
=
param
.
dtype
,
layout
=
param
.
layout
,
...
...
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