Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHOAI] Updated image manifests with AMD images for minimal pytorch and tensorflow #361

Merged
merged 1 commit into from
Sep 27, 2024
Merged
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
17 changes: 16 additions & 1 deletion ci/check-params-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PARAMS_ENV_PATH="manifests/base/params.env"

# This value needs to be updated everytime we deliberately change number of the
# images we want to have in the `params.env` file.
EXPECTED_NUM_RECORDS=27
EXPECTED_NUM_RECORDS=30

# ---------------------------- DEFINED FUNCTIONS ----------------------------- #

Expand Down Expand Up @@ -225,6 +225,21 @@ function check_image_variable_matches_name_and_commitref() {
expected_commitref="release-2023b"
expected_build_name="codeserver-ubi9-python-3.9-amd64"
;;
odh-rocm-minimal-notebook-image-n)
expected_name="odh-notebook-jupyter-minimal-ubi9-python-3.11"
expected_commitref="release-2024b"
expected_build_name="rocm-jupyter-minimal-ubi9-python-3.11-amd64"
;;
odh-rocm-pytorch-notebook-image-n)
expected_name="odh-notebook-jupyter-rocm-pytorch-ubi9-python-3.11"
expected_commitref="release-2024b"
expected_build_name="rocm-jupyter-pytorch-ubi9-python-3.11-amd64"
;;
odh-rocm-tensorflow-notebook-image-n)
expected_name="odh-notebook-jupyter-rocm-tensorflow-ubi9-python-3.11"
expected_commitref="release-2024b"
expected_build_name="rocm-jupyter-tensorflow-ubi9-python-3.11-amd64"
;;
*)
echo "Unimplemented variable name: '${image_variable}'"
return 1
Expand Down
3 changes: 3 additions & 0 deletions manifests/base/commit.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ odh-codeserver-notebook-image-commit-n=b5a8318
odh-codeserver-notebook-image-commit-n-1=76a016f
odh-habana-notebook-image-commit-n=b5a8318
odh-habana-notebook-image-commit-n-1=76a016f
odh-rocm-minimal-notebook-image-commit-n=31ad6bc
odh-rocm-pytorch-notebook-image-commit-n=31ad6bc
odh-rocm-tensorflow-notebook-image-commit-n=31ad6bc
12 changes: 12 additions & 0 deletions manifests/base/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,15 @@ varReference:
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-codeserver-notebook-image-commit-n-1
- path: spec/tags[]/annotations/opendatahub.io\/notebook-build-commit
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-minimal-notebook-image-commit-n
- path: spec/tags[]/annotations/opendatahub.io\/notebook-build-commit
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-pytorch-notebook-image-commit-n
- path: spec/tags[]/annotations/opendatahub.io\/notebook-build-commit
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-tensorflow-notebook-image-commit-n
30 changes: 30 additions & 0 deletions manifests/base/jupyter-rocm-minimal-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
opendatahub.io/notebook-image: "true"
annotations:
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/blob/main/rocm"
opendatahub.io/notebook-image-name: "ROCm"
opendatahub.io/notebook-image-desc: "Jupyter ROCm notebook image for ODH notebooks."
opendatahub.io/notebook-image-order: "90"
opendatahub.io/recommended-accelerators: '["amd.com/gpu"]'
name: jupyter-rocm-minimal
spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"ROCm","version":"6.1"},{"name":"Python","version":"v3.11"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"JupyterLab","version":"3.6"},{"name": "Notebook","version": "6.5"}]'
openshift.io/imported-from: quay.io/modh/rocm-notebooks
opendatahub.io/workbench-image-recommended: 'true'
opendatahub.io/notebook-build-commit: $(odh-rocm-minimal-notebook-image-commit-n)
from:
kind: DockerImage
name: $(odh-rocm-minimal-notebook-image-n)
name: "2024.2"
referencePolicy:
type: Source
30 changes: 30 additions & 0 deletions manifests/base/jupyter-rocm-pytorch-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
opendatahub.io/notebook-image: "true"
annotations:
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/blob/main/jupyter/rocm/pytorch"
opendatahub.io/notebook-image-name: "ROCm-PyTorch"
opendatahub.io/notebook-image-desc: "Jupyter ROCm optimized PyTorch notebook image for ODH notebooks."
opendatahub.io/notebook-image-order: "40"
opendatahub.io/recommended-accelerators: '["amd.com/gpu"]'
name: jupyter-rocm-pytorch
spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.11"},{"name":"ROCm-PyTorch","version":"3.0"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"ROCm-PyTorch","version":"3.0"},{"name":"Tensorboard","version":"2.16"},{"name":"Kafka-Python","version":"2.0"},{"name":"Matplotlib","version":"3.8"},{"name":"Numpy","version":"1.26"},{"name":"Pandas","version":"2.2"},{"name":"Scikit-learn","version":"1.4"},{"name":"Scipy","version":"1.12"},{"name":"Elyra","version":"3.16"},{"name":"PyMongo","version":"4.6"},{"name":"Pyodbc","version":"5.1"}, {"name":"Codeflare-SDK","version":"0.19"}, {"name":"Sklearn-onnx","version":"1.16"}, {"name":"Psycopg","version":"3.1"}, {"name":"MySQL Connector/Python","version":"8.3"}]'
openshift.io/imported-from: quay.io/modh/rocm-notebooks
opendatahub.io/workbench-image-recommended: 'true'
opendatahub.io/notebook-build-commit: $(odh-rocm-pytorch-notebook-image-commit-n)
from:
kind: DockerImage
name: $(odh-rocm-pytorch-notebook-image-n)
name: "2024.2"
referencePolicy:
type: Source
30 changes: 30 additions & 0 deletions manifests/base/jupyter-rocm-tensorflow-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
opendatahub.io/notebook-image: "true"
annotations:
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/blob/main/jupyter/rocm/tensorflow"
opendatahub.io/notebook-image-name: "ROCm-TensorFlow"
opendatahub.io/notebook-image-desc: "Jupyter ROCm optimized TensorFlow notebook image for ODH notebooks."
opendatahub.io/notebook-image-order: "50"
opendatahub.io/recommended-accelerators: '[amd.com/gpu"]'
name: jupyter-rocm-tensorflow
spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.11"},{"name":"ROCm-TensorFlow","version":"2.14"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"ROCm-TensorFlow","version":"2.14"},{"name":"Tensorboard","version":"2.14"},{"name":"Kafka-Python","version":"2.0"},{"name":"Matplotlib","version":"3.8"},{"name":"Numpy","version":"1.26"},{"name":"Pandas","version":"2.2"},{"name":"Scikit-learn","version":"1.4"},{"name":"Scipy","version":"1.12"},{"name":"Elyra","version":"3.16"},{"name":"PyMongo","version":"4.6"},{"name":"Pyodbc","version":"5.1"}, {"name":"Codeflare-SDK","version":"0.19"}, {"name":"Sklearn-onnx","version":"1.16"}, {"name":"Psycopg","version":"3.1"}, {"name":"MySQL Connector/Python","version":"8.3"}]'
openshift.io/imported-from: quay.io/modh/rocm-notebooks
opendatahub.io/workbench-image-recommended: 'true'
opendatahub.io/notebook-build-commit: $(odh-rocm-tensorflow-notebook-image-commit-n)
from:
kind: DockerImage
name: $(odh-rocm-tensorflow-notebook-image-n)
name: "2024.2"
referencePolicy:
type: Source
45 changes: 45 additions & 0 deletions manifests/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ resources:
- code-server-notebook-imagestream.yaml
- rstudio-buildconfig.yaml
- cuda-rstudio-buildconfig.yaml
- jupyter-rocm-minimal-notebook-imagestream.yaml
- jupyter-rocm-pytorch-notebook-imagestream.yaml
- jupyter-rocm-tensorflow-notebook-imagestream.yaml

