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
81d5bb76
Unverified
Commit
81d5bb76
authored
Oct 24, 2025
by
Isotr0py
Committed by
GitHub
Oct 23, 2025
Browse files
[Bugfix] Fix AWQ marlin layer skipping (#27416)
Signed-off-by:
Isotr0py
<
mozf@mail2.sysu.edu.cn
>
parent
0825197b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
vllm/model_executor/layers/quantization/awq_marlin.py
vllm/model_executor/layers/quantization/awq_marlin.py
+9
-2
No files found.
vllm/model_executor/layers/quantization/awq_marlin.py
View file @
81d5bb76
...
@@ -178,7 +178,10 @@ class AWQMarlinConfig(QuantizationConfig):
...
@@ -178,7 +178,10 @@ class AWQMarlinConfig(QuantizationConfig):
isinstance
(
layer
,
ParallelLMHead
)
and
self
.
lm_head_quantized
isinstance
(
layer
,
ParallelLMHead
)
and
self
.
lm_head_quantized
):
):
if
is_layer_skipped
(
if
is_layer_skipped
(
prefix
,
self
.
modules_to_not_convert
,
self
.
packed_modules_mapping
prefix
,
self
.
modules_to_not_convert
,
self
.
packed_modules_mapping
,
skip_with_substr
=
True
,
):
):
return
UnquantizedLinearMethod
()
return
UnquantizedLinearMethod
()
# Check if the layer is supported by AWQMarlin.
# Check if the layer is supported by AWQMarlin.
...
@@ -194,7 +197,11 @@ class AWQMarlinConfig(QuantizationConfig):
...
@@ -194,7 +197,11 @@ class AWQMarlinConfig(QuantizationConfig):
elif
isinstance
(
layer
,
FusedMoE
):
elif
isinstance
(
layer
,
FusedMoE
):
from
vllm.model_executor.layers.quantization.moe_wna16
import
MoeWNA16Config
from
vllm.model_executor.layers.quantization.moe_wna16
import
MoeWNA16Config
if
is_layer_skipped
(
prefix
,
getattr
(
self
,
"modules_to_not_convert"
,
[])):
if
is_layer_skipped
(
prefix
,
getattr
(
self
,
"modules_to_not_convert"
,
[]),
skip_with_substr
=
True
,
):
return
UnquantizedFusedMoEMethod
(
layer
.
moe_config
)
return
UnquantizedFusedMoEMethod
(
layer
.
moe_config
)
if
not
check_moe_marlin_supports_layer
(
layer
,
self
.
group_size
):
if
not
check_moe_marlin_supports_layer
(
layer
,
self
.
group_size
):
logger
.
warning_once
(
logger
.
warning_once
(
...
...
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