fix(quantization): add sgl_kernel fallback for FP4 quantize on Blackwell GPUs (#17816)
This commit is contained in:
@@ -66,12 +66,15 @@ if TYPE_CHECKING:
|
||||
StandardDispatchOutput,
|
||||
)
|
||||
|
||||
fp4_quantize = None
|
||||
try:
|
||||
if is_sm120_supported():
|
||||
from flashinfer import fp4_quantize
|
||||
try:
|
||||
from flashinfer import fp4_quantize
|
||||
except ImportError:
|
||||
from sgl_kernel import scaled_fp4_quant as fp4_quantize
|
||||
else:
|
||||
from sgl_kernel import scaled_fp4_quant as fp4_quantize
|
||||
|
||||
except ImportError:
|
||||
fp4_quantize = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user