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
69f8a0ea
Unverified
Commit
69f8a0ea
authored
Jan 14, 2026
by
Rabi Mishra
Committed by
GitHub
Jan 13, 2026
Browse files
fix(rocm): Use refresh_env_variables() for rocm_aiter_ops in test_moe (#31711)
Signed-off-by:
rabi
<
ramishra@redhat.com
>
parent
f28125d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
tests/kernels/moe/test_moe.py
tests/kernels/moe/test_moe.py
+6
-10
No files found.
tests/kernels/moe/test_moe.py
View file @
69f8a0ea
...
@@ -6,8 +6,6 @@ Run `pytest tests/kernels/test_moe.py`.
...
@@ -6,8 +6,6 @@ Run `pytest tests/kernels/test_moe.py`.
"""
"""
import
functools
import
functools
import
importlib
import
sys
from
collections.abc
import
Callable
from
collections.abc
import
Callable
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
from
typing
import
Any
from
typing
import
Any
...
@@ -592,15 +590,13 @@ def test_mixtral_moe(
...
@@ -592,15 +590,13 @@ def test_mixtral_moe(
"""Make sure our Mixtral MoE implementation agrees with the one from
"""Make sure our Mixtral MoE implementation agrees with the one from
huggingface."""
huggingface."""
#
clear the cache before ev
er
y
t
est
#
Explicitly set AITER env var based on test paramet
er t
o ensure
#
Force reload aiter_ops to pick up the new
environment
variables.
#
consistent behavior regardless of external
environment
if
"rocm_aiter_ops"
in
sys
.
modules
:
monkeypatch
.
setenv
(
"VLLM_ROCM_USE_AITER"
,
"1"
if
use_rocm_aiter
else
"0"
)
importlib
.
reload
(
rocm_aiter_ops
)
rocm_aiter_ops
.
refresh_env_variables
(
)
if
use_rocm_aiter
:
if
use_rocm_aiter
and
dtype
==
torch
.
float32
:
monkeypatch
.
setenv
(
"VLLM_ROCM_USE_AITER"
,
"1"
)
pytest
.
skip
(
"AITER ROCm test skip for float32"
)
if
dtype
==
torch
.
float32
:
pytest
.
skip
(
"AITER ROCm test skip for float32"
)
monkeypatch
.
setenv
(
"RANK"
,
"0"
)
monkeypatch
.
setenv
(
"RANK"
,
"0"
)
monkeypatch
.
setenv
(
"LOCAL_RANK"
,
"0"
)
monkeypatch
.
setenv
(
"LOCAL_RANK"
,
"0"
)
...
...
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