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
1df491c5
Unverified
Commit
1df491c5
authored
May 12, 2025
by
Michael Goin
Committed by
GitHub
May 13, 2025
Browse files
[Bugfix] Fixes for new marlin moe usage (#18017)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
d8487ef5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py
...quantization/compressed_tensors/compressed_tensors_moe.py
+3
-2
vllm/model_executor/layers/quantization/gptq_marlin.py
vllm/model_executor/layers/quantization/gptq_marlin.py
+2
-2
No files found.
vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py
View file @
1df491c5
...
...
@@ -57,9 +57,10 @@ class CompressedTensorsMoEMethod(FusedMoEMethodBase):
"input_activations"
)
if
quant_config
.
_is_wNa16_group_channel
(
weight_quant
,
input_quant
):
# group_size=None means channelwise
group_size
=
weight_quant
.
group_size
or
-
1
# Prefer to use the MarlinMoE kernel when it is supported.
if
not
check_moe_marlin_supports_layer
(
layer
,
weight_quant
.
group_size
):
if
not
check_moe_marlin_supports_layer
(
layer
,
group_size
):
if
(
weight_quant
.
strategy
in
QuantizationStrategy
.
GROUP
and
weight_quant
.
actorder
in
(
ActivationOrdering
.
GROUP
,
ActivationOrdering
.
DYNAMIC
)):
...
...
vllm/model_executor/layers/quantization/gptq_marlin.py
View file @
1df491c5
...
...
@@ -610,9 +610,9 @@ class GPTQMarlinMoEMethod(FusedMoEMethodBase):
activation
:
str
=
"silu"
,
)
->
torch
.
Tensor
:
assert
activation
==
"silu"
,
"Only SiLU activation is supported."
if
apply_router_weight_on_input
is
not
None
:
if
apply_router_weight_on_input
:
raise
NotImplementedError
(
"Apply router weight on input is not supported for"
"Apply router weight on input is not supported for
"
"fused Marlin MoE method."
)
topk_weights
,
topk_ids
=
FusedMoE
.
select_experts
(
...
...
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