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
cabf690f
Commit
cabf690f
authored
Jan 16, 2026
by
zhuwenwen
Browse files
add SUPPORT_MOE_MARLIN_W16A16 to use moe marlin on bw
parent
c47f7e61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+5
-1
vllm/utils/__init__.py
vllm/utils/__init__.py
+1
-0
No files found.
vllm/platforms/rocm.py
View file @
cabf690f
...
...
@@ -16,8 +16,12 @@ from vllm.utils import cuda_device_count_stateless
from
.interface
import
DeviceCapability
,
Platform
,
PlatformEnum
,
_Backend
from
vllm.utils
import
SUPPORT_TC
from
vllm.utils
import
SUPPORT_TC
,
SUPPORT_MOE_MARLIN_W16A16
if
SUPPORT_MOE_MARLIN_W16A16
:
os
.
environ
[
'VLLM_USE_MARLIN_W16A16_MOE'
]
=
'1'
os
.
environ
[
'MOE_NN'
]
=
'0'
if
not
SUPPORT_TC
:
os
.
environ
[
'VLLM_USE_V1'
]
=
'0'
os
.
environ
[
'VLLM_USE_FLASH_ATTN_PA'
]
=
'0'
...
...
vllm/utils/__init__.py
View file @
cabf690f
...
...
@@ -87,6 +87,7 @@ MULTIMODAL_MODEL_MAX_NUM_BATCHED_TOKENS = 5120
GPU_ARCH
=
torch
.
cuda
.
get_device_properties
(
"cuda"
).
gcnArchName
SUPPORT_TC
=
any
(
arch
in
GPU_ARCH
for
arch
in
[
"gfx928"
,
"gfx936"
,
"gfx938"
])
SUPPORT_MOE_MARLIN_W16A16
=
any
(
arch
in
GPU_ARCH
for
arch
in
[
"gfx936"
])
def
_generate_random_int8
(
tensor
:
torch
.
Tensor
,
...
...
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