[AMD] Fail gracefully when AITER is unavailable gfx90a GPUs (#7187)
This commit is contained in:
1 parent
9abe1163ac
commit
076313bd09
1 file changed
+1
-1
@@ -88,7 +88,7 @@ _is_fp8_fnuz = is_fp8_fnuz()
|
||||
_use_hip_int4 = get_bool_env_var("SGLANG_INT4_WEIGHT")
|
||||
_use_aiter = get_bool_env_var("SGLANG_USE_AITER") and _is_hip
|
||||
|
||||
if _is_hip:
|
||||
if _is_hip and (_use_aiter or _use_hip_int4):
|
||||
from aiter import ActivationType, QuantType
|
||||
from aiter.fused_moe import fused_moe
|
||||
from aiter.fused_moe_bf16_asm import asm_moe, ck_moe_2stages
|
||||
|
||||
Reference in new issue
Block a user