commonLabels:
opendatahub.io/component: "true"
Expand Down Expand Up @@ -214,6 +217,27 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.odh-codeserver-notebook-image-n-1
- name: odh-rocm-minimal-notebook-image-n
objref:
kind: ConfigMap
name: notebooks-parameters
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-minimal-notebook-image-n
- name: odh-rocm-pytorch-notebook-image-n
objref:
kind: ConfigMap
name: notebooks-parameters
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-pytorch-notebook-image-n
- name: odh-rocm-tensorflow-notebook-image-n
objref:
kind: ConfigMap
name: notebooks-parameters
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-tensorflow-notebook-image-n
- name: odh-minimal-notebook-image-commit-n
objref:
kind: ConfigMap
Expand Down Expand Up @@ -403,6 +427,27 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.odh-codeserver-notebook-image-commit-n-1
- name: odh-rocm-minimal-notebook-image-commit-n
objref:
kind: ConfigMap
name: notebook
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-minimal-notebook-image-commit-n
- name: odh-rocm-pytorch-notebook-image-commit-n
objref:
kind: ConfigMap
name: notebook
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-pytorch-notebook-image-commit-n
- name: odh-rocm-tensorflow-notebook-image-commit-n
objref:
kind: ConfigMap
name: notebook
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-tensorflow-notebook-image-commit-n
configurations:
- params.yaml
- commit.yaml
3 changes: 3 additions & 0 deletions manifests/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ odh-codeserver-notebook-image-n=quay.io/modh/codeserver@sha256:4b6b563e75f9e642b
odh-codeserver-notebook-image-n-1=quay.io/modh/codeserver@sha256:b1a048f3711149e36a89e0eda1a5601130fb536ecc0aabae42ab6e4d26977354
odh-habana-notebook-image-n=quay.io/modh/odh-habana-notebooks@sha256:4317c67037e1150fc62f8c688696d3210e4151d6ed4415dd969e60850e871c64
odh-habana-notebook-image-n-1=quay.io/modh/odh-habana-notebooks@sha256:6923f084d66bf6b9b2bf87edfb9b3c1f8f9a5f2005482fbcc060c9872db8d28a
odh-rocm-minimal-notebook-image-n=quay.io/modh/rocm-notebooks@sha256:64a90dbbe594463ff4ee6974fe8e555dc71b93fe3c3a53330b0e760784b717c0
odh-rocm-pytorch-notebook-image-n=quay.io/modh/rocm-notebooks@sha256:49b4c02cc00cbc4a1b1fd2b446e086d3f5ebbd987f998431d036b5c7208cab06
odh-rocm-tensorflow-notebook-image-n=quay.io/modh/rocm-notebooks@sha256:1eda675fa9b67ac3c71d29b7391a8142946972bb92912908927d9fa5bf7ef4aa
12 changes: 12 additions & 0 deletions manifests/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,15 @@ varReference:
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-codeserver-notebook-image-n-1
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-minimal-notebook-image-n
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-pytorch-notebook-image-n
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-tensorflow-notebook-image-n
Loading