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
a9c37628
Commit
a9c37628
authored
Oct 22, 2025
by
zhuwenwen
Browse files
init is_quantization of load_column_parallel_weight (BasevLLMParameter)
parent
3efb2e1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vllm/model_executor/parameter.py
vllm/model_executor/parameter.py
+4
-4
No files found.
vllm/model_executor/parameter.py
View file @
a9c37628
...
...
@@ -91,10 +91,10 @@ class BasevLLMParameter(Parameter):
or
self
.
_is_1d_and_scalar
(
loaded_weight
))
self
.
data
.
copy_
(
loaded_weight
)
def
load_column_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
):
def
load_column_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]
=
False
):
self
.
_assert_and_load
(
loaded_weight
)
def
load_row_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]
=
Non
e
):
def
load_row_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]
=
Fals
e
):
self
.
_assert_and_load
(
loaded_weight
)
def
load_merged_column_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
**
kwargs
):
...
...
@@ -140,7 +140,7 @@ class _ColumnvLLMParameter(BasevLLMParameter):
def
output_dim
(
self
):
return
self
.
_output_dim
def
load_column_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]):
def
load_column_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]
=
False
):
if
not
envs
.
VLLM_USE_NN
or
len
(
self
.
data
.
shape
)
==
1
or
is_quantization
:
shard_size
=
self
.
data
.
shape
[
self
.
output_dim
]
else
:
...
...
@@ -238,7 +238,7 @@ class RowvLLMParameter(BasevLLMParameter):
def
input_dim
(
self
):
return
self
.
_input_dim
def
load_row_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]
=
Non
e
):
def
load_row_parallel_weight
(
self
,
loaded_weight
:
torch
.
Tensor
,
is_quantization
:
Optional
[
bool
]
=
Fals
e
):
if
not
envs
.
VLLM_USE_NN
or
is_quantization
:
shard_size
=
self
.
data
.
shape
[
self
.
input_dim
]
else
:
...
...
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