Skip to content

Commit

Permalink
Fixed nb
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 committed Apr 5, 2024
1 parent 0ce4a79 commit 7e1b6ab
Showing 1 changed file with 0 additions and 77 deletions.
77 changes: 0 additions & 77 deletions demo-notebooks/guided-demos/2_job_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@
" min_memory=4,\n",
" max_memory=4,\n",
" num_gpus=0,\n",
<<<<<<< HEAD:demo-notebooks/guided-demos/2_job_client.ipynb
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\"\n",
=======
" mcad=True,\n",
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\",\n",
" instascale=False\n",
>>>>>>> 583747f (Added demo notebook for Kueue by default):demo-notebooks/guided-demos/preview_nbs/2_basic_jobs.ipynb
"))"
]
},
Expand Down Expand Up @@ -258,77 +252,6 @@
{
"cell_type": "code",
"execution_count": null,
<<<<<<< HEAD:demo-notebooks/guided-demos/2_job_client.ipynb
=======
"id": "496139cc",
"metadata": {},
"outputs": [],
"source": [
"jobdef = DDPJobDefinition(\n",
" name=\"mnistjob\",\n",
" script=\"mnist.py\",\n",
" scheduler_args={\"namespace\": \"default\"},\n",
" j=\"1x1\",\n",
" gpu=0,\n",
" cpu=1,\n",
" memMB=8000,\n",
" mcad=True,\n",
" image=\"quay.io/project-codeflare/mnist-job-test:v0.0.1\"\n",
")\n",
"job = jobdef.submit()"
]
},
{
"cell_type": "markdown",
"id": "0837e43b",
"metadata": {},
"source": [
"Once again, we can look at job status and logs:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3d18d42c",
"metadata": {},
"outputs": [],
"source": [
"job.status()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "36d7ea97",
"metadata": {},
"outputs": [],
"source": [
"job.logs()"
]
},
{
"cell_type": "markdown",
"id": "aebf376a",
"metadata": {},
"source": [
"This time, once the pods complete, we can clean them up alongside any other associated resources. The following command can also be used to delete jobs early for both Ray and MCAD submission:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ebbb0674",
"metadata": {},
"outputs": [],
"source": [
"job.cancel()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0d41b90e",
>>>>>>> 583747f (Added demo notebook for Kueue by default):demo-notebooks/guided-demos/preview_nbs/2_basic_jobs.ipynb
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 7e1b6ab

Please sign in to comment.