Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
70416001
Unverified
Commit
70416001
authored
Oct 21, 2025
by
Yineng Zhang
Committed by
GitHub
Oct 21, 2025
Browse files
fix: resolve flashinfer 0.4.1 import (#11940)
parent
87a92e45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/sglang/srt/layers/quantization/modelopt_quant.py
python/sglang/srt/layers/quantization/modelopt_quant.py
+3
-3
No files found.
python/sglang/srt/layers/quantization/modelopt_quant.py
View file @
70416001
...
@@ -1061,8 +1061,8 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
...
@@ -1061,8 +1061,8 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
):
):
from
flashinfer
import
nvfp4_block_scale_interleave
from
flashinfer
import
nvfp4_block_scale_interleave
from
flashinfer.fused_moe.core
import
(
from
flashinfer.fused_moe.core
import
(
_maybe_get_cached_w2_permute_indices
,
_maybe_get_cached_w3_w1_permute_indices
,
_maybe_get_cached_w3_w1_permute_indices
,
get_w2_permute_indices_with_cache
,
)
)
"""Prepare quantized weights for kernel (done offline with weights)."""
"""Prepare quantized weights for kernel (done offline with weights)."""
...
@@ -1123,7 +1123,7 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
...
@@ -1123,7 +1123,7 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
)
)
)
)
permute_indices
=
_maybe_get_cached
_w2_permute_indices
(
permute_indices
=
get
_w2_permute_indices
_with_cache
(
self
.
_cache_permute_indices
,
self
.
_cache_permute_indices
,
gemm2_weights_fp4
[
i
].
view
(
torch
.
uint8
),
gemm2_weights_fp4
[
i
].
view
(
torch
.
uint8
),
epilogue_tile_m
,
epilogue_tile_m
,
...
@@ -1134,7 +1134,7 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
...
@@ -1134,7 +1134,7 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
.
contiguous
()
.
contiguous
()
)
)
permute_sf_indices
=
_maybe_get_cached
_w2_permute_indices
(
permute_sf_indices
=
get
_w2_permute_indices
_with_cache
(
self
.
_cache_permute_indices
,
self
.
_cache_permute_indices
,
gemm2_scales_linear_fp4
[
i
].
view
(
torch
.
uint8
),
gemm2_scales_linear_fp4
[
i
].
view
(
torch
.
uint8
),
epilogue_tile_m
,
epilogue_tile_m
,
...
...
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