Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
334 changes: 334 additions & 0 deletions .github/workflows/update-versions.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo-notebooks/additional-demos/hf_interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/additional-demos/local_interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/additional-demos/ray_job_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/0_basic_ray.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/1_cluster_job_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/2_basic_interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/3_widget_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
value: /home/ray/workspace/tls/server.key
- name: RAY_TLS_CA_CERT
value: /home/ray/workspace/tls/ca.crt
image: quay.io/modh/ray:2.47.1-py311-cu121
image: quay.io/modh/ray:2.49.1-py311-cu122
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down Expand Up @@ -147,7 +147,7 @@ spec:
value: /home/ray/workspace/tls/server.key
- name: RAY_TLS_CA_CERT
value: /home/ray/workspace/tls/ca.crt
image: quay.io/modh/ray:2.47.1-py311-cu121
image: quay.io/modh/ray:2.49.1-py311-cu122
lifecycle:
preStop:
exec:
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/notebook-ex-outputs/jobtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
value: /home/ray/workspace/tls/server.key
- name: RAY_TLS_CA_CERT
value: /home/ray/workspace/tls/ca.crt
image: quay.io/modh/ray:2.47.1-py311-cu121
image: quay.io/modh/ray:2.49.1-py311-cu122
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down Expand Up @@ -127,7 +127,7 @@ spec:
value: /home/ray/workspace/tls/server.key
- name: RAY_TLS_CA_CERT
value: /home/ray/workspace/tls/ca.crt
image: quay.io/modh/ray:2.47.1-py311-cu121
image: quay.io/modh/ray:2.49.1-py311-cu122
lifecycle:
preStop:
exec:
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/notebook-ex-outputs/raytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
value: /home/ray/workspace/tls/server.key
- name: RAY_TLS_CA_CERT
value: /home/ray/workspace/tls/ca.crt
image: quay.io/modh/ray:2.47.1-py311-cu121
image: quay.io/modh/ray:2.49.1-py311-cu122
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down Expand Up @@ -127,7 +127,7 @@ spec:
value: /home/ray/workspace/tls/server.key
- name: RAY_TLS_CA_CERT
value: /home/ray/workspace/tls/ca.crt
image: quay.io/modh/ray:2.47.1-py311-cu121
image: quay.io/modh/ray:2.49.1-py311-cu122
lifecycle:
preStop:
exec:
Expand Down
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/preview_nbs/0_basic_ray.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"\n",
"NOTE: The default images used by the CodeFlare SDK for creating a RayCluster resource depend on the installed Python version:\n",
"\n",
"- For Python 3.11: 'quay.io/modh/ray:2.47.1-py311-cu121'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.47.1-py312-cu128'\n",
"- For Python 3.11: 'quay.io/modh/ray:2.49.1-py311-cu122'\n",
"- For Python 3.12: 'quay.io/modh/ray:2.49.1-py312-cu129'\n",
"\n",
"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."
]
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/user-docs/cluster-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ requirements for creating the Ray Cluster.
The default images used by the CodeFlare SDK for creating
a RayCluster resource depend on the installed Python version:

- For Python 3.11: `quay.io/modh/ray:2.47.1-py311-cu121`
- For Python 3.11: `quay.io/modh/ray:2.49.1-py311-cu122`

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.
If you are using ROCm compatible GPUs you
can use `quay.io/modh/ray:2.47.1-py311-rocm62`. You can also find
can use `quay.io/modh/ray:2.49.1-py311-rocm62`. You can also find
documentation on building a custom image
`here <https://github.com/opendatahub-io/distributed-workloads/tree/main/images/runtime/examples>`__.

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "codeflare-sdk"
version = "0.31.0"
version = "0.31.1"

[tool.poetry]
name = "codeflare-sdk"
version = "0.31.0"
version = "0.31.1"
description = "Python SDK for codeflare client"

license = "Apache-2.0"
Expand All @@ -27,7 +27,7 @@ keywords = ['codeflare', 'python', 'sdk', 'client', 'batch', 'scale']
python = "^3.11"
openshift-client = "1.0.18"
rich = ">=12.5,<14.0"
ray = {version = "2.47.1", extras = ["data", "default"]}
ray = {version = "2.49.1", extras = ["data", "default"]}
kubernetes = ">= 27.2.0"
cryptography = "43.0.3"
executing = "1.2.0"
Expand Down
10 changes: 5 additions & 5 deletions src/codeflare_sdk/common/utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
RAY_VERSION = "2.47.1"
RAY_VERSION = "2.49.1"
"""
The below are used to define the default runtime image for the Ray Cluster.
* For python 3.11:ray:2.47.1-py311-cu121
* For python 3.12:ray:2.47.1-py312-cu128
* For python 3.11:ray:2.49.1-py311-cu122
* For python 3.12:ray:2.49.1-py312-cu129
"""
CUDA_PY311_RUNTIME_IMAGE = "quay.io/modh/ray@sha256:6d076aeb38ab3c34a6a2ef0f58dc667089aa15826fa08a73273c629333e12f1e"
CUDA_PY312_RUNTIME_IMAGE = "quay.io/modh/ray@sha256:9c72e890f5c66bb2a0f0d940120539ffc875fb6fed83380cbe2eba938e8789b1"
CUDA_PY311_RUNTIME_IMAGE = "quay.io/modh/ray@sha256:6d076aeb38ab3c34a6a2ef0f58dc667089aa15826fa08a73273c629333e1edit"
CUDA_PY312_RUNTIME_IMAGE = "quay.io/modh/ray@sha256:fb6f207de63e442c67bb48955cf0584f3704281faf17b90419cfa274fdecedit"

# Centralized image selection
SUPPORTED_PYTHON_VERSIONS = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/appwrapper/test-case-bad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
requests:
cpu: 2
memory: 8G
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-unit-test-cluster
maxReplicas: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-aw-all-params
maxReplicas: 10
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/kueue/aw_kueue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-unit-test-aw-kueue
maxReplicas: 2
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/kueue/ray_cluster_kueue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-unit-test-cluster-kueue
maxReplicas: 2
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/ray/default-appwrapper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-default-appwrapper
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/ray/default-ray-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-default-cluster
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/ray/unit-test-all-params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-test-all-params
maxReplicas: 10
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/support_clusters/test-aw-a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-test-cluster-a
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/support_clusters/test-aw-b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-test-cluster-b
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/support_clusters/test-rc-a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-test-cluster-a
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/support_clusters/test-rc-b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.47.1
rayVersion: 2.49.1
workerGroupSpecs:
- groupName: small-group-test-rc-b
maxReplicas: 1
Expand Down