[Piecewise CUDA Graph] Support W4A8 (#13179)
This commit is contained in:
@@ -45,6 +45,10 @@ _use_aiter = get_bool_env_var("SGLANG_USE_AITER") and _is_hip
|
||||
if _is_cuda:
|
||||
from sgl_kernel import sgl_per_tensor_quant_fp8, sgl_per_token_quant_fp8
|
||||
|
||||
@torch.library.register_fake("sgl_kernel::sgl_per_tensor_quant_fp8")
|
||||
def _sgl_per_tensor_quant_fp8(input, output_q, output_s, is_static):
|
||||
return
|
||||
|
||||
# Temporary
|
||||
try:
|
||||
from sgl_kernel import sgl_per_token_group_quant_8bit
|
||||
|
||||
Reference in New Issue
Block a user