Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49f573d

Browse files
committedNov 9, 2023
refactor: update demo notebooks to use default raycluster image in demo nbs
1 parent 3398477 commit 49f573d

File tree

7 files changed

+40
-7
lines changed

7 files changed

+40
-7
lines changed
 

‎demo-notebooks/additional-demos/hf_interactive.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@
6969
"id": "bc27f84c",
7070
"metadata": {},
7171
"source": [
72-
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding AppWrapper)."
72+
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding AppWrapper).\n",
73+
"\n",
74+
"NOTE: We must specify the image which will be used in our RayCluster, we recommend you bring your own image which suits your purposes but we have a community image available for you to use if you wish."
7375
]
7476
},
7577
{

‎demo-notebooks/additional-demos/local_interactive.ipynb

+12-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,18 @@
4444
"cluster_name = \"hfgputest-1\"\n",
4545
"local_interactive = True\n",
4646
"\n",
47-
"cluster = Cluster(ClusterConfiguration(local_interactive=local_interactive, namespace=namespace, name=cluster_name, num_workers=1, min_cpus=1, max_cpus=1, min_memory=4, max_memory=4, num_gpus=0, instascale=False, machine_types=[\"m5.xlarge\", \"p3.8xlarge\"]))"
47+
"cluster = Cluster(ClusterConfiguration(local_interactive=local_interactive,\n",
48+
" namespace=namespace,\n",
49+
" name=cluster_name,\n",
50+
" num_workers=1,\n",
51+
" min_cpus=1,\n",
52+
" max_cpus=1,\n",
53+
" min_memory=4,\n",
54+
" max_memory=4,\n",
55+
" num_gpus=0,\n",
56+
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\", #current default\n",
57+
" instascale=False,\n",
58+
" machine_types=[\"m5.xlarge\", \"p3.8xlarge\"]))"
4859
]
4960
},
5061
{

‎demo-notebooks/guided-demos/0_basic_ray.ipynb

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
"id": "bc27f84c",
4747
"metadata": {},
4848
"source": [
49-
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding AppWrapper)."
49+
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding AppWrapper).\n",
50+
"\n",
51+
"We must specify the image which will be used in our RayCluster, we recommend you bring your own image which suits your purposes but we have a community image available for you to use if you wish."
5052
]
5153
},
5254
{
@@ -191,7 +193,7 @@
191193
"name": "python",
192194
"nbconvert_exporter": "python",
193195
"pygments_lexer": "ipython3",
194-
"version": "3.8.13"
196+
"version": "3.9.18"
195197
},
196198
"vscode": {
197199
"interpreter": {

‎demo-notebooks/guided-demos/1_basic_instascale.ipynb

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"id": "bc27f84c",
4444
"metadata": {},
4545
"source": [
46-
"This time, we are working in a cloud environment, and our OpenShift cluster does not have the resources needed for our desired workloads. We will use InstaScale to dynamically scale-up guaranteed resources based on our request (that will also automatically scale-down when we are finished working):"
46+
"This time, we are working in a cloud environment, and our OpenShift cluster does not have the resources needed for our desired workloads. We will use InstaScale to dynamically scale-up guaranteed resources based on our request (that will also automatically scale-down when we are finished working):\n",
47+
"\n",
48+
"We must specify the image which will be used in our RayCluster, we recommend you bring your own image which suits your purposes but we have a community image available for you to use if you wish."
4749
]
4850
},
4951
{
@@ -63,6 +65,7 @@
6365
" min_memory=8,\n",
6466
" max_memory=8,\n",
6567
" num_gpus=1,\n",
68+
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\", #current default\n",
6669
" instascale=True, # InstaScale now enabled, will scale OCP cluster to guarantee resource request\n",
6770
" machine_types=[\"m5.xlarge\", \"g4dn.xlarge\"] # Head, worker AWS machine types desired\n",
6871
"))"

‎demo-notebooks/guided-demos/2_basic_jobs.ipynb

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"id": "bc27f84c",
4444
"metadata": {},
4545
"source": [
46-
"Let's start by running through the same cluster setup as before:"
46+
"Let's start by running through the same cluster setup as before:\n",
47+
"\n",
48+
"NOTE: We must specify the image which will be used in our RayCluster, we recommend you bring your own image which suits your purposes but we have a community image available for you to use if you wish."
4749
]
4850
},
4951
{
@@ -63,6 +65,7 @@
6365
" min_memory=4,\n",
6466
" max_memory=4,\n",
6567
" num_gpus=0,\n",
68+
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\", #current default\n",
6669
" instascale=False\n",
6770
"))"
6871
]

‎demo-notebooks/guided-demos/3_basic_interactive.ipynb

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"id": "bc27f84c",
4444
"metadata": {},
4545
"source": [
46-
"Once again, let's start by running through the same cluster setup as before:"
46+
"Once again, let's start by running through the same cluster setup as before:\n",
47+
"\n",
48+
"NOTE: We must specify the image which will be used in our RayCluster, we recommend you bring your own image which suits your purposes but we have a community image available for you to use if you wish."
4749
]
4850
},
4951
{
@@ -63,6 +65,7 @@
6365
" min_memory=8,\n",
6466
" max_memory=8,\n",
6567
" num_gpus=1,\n",
68+
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\", #current default\n",
6669
" instascale=True, #<---instascale enabled\n",
6770
" machine_types=[\"m5.xlarge\", \"g4dn.xlarge\"]\n",
6871
" \n",

‎demo-notebooks/guided-demos/4_gpt.ipynb

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
"auth.login()"
3131
]
3232
},
33+
{
34+
"cell_type": "markdown",
35+
"id": "8f4b200f",
36+
"metadata": {},
37+
"source": [
38+
"NOTE: We must specify the image which will be used in our RayCluster, we recommend you bring your own image which suits your purposes but we have a community image available for you to use if you wish."
39+
]
40+
},
3341
{
3442
"cell_type": "code",
3543
"execution_count": null,
@@ -46,6 +54,7 @@
4654
" min_memory=8,\n",
4755
" max_memory=8,\n",
4856
" num_gpus=1,\n",
57+
" image=\"quay.io/project-codeflare/ray:latest-py39-cu118\", #current default\n",
4958
" instascale=True, #<---instascale enabled\n",
5059
" machine_types=[\"m5.xlarge\", \"g4dn.xlarge\"],\n",
5160
"))"

0 commit comments

Comments
 (0)
Please sign in to comment.