Skip to content

Commit b18b7ff

Browse files
committed
RHAIENG-2857, RHAIENG-1724, RHAIENG-1723, RHAIENG-1730: chore(tensorflow(+runtime), trustyai): switch to installing from AIPCC wheels
1 parent aca4e11 commit b18b7ff

File tree

15 files changed

+5159
-11342
lines changed

15 files changed

+5159
-11342
lines changed

jupyter/tensorflow/ubi9-python-3.12/Dockerfile.cuda

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ FROM cuda-jupyter-datascience AS cuda-jupyter-tensorflow
157157
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
158158
ARG DATASCIENCE_SOURCE_CODE=jupyter/datascience/ubi9-python-3.12
159159
ARG TENSORFLOW_SOURCE_CODE=jupyter/tensorflow/ubi9-python-3.12
160+
ARG PYLOCK_FLAVOR
160161

161162
WORKDIR /opt/app-root/bin
162163

@@ -171,7 +172,7 @@ LABEL name="odh-notebook-cuda-jupyter-tensorflow-ubi9-python-3.12" \
171172
io.openshift.build.image="quay.io/opendatahub/workbench-images:cuda-jupyter-tensorflow-ubi9-python-3.12"
172173

173174
# Install Python packages and Jupyterlab extensions from requirements.txt
174-
COPY ${TENSORFLOW_SOURCE_CODE}/pylock.toml ./
175+
COPY ${TENSORFLOW_SOURCE_CODE}/uv.lock.d/pylock.${PYLOCK_FLAVOR}.toml ./pylock.toml
175176

176177
RUN /bin/bash <<'EOF'
177178
set -Eeuxo pipefail

jupyter/tensorflow/ubi9-python-3.12/pylock.toml

Lines changed: 0 additions & 5915 deletions
This file was deleted.

