Skip to content

RHAIENG-540: build(deps): bump transformers from 4.52.4 to 4.53.0 in /jupyter/trustyai/ubi9-python-3.11 and to 4.55.0 in the 3.12 version of workbench #1755

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion jupyter/trustyai/ubi9-python-3.11/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ torch = {version = "==2.6.0+cu126", index = "pytorch"}
# More information available at:
# - https://pypi.org/project/trustyai/
# - https://github.com/trustyai-explainability/trustyai-explainability-python/blob/main/requirements.txt
transformers = "~=4.52.1"
transformers = "~=4.53.3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Transformers bump to ~=4.53.3 looks good and matches imagestream (major.minor 4.53).

Aligned with project conventions and prior TrustyAI assessments; no obvious compatibility flags with Torch 2.6.0. Ensure lockfile and build reflect this.

Run to verify consistency across Pipfile.lock and imagestream:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Pipfile pin:"
sed -n '1,80p' jupyter/trustyai/ubi9-python-3.11/Pipfile | rg '^\s*transformers\s*=' -n

echo "Pipfile.lock resolved version:"
jq -r '.default.transformers.version // .develop.transformers.version' jupyter/trustyai/ubi9-python-3.11/Pipfile.lock

echo "Imagestream (base) N tag shows major.minor 4.53:"
rg -n 'opendatahub.io/notebook-python-dependencies' -n manifests/base/jupyter-trustyai-notebook-imagestream.yaml -A 40 | rg -n '"Transformers", "version": "4\.53"'

Length of output: 704


Fix Pipfile.lock to Resolve Transformers Bump

The Pipfile correctly pins transformers = "~=4.53.3", and the imagestream manifest shows the expected major.minor 4.53. However, your Pipfile.lock is still resolving Transformers to ==4.52.4. Please update the lockfile so it reflects the bump to 4.53.x.

• Pipfile (line 20):
transformers = "~=4.53.3"
• Pipfile.lock (currently):
default.transformers.version == 4.52.4
• Imagestream manifest (manifests/base/jupyter-trustyai-notebook-imagestream.yaml):
{"name": "Transformers", "version": "4.53"},

Action required:

  1. Run pipenv lock (or the equivalent command) to re-resolve dependencies.
  2. Verify that Pipfile.lock now lists transformers at >=4.53.3,<4.54.0.
  3. Commit the updated Pipfile.lock.

This will ensure your build and deployments use the intended Transformers version.

🤖 Prompt for AI Agents
In jupyter/trustyai/ubi9-python-3.11/Pipfile around line 20 the Pipfile pins
transformers = "~=4.53.3" but Pipfile.lock still resolves transformers to
==4.52.4; run pipenv lock (or equivalent, e.g., pipenv lock --clear) in the
project root to re-resolve dependencies so Pipfile.lock lists transformers with
a version range >=4.53.3,<4.54.0 (or exact resolved 4.53.x), verify the updated
Pipfile.lock entry under [default] shows the correct version, and commit the
updated Pipfile.lock file.

datasets = "~=3.4.1"
accelerate = "~=1.5.2"
trustyai = "~=0.6.1"
Expand Down
8 changes: 4 additions & 4 deletions jupyter/trustyai/ubi9-python-3.11/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions jupyter/trustyai/ubi9-python-3.11/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2999,9 +2999,9 @@ tqdm==4.67.1; python_version >= '3.7' \
traitlets==5.14.3; python_version >= '3.8' \
--hash=sha256:9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b96b6b7 \
--hash=sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f
transformers==4.52.4; python_full_version >= '3.9.0' \
--hash=sha256:203f5c19416d5877e36e88633943761719538a25d9775977a24fe77a1e5adfc7 \
--hash=sha256:aff3764441c1adc192a08dba49740d3cbbcb72d850586075aed6bd89b98203e6
transformers==4.53.3; python_full_version >= '3.9.0' \
--hash=sha256:5aba81c92095806b6baf12df35d756cf23b66c356975fb2a7fa9e536138d7c75 \
--hash=sha256:b2eda1a261de79b78b97f7888fe2005fc0c3fabf5dad33d52cc02983f9f675d8
triton==3.2.0; platform_system == 'Linux' and platform_machine == 'x86_64' \
--hash=sha256:30ceed0eff2c4a73b14eb63e052992f44bbdf175f3fad21e1ac8097a772de7ee \
--hash=sha256:8009a1fb093ee8546495e96731336a33fb8856a38e45bb4ab6affd6dbc3ba220 \
Expand Down
2 changes: 1 addition & 1 deletion jupyter/trustyai/ubi9-python-3.12/Pipfile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ torch = {version = "==2.6.0+cu126", index = "pytorch"}
# More information available at:
# - https://pypi.org/project/trustyai/
# - https://github.com/trustyai-explainability/trustyai-explainability-python/blob/main/requirements.txt
transformers = "~=4.52.1"
transformers = "~=4.55.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Transformers bump to ~=4.55.0 for py312 is appropriate and consistent with the py312 imagestream (4.55).

