[Kernel] Migrate GPTQ-Marlin GEMM kernel to JIT (#18067)

This commit is contained in:
Linyu Wu
2026-02-06 08:31:42 +08:00
committed by GitHub
parent ef1d0ea885
commit aa390d2762
12 changed files with 4022 additions and 2 deletions
@@ -43,7 +43,7 @@ except ImportError:
_is_cuda = is_cuda()
if _is_cuda:
from sgl_kernel import gptq_marlin_gemm
from sglang.jit_kernel.gptq_marlin import gptq_marlin_gemm
logger = logging.getLogger(__name__)
@@ -17,7 +17,9 @@ from sglang.srt.utils import is_cuda
_is_cuda = is_cuda()
if _is_cuda:
from sgl_kernel import gptq_marlin_gemm, gptq_marlin_repack
from sgl_kernel import gptq_marlin_repack
from sglang.jit_kernel.gptq_marlin import gptq_marlin_gemm
ScalarType, scalar_types = get_scalar_types()