Skip to content

-tools: update library versions and fix torch installation#2850

Merged
mikebonnet merged 2 commits into
containers:mainfrom
mikebonnet:cuda-rocm-versions
Jul 18, 2026
Merged

-tools: update library versions and fix torch installation#2850
mikebonnet merged 2 commits into
containers:mainfrom
mikebonnet:cuda-rocm-versions

Conversation

@mikebonnet

@mikebonnet mikebonnet commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Update cuda to 12.9 and rocm to 7.1 in the -tools images, to match the versions used in the llama.cpp images.

Override a config in llama-cpp-scripts to install accelerator-specific torch libraries into the -tools images.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mikebonnet
mikebonnet temporarily deployed to macos-installer July 17, 2026 21:33 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 7f73e02a-0871-4b4c-8fdd-7b983b20ca43

📥 Commits

Reviewing files that changed from the base of the PR and between f398db7 and bf54136.

📒 Files selected for processing (14)
  • .tekton/cuda-tools/cuda-tools-pull-request.yaml
  • .tekton/cuda-tools/cuda-tools-push.yaml
  • .tekton/rocm-tools/rocm-tools-pull-request.yaml
  • .tekton/rocm-tools/rocm-tools-push.yaml
  • container-images/common/Makefile
  • container-images/common/requirements-rag.txt
  • container-images/common/requirements-tools-cpu-aarch64.txt
  • container-images/common/requirements-tools-cpu.txt
  • container-images/common/requirements-tools-cu129-aarch64.txt
  • container-images/common/requirements-tools-cu129.txt
  • container-images/common/requirements-tools-rocm7.1.txt
  • container-images/common/requirements-tools-xpu.txt
  • container-images/cuda/Containerfile
  • container-images/scripts/build_tools.sh
🚧 Files skipped from review as they are similar to previous changes (11)
  • .tekton/rocm-tools/rocm-tools-push.yaml
  • container-images/cuda/Containerfile
  • .tekton/cuda-tools/cuda-tools-pull-request.yaml
  • .tekton/cuda-tools/cuda-tools-push.yaml
  • container-images/common/requirements-rag.txt
  • container-images/common/requirements-tools-cpu-aarch64.txt
  • container-images/common/requirements-tools-cpu.txt
  • container-images/common/requirements-tools-cu129-aarch64.txt
  • container-images/common/requirements-tools-rocm7.1.txt
  • container-images/common/requirements-tools-cu129.txt
  • container-images/common/requirements-tools-xpu.txt

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Tool images now support CUDA 12.9.2 (cu129), ROCm 7.1, and Python 3.14.
    • Build triggers were broadened so ROCm/CUDA tool pipelines start when any matching backend requirements file changes.
    • Added/updated Triton support for CUDA, ROCm, and XPU toolchains.
  • Updates

    • Refreshed regenerated dependency lockfiles across CPU/CUDA/ROCm/XPU/RAG, including updated pinned versions (e.g., tqdm, filelock, and Hugging Face packages).
    • Standardized torch dependency installation to use the newer packaging option during tool builds.

Walkthrough

The PR updates CUDA, ROCm, and XPU build targets, generalizes backend-aware installation, refreshes accelerator and CPU dependency locks, and moves CUDA builds to the 12.9.2 base image.

Changes

Backend toolchain refresh

