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
24962bed
Commit
24962bed
authored
Dec 04, 2025
by
zhuwenwen
Browse files
fix MergedColumnParallelLinear weight_loader
parent
7f1d5aff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/linear.py
vllm/model_executor/layers/linear.py
+1
-1
No files found.
vllm/model_executor/layers/linear.py
View file @
24962bed
...
@@ -930,7 +930,7 @@ class MergedColumnParallelLinear(ColumnParallelLinear):
...
@@ -930,7 +930,7 @@ class MergedColumnParallelLinear(ColumnParallelLinear):
shard_offset
=
loaded_weight
.
shape
[
output_dim
]
*
\
shard_offset
=
loaded_weight
.
shape
[
output_dim
]
*
\
loaded_shard_id
loaded_shard_id
if
not
envs
.
VLLM_USE_NN
or
self
.
is_quantization
:
if
not
envs
.
VLLM_USE_NN
or
self
.
is_quantization
or
(
envs
.
VLLM_USE_NN
and
param_data
.
dim
()
==
1
)
:
param_data
=
param_data
.
narrow
(
output_dim
,
shard_offset
,
shard_size
)
param_data
=
param_data
.
narrow
(
output_dim
,
shard_offset
,
shard_size
)
else
:
else
:
param_data
=
param_data
.
narrow
(
int
(
not
(
output_dim
)),
shard_offset
,
shard_size
)
param_data
=
param_data
.
narrow
(
int
(
not
(
output_dim
)),
shard_offset
,
shard_size
)
...
...
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