jupyter/tensorflow/ubi9-python-3.12/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies = [
77
"tf2onnx~=1.16.1",
88

99
# TensorFlow packages
10-
"tensorflow[and-cuda]~=2.20.0",
10+
"tensorflow~=2.20.0",
1111
"tensorboard~=2.20.0",
1212

1313
# Datascience and useful extensions
@@ -50,7 +50,7 @@ odh-notebooks-meta-workbench-datascience-deps = { path = "../../../dependencies/
5050

5151
override-dependencies = [
5252
# tf2onnx has pinned protobuf version, that causes conflict with other packages
53-
"protobuf==6.31.1",
53+
"protobuf==6.33.5",
5454
"keras~=3.13.2",
5555
# RHAIENG-2458: CVE-2025-66418 urllib3 - override needed because odh-elyra pulls in
5656
# appengine-python-standard which has an obnoxious urllib3<2 constraint

jupyter/tensorflow/ubi9-python-3.12/uv.lock.d/pylock.cuda.toml

Lines changed: 1883 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jupyter/trustyai/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ ENV HOME=/root
3333
WORKDIR /root
3434

3535
ARG TRUSTYAI_SOURCE_CODE=jupyter/trustyai/ubi9-python-3.12
36+
ARG PYLOCK_FLAVOR
3637

37-
COPY ${TRUSTYAI_SOURCE_CODE}/pylock.toml .
38+
COPY ${TRUSTYAI_SOURCE_CODE}/uv.lock.d/pylock.${PYLOCK_FLAVOR}.toml ./pylock.toml
3839
COPY ${TRUSTYAI_SOURCE_CODE}/devel_env_setup.sh .
3940

4041
RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
@@ -172,17 +173,10 @@ FROM jupyter-datascience AS jupyter-trustyai
172173

173174
ARG DATASCIENCE_SOURCE_CODE=jupyter/datascience/ubi9-python-3.12
174175
ARG TRUSTYAI_SOURCE_CODE=jupyter/trustyai/ubi9-python-3.12
176+
ARG PYLOCK_FLAVOR
175177

176178
ENV LD_LIBRARY_PATH=/usr/lib:/usr/lib64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
177179

178-
### BEGIN RHAIENG-2189: this is AIPCC migration phase 1.5
179-
ENV PIP_INDEX_URL=https://pypi.org/simple
180-
# UV_INDEX_URL is deprecated in favor of UV_DEFAULT_INDEX
181-
ENV UV_INDEX_URL=https://pypi.org/simple
182-
# https://docs.astral.sh/uv/reference/environment/#uv_default_index
183-
ENV UV_DEFAULT_INDEX=https://pypi.org/simple
184-
### END RHAIENG-2189: this is AIPCC migration phase 1.5
185-
186180
LABEL name="odh-notebook-jupyter-trustyai-ubi9-python-3.12" \
187181
summary="Jupyter trustyai notebook image for ODH notebooks" \
188182
description="Jupyter trustyai notebook image with base Python 3.12 builder image based on UBI9 for ODH notebooks" \
@@ -215,7 +209,7 @@ fi
215209
EOF
216210

217211
# Install Python packages and Jupyterlab extensions from requirements.txt
218-
COPY ${TRUSTYAI_SOURCE_CODE}/pylock.toml ./
212+
COPY ${TRUSTYAI_SOURCE_CODE}/uv.lock.d/pylock.${PYLOCK_FLAVOR}.toml ./pylock.toml
219213

220214
# install openblas for ppc64le
221215
RUN --mount=type=cache,from=whl-cache,source=/root/OpenBLAS/,target=/OpenBlas/,rw /bin/bash <<'EOF'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
INDEX_URL=https://console.redhat.com/api/pypi/public-rhai/rhoai/3.4-EA1/cpu-ubi9/simple/
22
BASE_IMAGE=quay.io/opendatahub/odh-base-image-cpu-py312-c9s:latest
3+
PYLOCK_FLAVOR=cpu

jupyter/trustyai/ubi9-python-3.12/pylock.toml

Lines changed: 0 additions & 5383 deletions
This file was deleted.

jupyter/trustyai/ubi9-python-3.12/pyproject.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires-python = "==3.12.*"
55

66
dependencies = [
77
# PyTorch packages
8-
"torch==2.7.1+cu128; platform_machine != 'ppc64le' and platform_machine != 's390x'",
8+
"torch==2.9.0; platform_machine != 'ppc64le' and platform_machine != 's390x'",
99

1010
# Triton here is a dependency of torch, and is just being
1111
# explicitly re-declared so that the index to pull it from can be
@@ -18,14 +18,14 @@ dependencies = [
1818
#
1919
# Since it's a dependency of torch, I've also added same platform
2020
# exclusion marker to omit for ppc64le.
21-
"triton==3.3.1; platform_machine != 'ppc64le' and platform_machine != 's390x'",
21+
"triton==3.5.0; platform_machine != 'ppc64le' and platform_machine != 's390x'",
2222

2323
# TrustyAI packages
2424
# More information available at:
2525
# - https://pypi.org/project/trustyai/
2626
# - https://github.com/trustyai-explainability/trustyai-explainability-python/blob/main/requirements.txt
27-
"transformers~=4.57.3",
28-
"datasets~=4.4.1",
27+
"transformers~=5.0.0",
28+
"datasets~=4.5.0",
2929
"accelerate~=1.12.0; platform_machine != 'ppc64le' and platform_machine != 's390x'",
3030
"trustyai~=0.6.3",
3131

@@ -76,11 +76,4 @@ override-dependencies = [
7676
]
7777

7878
[tool.uv.sources]
79-
torch = { index = "pytorch-cuda" }
80-
triton = { index = "pytorch-cuda" }
8179
odh-notebooks-meta-workbench-datascience-deps = { path = "../../../dependencies/odh-notebooks-meta-workbench-datascience-deps" }
82-
83-
[[tool.uv.index]]
84-
name = "pytorch-cuda"
85-
url = "https://download.pytorch.org/whl/cu128"
86-
explicit = true

0 commit comments

Comments
 (0)