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
de02b07d
Unverified
Commit
de02b07d
authored
Aug 26, 2025
by
Michael Goin
Committed by
GitHub
Aug 27, 2025
Browse files
[Bugfix] Lazy import gpt_oss_triton_kernels_moe for mxfp4 (#23678)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
eb199516
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/layers/quantization/mxfp4.py
vllm/model_executor/layers/quantization/mxfp4.py
+2
-2
No files found.
vllm/model_executor/layers/quantization/mxfp4.py
View file @
de02b07d
...
@@ -10,8 +10,6 @@ from vllm.config import get_current_vllm_config
...
@@ -10,8 +10,6 @@ from vllm.config import get_current_vllm_config
from
vllm.logger
import
init_logger
from
vllm.logger
import
init_logger
from
vllm.model_executor.layers.fused_moe
import
(
FusedMoE
,
FusedMoEConfig
,
from
vllm.model_executor.layers.fused_moe
import
(
FusedMoE
,
FusedMoEConfig
,
FusedMoEMethodBase
)
FusedMoEMethodBase
)
from
vllm.model_executor.layers.fused_moe.gpt_oss_triton_kernels_moe
import
(
triton_kernel_moe_forward
)
from
vllm.model_executor.layers.linear
import
(
LinearBase
,
from
vllm.model_executor.layers.linear
import
(
LinearBase
,
UnquantizedLinearMethod
)
UnquantizedLinearMethod
)
from
vllm.model_executor.layers.quantization
import
QuantizationMethods
from
vllm.model_executor.layers.quantization
import
QuantizationMethods
...
@@ -557,6 +555,8 @@ class Mxfp4MoEMethod(FusedMoEMethodBase):
...
@@ -557,6 +555,8 @@ class Mxfp4MoEMethod(FusedMoEMethodBase):
)[
0
]
)[
0
]
return
trtllm_gen_output
return
trtllm_gen_output
else
:
else
:
from
vllm.model_executor.layers.fused_moe.gpt_oss_triton_kernels_moe
import
(
# noqa: E501
triton_kernel_moe_forward
)
return
triton_kernel_moe_forward
(
return
triton_kernel_moe_forward
(
hidden_states
=
x
,
hidden_states
=
x
,
w1
=
self
.
w13_weight_triton_tensor
,
w1
=
self
.
w13_weight_triton_tensor
,
...
...
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