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
fb22be58
Unverified
Commit
fb22be58
authored
Mar 27, 2025
by
Mengqing Cao
Committed by
GitHub
Mar 27, 2025
Browse files
[moe][quant] add weight name case for offset (#15515)
Signed-off-by:
Mengqing Cao
<
cmq0113@163.com
>
parent
7f301dd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/layers/fused_moe/layer.py
vllm/model_executor/layers/fused_moe/layer.py
+3
-2
No files found.
vllm/model_executor/layers/fused_moe/layer.py
View file @
fb22be58
...
@@ -699,8 +699,9 @@ class FusedMoE(torch.nn.Module):
...
@@ -699,8 +699,9 @@ class FusedMoE(torch.nn.Module):
tp_rank
=
self
.
tp_rank
)
tp_rank
=
self
.
tp_rank
)
return
return
# Case weight scales and zero_points
# Case weight scales, zero_points and offset
if
(
"scale"
in
weight_name
or
"zero"
in
weight_name
):
if
(
"scale"
in
weight_name
or
"zero"
in
weight_name
or
"offset"
in
weight_name
):
# load the weight scales and zp based on the quantization scheme
# load the weight scales and zp based on the quantization scheme
# supported weight scales/zp can be found in
# supported weight scales/zp can be found in
# FusedMoeWeightScaleSupported
# FusedMoeWeightScaleSupported
...
...
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