Skip to content

Commit b983b51

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 2a13103 + 2fc5004 commit b983b51

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/kfto/resources/mnist_kfto.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"metadata": {},
5353
"outputs": [],
5454
"source": [
55+
"import os\n",
5556
"tc.create_job(\n",
5657
" name=\"pytorch-ddp\",\n",
5758
" namespace=namespace,\n",
@@ -60,7 +61,12 @@
6061
" resources_per_worker={\"gpu\": num_gpus},\n",
6162
" base_image=training_image,\n",
6263
" packages_to_install=[\"torchvision==0.19.0\",\"minio==7.2.13\"],\n",
63-
" env_vars={\"NCCL_DEBUG\": \"INFO\", \"TORCH_DISTRIBUTED_DEBUG\": \"DETAIL\"}\n",
64+
" env_vars={\n",
65+
" \"NCCL_DEBUG\": \"INFO\", \n",
66+
" \"TORCH_DISTRIBUTED_DEBUG\": \"DETAIL\", \n",
67+
" \"PIP_INDEX_URL\": os.environ.get(\"PIP_INDEX_URL\"),\n",
68+
" \"PIP_TRUSTED_HOST\": os.environ.get(\"PIP_TRUSTED_HOST\")\n",
69+
" }\n",
6470
")"
6571
]
6672
},

0 commit comments

Comments
 (0)