Skip to content

Commit f1fe6f6

Browse files
committed
Update tests.
1 parent f9c5423 commit f1fe6f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unitary/default_setup/jobs/test_jobs_pytorch_ddp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ def test_create_job_runs(self, patched_run, *args):
137137
[
138138
{
139139
"display_name": "None-0",
140-
"environment_variables": {"RANK": "0", "WORLD_SIZE": "2"},
140+
"environment_variables": {"NODE_RANK": "0", "WORLD_SIZE": "2"},
141141
},
142142
{
143143
"display_name": "None-1",
144144
"environment_variables": {
145-
"RANK": "1",
145+
"NODE_RANK": "1",
146146
"WORLD_SIZE": "2",
147147
"MAIN_JOB_RUN_OCID": test_ocid,
148148
},

tests/unitary/with_extras/jobs/test_pytorch_ddp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_install_deps(self, run_command):
108108
cmd_list,
109109
[
110110
"pip install -r abc/requirements.txt",
111-
"pip install abc==1.0",
111+
"pip install 'abc==1.0'",
112112
],
113113
)
114114

@@ -172,7 +172,7 @@ def init_runner(self):
172172
driver.CONST_ENV_DEEPSPEED: "1",
173173
driver.OCI__WORKER_COUNT: "1",
174174
driver.CONST_ENV_LAUNCH_CMD: "accelerate launch train.py --data abc",
175-
"RANK": "0",
175+
"NODE_RANK": "0",
176176
},
177177
)
178178
@mock.patch("ads.jobs.templates.driver_pytorch.DeepSpeedRunner.run_deepspeed_host")

0 commit comments

Comments
 (0)