Layer / File(s) Summary
Backend inputs and image targets
.tekton/cuda-tools/*, .tekton/rocm-tools/*, container-images/common/Makefile, container-images/cuda/Containerfile
Pipeline triggers and arguments move to CUDA cu129 and ROCm 7.1; CUDA Python becomes 3.14 and the CUDA base image becomes 12.9.2.
Backend-aware package installation
container-images/scripts/build_tools.sh
CUDA and ROCm backend matching is generalized, and requirements installation passes Torch backend and source-exclusion options.
Accelerator requirements locks
container-images/common/requirements-tools-cu129*, container-images/common/requirements-tools-rocm7.1.txt, container-images/common/requirements-tools-xpu.txt
Generated locks switch Torch to CUDA, ROCm, or XPU variants and add or refresh accelerator runtime and Triton packages.
CPU and RAG requirement refresh
container-images/common/requirements-tools-cpu*, container-images/common/requirements-rag.txt
CPU lockfiles gain the Torch source option and refreshed pins; RAG dependencies receive updated versions and hashes.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Tekton
  participant build_tools.sh
  participant uv
  participant requirements-tools
  Tekton->>build_tools.sh: pass backend build argument
  build_tools.sh->>build_tools.sh: choose backend and architecture lockfile
  build_tools.sh->>uv: install with Torch backend options
  uv->>requirements-tools: resolve pinned backend requirements
Loading

Possibly related PRs

Suggested reviewers: rhatdan, olliewalsh, jhjaggars, maxamillion, cgruver

Poem

I’m a rabbit with CUDA shoes,
Hopping through ROCm’s newer hues.
XPU seeds sprout in locks anew,
Triton tags along with Torch too.
Fresh pins sparkle, builds take flight—
I nibble the pipeline goodnight!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: updating -tools library versions and torch installation behavior.
Description check ✅ Passed The description matches the changeset by calling out CUDA/ROCm version bumps and accelerator-specific torch installation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.tekton/cuda-tools/cuda-tools-pull-request.yaml:
- Around line 40-41: Update the on-cel-expression in
.tekton/cuda-tools/cuda-tools-pull-request.yaml (lines 40-41) to match cu129
requirement files instead of cu128. Also update the on-cel-expression in
.tekton/rocm-tools/rocm-tools-pull-request.yaml (lines 42-43) to reference
rocm7.1 instead of rocm6.3, preserving the existing pathChanged() trigger
behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3dcaa185-2559-480b-8d2b-18105ffc8594

📥 Commits

Reviewing files that changed from the base of the PR and between 4107c31 and f398db7.

📒 Files selected for processing (14)
  • .tekton/cuda-tools/cuda-tools-pull-request.yaml
  • .tekton/cuda-tools/cuda-tools-push.yaml
  • .tekton/rocm-tools/rocm-tools-pull-request.yaml
  • .tekton/rocm-tools/rocm-tools-push.yaml
  • container-images/common/Makefile
  • container-images/common/requirements-rag.txt
  • container-images/common/requirements-tools-cpu-aarch64.txt
  • container-images/common/requirements-tools-cpu.txt
  • container-images/common/requirements-tools-cu129-aarch64.txt
  • container-images/common/requirements-tools-cu129.txt
  • container-images/common/requirements-tools-rocm7.1.txt
  • container-images/common/requirements-tools-xpu.txt
  • container-images/cuda/Containerfile
  • container-images/scripts/build_tools.sh

Comment thread .tekton/cuda-tools/cuda-tools-pull-request.yaml

@bmahabirbu bmahabirbu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Update cuda to 12.9 and rocm to 7.1, which matches the versions used in the
llama.cpp images.

Upgrade to Python 3.14 in the cuda-tools image, since it is now available from
the RHEL-9 AppStream repos.

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
llama-cpp-scripts configures uv to install torch from the cpu index, overriding
--torch-backend. Use the --no-sources-package option to disable that config and
respect --torch-backend.

Use --torch-backend in build_tools.sh to install from the same repo that was
used for dependency resolution.

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
@mikebonnet
mikebonnet force-pushed the cuda-rocm-versions branch from f398db7 to bf54136 Compare July 18, 2026 02:04
@mikebonnet
mikebonnet temporarily deployed to macos-installer July 18, 2026 02:05 — with GitHub Actions Inactive
@mikebonnet
mikebonnet enabled auto-merge July 18, 2026 02:05
@mikebonnet
mikebonnet merged commit 99e159b into containers:main Jul 18, 2026
38 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants