Skip to content

Commit d13a57f

Browse files
committed
Cleanup
1 parent 6759615 commit d13a57f

2 files changed

Lines changed: 3 additions & 24 deletions

File tree

flashinfer/cute_dsl/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636
AddRMSNormFP4QuantKernel,
3737
)
3838

39-
# MXFP8 Quantization - re-exported from quantization module for backward compatibility
40-
from ..quantization.mxfp8_quantize_cute_dsl import (
41-
mxfp8_quantize_cute_dsl,
42-
MXFP8QuantizeLinearKernel,
43-
MXFP8QuantizeSwizzledKernel,
44-
)
45-
4639
__all__ = [
4740
# Utils (always available)
4841
"is_cute_dsl_available",
@@ -63,8 +56,4 @@
6356
# Add + RMSNorm + FP4 Quantization
6457
"add_rmsnorm_fp4quant",
6558
"AddRMSNormFP4QuantKernel",
66-
# MXFP8 Quantization
67-
"mxfp8_quantize_cute_dsl",
68-
"MXFP8QuantizeLinearKernel",
69-
"MXFP8QuantizeSwizzledKernel",
7059
]

flashinfer/quantization/__init__.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@
3636
)
3737

3838
# CuTe-DSL kernels (conditionally exported)
39+
# Note: is_cute_dsl_available is used internally but not re-exported;
40+
# users should import from flashinfer.cute_dsl
3941
from ..cute_dsl import is_cute_dsl_available
4042

4143
if is_cute_dsl_available():
42-
from .mxfp8_quantize_cute_dsl import (
43-
mxfp8_quantize_cute_dsl,
44-
MXFP8QuantizeLinearKernel,
45-
MXFP8QuantizeSwizzledKernel,
46-
_get_compiled_kernel_linear,
47-
_get_compiled_kernel_swizzled,
48-
)
44+
from .mxfp8_quantize_cute_dsl import mxfp8_quantize_cute_dsl
4945

5046
__all__ = [
5147
# Packbits
@@ -69,15 +65,9 @@
6965
"shuffle_matrix_sf_a",
7066
"scaled_fp4_grouped_quantize",
7167
"get_fp4_quantization_module",
72-
# CuTe-DSL availability check
73-
"is_cute_dsl_available",
7468
]
7569

7670
if is_cute_dsl_available():
7771
__all__ += [
7872
"mxfp8_quantize_cute_dsl",
79-
"MXFP8QuantizeLinearKernel",
80-
"MXFP8QuantizeSwizzledKernel",
81-
"_get_compiled_kernel_linear",
82-
"_get_compiled_kernel_swizzled",
8373
]

0 commit comments

Comments
 (0)