Skip to content

Commit 2ff79e4

Browse files
committed
fix env
Signed-off-by: MengqingCao <[email protected]>
1 parent 46bbe9f commit 2ff79e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/multicard/test_data_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
reason="Data parallel only support on v1")
3434
@pytest.mark.parametrize("model", MODELS)
3535
@pytest.mark.parametrize("max_tokens", [32])
36+
@patch.dict(os.environ, {"ASCEND_RT_VISIBLE_DEVICES": "0,1"})
3637
def test_data_parallel_inference(model, max_tokens):
3738
script = "examples/offline_data_parallel.py"
3839

39-
os.environ["ASCEND_RT_VISIBLE_DEVICES"] = "0,1"
4040
env = os.environ.copy()
4141

4242
cmd = [

0 commit comments

Comments
 (0)