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
aaa3092f
Unverified
Commit
aaa3092f
authored
Mar 12, 2026
by
Jaewon
Committed by
GitHub
Mar 13, 2026
Browse files
[MoE] Add routing simulation override for MXFP4 quantized MoE (#33595)
Signed-off-by:
Jaewon Lee
<
jaewon@meta.com
>
parent
87985077
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/model_executor/layers/quantization/mxfp4.py
vllm/model_executor/layers/quantization/mxfp4.py
+6
-0
No files found.
vllm/model_executor/layers/quantization/mxfp4.py
View file @
aaa3092f
...
@@ -1109,6 +1109,12 @@ class Mxfp4MoEMethod(FusedMoEMethodBase):
...
@@ -1109,6 +1109,12 @@ class Mxfp4MoEMethod(FusedMoEMethodBase):
layer
.
eplb_state
.
logical_replica_count
,
layer
.
eplb_state
.
logical_replica_count
,
),
"MXFP4 are not supported with this configuration."
),
"MXFP4 are not supported with this configuration."
# Apply routing simulation strategy if specified.
# This applies to all monolithic backends (SM100_FI and TRITON).
routing_strategy
=
envs
.
VLLM_MOE_ROUTING_SIMULATION_STRATEGY
if
routing_strategy
==
"uniform_random"
:
router_logits
=
torch
.
rand_like
(
router_logits
)
if
(
if
(
self
.
mxfp4_backend
==
Mxfp4Backend
.
SM100_FI_MXFP4_MXFP8_TRTLLM
self
.
mxfp4_backend
==
Mxfp4Backend
.
SM100_FI_MXFP4_MXFP8_TRTLLM
or
self
.
mxfp4_backend
==
Mxfp4Backend
.
SM100_FI_MXFP4_BF16
or
self
.
mxfp4_backend
==
Mxfp4Backend
.
SM100_FI_MXFP4_BF16
...
...
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