Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
21723d7a
Commit
21723d7a
authored
Apr 29, 2026
by
zhuwenwen
Browse files
[Feature] Support fp8 on gfx938 (for fp8 moe backend)
parent
4f799f11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+5
-1
No files found.
vllm/platforms/rocm.py
View file @
21723d7a
...
@@ -188,6 +188,7 @@ _ON_GFX1X = any(arch in _GCN_ARCH for arch in ["gfx11", "gfx12"])
...
@@ -188,6 +188,7 @@ _ON_GFX1X = any(arch in _GCN_ARCH for arch in ["gfx11", "gfx12"])
_ON_GFX12X
=
any
(
arch
in
_GCN_ARCH
for
arch
in
[
"gfx12"
])
_ON_GFX12X
=
any
(
arch
in
_GCN_ARCH
for
arch
in
[
"gfx12"
])
_ON_MI3XX
=
any
(
arch
in
_GCN_ARCH
for
arch
in
[
"gfx942"
,
"gfx950"
])
_ON_MI3XX
=
any
(
arch
in
_GCN_ARCH
for
arch
in
[
"gfx942"
,
"gfx950"
])
_ON_GFX9
=
any
(
arch
in
_GCN_ARCH
for
arch
in
[
"gfx90a"
,
"gfx942"
,
"gfx950"
])
_ON_GFX9
=
any
(
arch
in
_GCN_ARCH
for
arch
in
[
"gfx90a"
,
"gfx942"
,
"gfx950"
])
_ON_GFX938
=
"gfx938"
in
_GCN_ARCH
_ON_GFX90A
=
"gfx90a"
in
_GCN_ARCH
_ON_GFX90A
=
"gfx90a"
in
_GCN_ARCH
_ON_GFX942
=
"gfx942"
in
_GCN_ARCH
_ON_GFX942
=
"gfx942"
in
_GCN_ARCH
_ON_GFX950
=
"gfx950"
in
_GCN_ARCH
_ON_GFX950
=
"gfx950"
in
_GCN_ARCH
...
@@ -279,6 +280,9 @@ def on_mi3xx() -> bool:
...
@@ -279,6 +280,9 @@ def on_mi3xx() -> bool:
def
on_gfx9
()
->
bool
:
def
on_gfx9
()
->
bool
:
return
_ON_GFX9
return
_ON_GFX9
def
on_gfx938
()
->
bool
:
return
_ON_GFX938
def
on_gfx90a
()
->
bool
:
def
on_gfx90a
()
->
bool
:
return
_ON_GFX90A
return
_ON_GFX90A
...
@@ -802,7 +806,7 @@ class RocmPlatform(Platform):
...
@@ -802,7 +806,7 @@ class RocmPlatform(Platform):
@
classmethod
@
classmethod
def
supports_fp8
(
cls
)
->
bool
:
def
supports_fp8
(
cls
)
->
bool
:
return
on_gfx9
()
or
on_gfx12x
()
return
on_gfx938
()
or
on_gfx9
()
or
on_gfx12x
()
@
classmethod
@
classmethod
def
is_fp8_fnuz
(
cls
)
->
bool
:
def
is_fp8_fnuz
(
cls
)
->
bool
:
...
...
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