Support piecewise cuda graph for dsv3 fp4 (#15531)

This commit is contained in:
Ke Bao
2025-12-21 14:50:32 +08:00
committed by GitHub
parent 6014365564
commit 8fe3e37468
7 changed files with 148 additions and 16 deletions
@@ -17,7 +17,6 @@ from sglang.srt.layers.quantization.compressed_tensors.schemes import (
)
from sglang.srt.layers.quantization.modelopt_quant import (
FLASHINFER_FP4_GEMM_BACKEND,
_sglang_fp4_gemm,
enable_flashinfer_fp4_gemm,
fp4_quantize,
)
@@ -154,7 +153,7 @@ class CompressedTensorsW4A4Fp4(CompressedTensorsScheme):
w = layer.weight_packed.T
w_blockscale = layer.weight_scale.T
out = _sglang_fp4_gemm(
out = torch.ops.sglang.fp4_gemm(
x_fp4,
w,
x_blockscale,