No issues spotted with Torch 2.6.0; good to keep py311 and py312 diverged here.

Quick consistency check:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Pipfile pin:"
sed -n '1,80p' jupyter/trustyai/ubi9-python-3.12/Pipfile | rg '^\s*transformers\s*=' -n

echo "Pipfile.lock resolved version:"
jq -r '.default.transformers.version // .develop.transformers.version' jupyter/trustyai/ubi9-python-3.12/Pipfile.lock

echo "Imagestream (py312 overlay) shows major.minor 4.55:"
rg -n '"Transformers", "version": "4\.55"' manifests/overlays/additional/jupyter-trustyai-cpu-py312-ubi9-imagestream.yaml

Length of output: 668


Update Pipfile.lock to match Transformers bump

The Pipfile specifies transformers ~=4.55.0, but the lock file still resolves to 4.53.0, causing a mismatch:

  • jupyter/trustyai/ubi9-python-3.12/Pipfile.lock
    .default.transformers.version is ==4.53.0 (should be ==4.55.x)

Please regenerate or update the lock file (e.g., run pipenv lock) so that the resolved version aligns with the ~=4.55.0 specifier.

🤖 Prompt for AI Agents
In jupyter/trustyai/ubi9-python-3.12/Pipfile around line 20 the transformers
dependency was bumped to ~=4.55.0 but the Pipfile.lock still pins
.default.transformers.version to ==4.53.0; regenerate the lock file (e.g., run
pipenv lock in that directory) so the lock resolves to a 4.55.x release that
satisfies ~=4.55.0, commit the updated Pipfile.lock, and verify the
.default.transformers.version matches the new 4.55.x value.

datasets = "~=3.4.1"
accelerate = "~=1.5.2"
trustyai = "~=0.6.2"
Expand Down
8 changes: 4 additions & 4 deletions jupyter/trustyai/ubi9-python-3.12/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions jupyter/trustyai/ubi9-python-3.12/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3040,9 +3040,9 @@ tqdm==4.67.1; python_version >= '3.7' \
traitlets==5.14.3; python_version >= '3.8' \
--hash=sha256:9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b96b6b7 \
--hash=sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f
transformers==4.52.4; python_full_version >= '3.9.0' \
--hash=sha256:203f5c19416d5877e36e88633943761719538a25d9775977a24fe77a1e5adfc7 \
--hash=sha256:aff3764441c1adc192a08dba49740d3cbbcb72d850586075aed6bd89b98203e6
transformers==4.53.0; python_full_version >= '3.9.0' \
--hash=sha256:7d8039ff032c01a2d7f8a8fe0066620367003275f023815a966e62203f9f5dd7 \
--hash=sha256:f89520011b4a73066fdc7aabfa158317c3934a22e3cd652d7ffbc512c4063841
triton==3.2.0; platform_system == 'Linux' and platform_machine == 'x86_64' \
--hash=sha256:30ceed0eff2c4a73b14eb63e052992f44bbdf175f3fad21e1ac8097a772de7ee \
--hash=sha256:8009a1fb093ee8546495e96731336a33fb8856a38e45bb4ab6affd6dbc3ba220 \
Expand Down
2 changes: 1 addition & 1 deletion manifests/base/jupyter-trustyai-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
[
{"name": "JupyterLab","version": "4.4"},
{"name": "TrustyAI", "version": "0.6"},
{"name": "Transformers", "version": "4.50"},
{"name": "Transformers", "version": "4.53"},
{"name": "Datasets", "version": "3.4"},
{"name": "Accelerate", "version": "1.5"},
{"name": "Torch", "version": "2.6"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
[
{"name": "JupyterLab","version": "4.4"},
{"name": "TrustyAI", "version": "0.6"},
{"name": "Transformers", "version": "4.52"},
{"name": "Transformers", "version": "4.55"},
{"name": "Datasets", "version": "3.4"},
{"name": "Accelerate", "version": "1.5"},
{"name": "Torch", "version": "2.6"},
Expand Down
Loading