Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
076313bd
Unverified
Commit
076313bd
authored
Jul 07, 2025
by
Haohui Mai
Committed by
GitHub
Jul 07, 2025
Browse files
[AMD] Fail gracefully when AITER is unavailable gfx90a GPUs (#7187)
parent
9abe1163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/quantization/fp8.py
python/sglang/srt/layers/quantization/fp8.py
+1
-1
No files found.
python/sglang/srt/layers/quantization/fp8.py
View file @
076313bd
...
@@ -88,7 +88,7 @@ _is_fp8_fnuz = is_fp8_fnuz()
...
@@ -88,7 +88,7 @@ _is_fp8_fnuz = is_fp8_fnuz()
_use_hip_int4
=
get_bool_env_var
(
"SGLANG_INT4_WEIGHT"
)
_use_hip_int4
=
get_bool_env_var
(
"SGLANG_INT4_WEIGHT"
)
_use_aiter
=
get_bool_env_var
(
"SGLANG_USE_AITER"
)
and
_is_hip
_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
import
ActivationType
,
QuantType
from
aiter.fused_moe
import
fused_moe
from
aiter.fused_moe
import
fused_moe
from
aiter.fused_moe_bf16_asm
import
asm_moe
,
ck_moe_2stages
from
aiter.fused_moe_bf16_asm
import
asm_moe
,
ck_moe_2stages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment