You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demo-notebooks/additional-demos/hf_interactive.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,12 @@
68
68
"source": [
69
69
"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 Ray Cluster).\n",
70
70
"\n",
71
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
72
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
71
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
72
+
"\n",
73
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
74
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
75
+
"\n",
76
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/0_basic_ray.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,12 @@
47
47
"source": [
48
48
"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 RayCluster).\n",
49
49
"\n",
50
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
51
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
50
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
51
+
"\n",
52
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
53
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
54
+
"\n",
55
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/1_cluster_job_client.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,12 @@
41
41
"source": [
42
42
"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 RayCluster).\n",
43
43
"\n",
44
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
45
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
44
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
45
+
"\n",
46
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
47
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
48
+
"\n",
49
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/3_widget_example.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,12 @@
47
47
"source": [
48
48
"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 RayCluster).\n",
49
49
"\n",
50
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
51
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
50
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
51
+
"\n",
52
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
53
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
54
+
"\n",
55
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/notebook-ex-outputs/0_basic_ray.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,12 @@
47
47
"source": [
48
48
"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 RayCluster).\n",
49
49
"\n",
50
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
51
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
50
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
51
+
"\n",
52
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
53
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
54
+
"\n",
55
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/notebook-ex-outputs/1_cluster_job_client.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,12 @@
41
41
"source": [
42
42
"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 RayCluster).\n",
43
43
"\n",
44
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
45
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
44
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
45
+
"\n",
46
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
47
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
48
+
"\n",
49
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/preview_nbs/0_basic_ray.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,12 @@
47
47
"source": [
48
48
"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 RayCluster).\n",
49
49
"\n",
50
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
51
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
50
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
51
+
"\n",
52
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
53
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
54
+
"\n",
55
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
Copy file name to clipboardExpand all lines: demo-notebooks/guided-demos/preview_nbs/1_cluster_job_client.ipynb
+6-2
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,12 @@
41
41
"source": [
42
42
"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 RayCluster).\n",
43
43
"\n",
44
-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
45
-
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
44
+
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
45
+
"\n",
46
+
"- For Python 3.9: 'quay.io/modh/ray:2.35.0-py39-cu121'\n",
47
+
"- For Python 3.11: 'quay.io/modh/ray:2.35.0-py311-cu121'\n",
48
+
"\n",
49
+
"If you prefer to use a custom Ray image that better suits your needs, you can specify it in the image field to override the default."
f"Python version '{python_version}' is not supported. Only {', '.join(SUPPORTED_PYTHON_VERSIONS.keys())} are supported."
100
+
ifpython_versioninSUPPORTED_PYTHON_VERSIONS:
101
+
image=SUPPORTED_PYTHON_VERSIONS[python_version]
102
+
else:
103
+
warnings.warn(
104
+
f"No default Ray image defined for {python_version}. Please provide your own image or use one of the following python versions: {', '.join(SUPPORTED_PYTHON_VERSIONS.keys())}."
0 commit comments