Skip to content

fix(deps, pyamber): pin the CPU torch wheel on all Linux platforms - #9397

Merged
mengw15 merged 1 commit into
apache:mainfrom
mengw15:fix/9396-arm64-cpu-torch
Nov 10, 2026
Merged

mengw15 merged 1 commit into
apache:mainfrom
mengw15:fix/9396-arm64-cpu-torch

Conversation

@mengw15

@mengw15 mengw15 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

amber/operator-requirements.txt pinned PyTorch's CPU wheel only on Linux x86_64. Since #8812, the snapshot installer sends only local-version pins to the PyTorch index, so torch==2.13.0 on Linux aarch64 resolves from PyPI, whose Linux wheels depend on the NVIDIA CUDA libraries.

This PR pins torch==2.13.0+cpu on every Linux platform. Linux x86_64 gets the same wheel as before, and macOS and Windows still install torch==2.13.0 from PyPI.

Any related issues, documentation, discussions?

Closes #9396. Same fix as #4473, for aarch64.

How was this PR tested?

  • bin/dockerfiles/snapshot/test_install.sh passes.
  • Ran the runtime stage's install steps (its base image, install.sh, PACKAGE_SNAPSHOT=2026-11-09) in linux/arm64 and linux/amd64 containers. Both install torch 2.13.0+cpu and no nvidia-*, triton or cuda-* packages. The 1.3.0-incubating-rc1 arm64 coordinator image, built without this change, has 15 nvidia-* packages.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

operator-requirements.txt pinned PyTorch's CPU wheel only on Linux x86_64.
Since the snapshot installer sends only local-version pins to the PyTorch
index, torch==2.13.0 on Linux aarch64 now resolves from PyPI, whose Linux
wheels depend on the NVIDIA CUDA libraries, so the arm64 coordinator and
runner images bundled them. Pin torch==2.13.0+cpu on every Linux platform.
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file fix pyamber labels Nov 10, 2026
@Yicong-Huang Yicong-Huang added release/v1.3 back porting to release/v1.3 release/v1.2 back porting to release/v1.2 labels Nov 10, 2026
@github-actions
github-actions Bot requested a review from xuang7 November 10, 2026 03:36
@github-actions

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required Backport Approvals check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.

Release branch Analysis
✅ release/v1.3 Change detected on this branch — label added; this fix is queued to backport here.
✅ release/v1.2 Change detected on this branch — label added; this fix is queued to backport here. @xuang7 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other. Review requested.

Auto-label run.

@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @renovate-bot
    You can notify them by mentioning @renovate-bot in a comment.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the change extending the CPU-only PyTorch pin to all Linux architectures.

No open issues 🎉

What changed in this PR

This PR prevents Linux aarch64 installations from pulling in NVIDIA CUDA dependencies by extending Amber’s existing CPU-only PyTorch pin to all Linux platforms, addressing #9396.

Changes:

  • Selects torch==2.13.0+cpu on all Linux architectures.
  • Preserves the plain torch==2.13.0 pin on non-Linux platforms and updates the explanatory comment.
File Description
amber/​operator-requirements.txt Broadens the Linux CPU-wheel pin and simplifies platform markers.

Review effort: Balanced

@codecov-commenter

codecov-commenter commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.91%. Comparing base (4fba9eb) to head (3fc8144).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9397      +/-   ##
============================================
+ Coverage     91.81%   91.91%   +0.10%     
  Complexity     5021     5021              
============================================
  Files          1277     1273       -4     
  Lines         56369    57712    +1343     
  Branches       7364     7511     +147     
============================================
+ Hits          51756    53048    +1292     
- Misses         2758     2827      +69     
+ Partials       1855     1837      -18     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø) Carriedforward from 4fba9eb
agent-service 99.53% <ø> (ø) Carriedforward from 4fba9eb
amber 85.79% <ø> (ø) Carriedforward from 4fba9eb
computing-unit-managing-service 64.05% <ø> (ø) Carriedforward from 4fba9eb
config-service 87.73% <ø> (ø) Carriedforward from 4fba9eb
file-service 82.31% <ø> (ø) Carriedforward from 4fba9eb
frontend 96.53% <ø> (-0.01%) ⬇️ Carriedforward from 4fba9eb
notebook-migration-service 83.77% <ø> (ø) Carriedforward from 4fba9eb
pyamber 98.00% <ø> (-0.51%) ⬇️
workflow-compiling-service 78.30% <ø> (ø) Carriedforward from 4fba9eb

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 2 better · 🔴 7 worse · ⚪ 6 noise (<±5%) · 0 without baseline

Compared against main 4fba9eb benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 602 0.367 14,737/41,174/41,174 us 🔴 +66.0% / 🔴 +198.1%
🔴 bs=100 sw=10 sl=64 1,374 0.839 70,484/99,447/99,447 us 🔴 +6.9% / 🟢 -21.6%
🟢 bs=1000 sw=10 sl=64 1,613 0.984 623,591/657,995/657,995 us 🟢 -10.0% / 🟢 +36.0%
Baseline details

Latest main 4fba9eb from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 602 tuples/sec 697 tuples/sec 886.32 tuples/sec -13.6% -32.1%
bs=10 sw=10 sl=64 MB/s 0.367 MB/s 0.425 MB/s 0.541 MB/s -13.6% -32.2%
bs=10 sw=10 sl=64 p50 14,737 us 12,817 us 11,452 us +15.0% +28.7%
bs=10 sw=10 sl=64 p95 41,174 us 24,808 us 13,814 us +66.0% +198.1%
bs=10 sw=10 sl=64 p99 41,174 us 24,808 us 16,981 us +66.0% +142.5%
bs=100 sw=10 sl=64 throughput 1,374 tuples/sec 1,387 tuples/sec 1,152 tuples/sec -0.9% +19.3%
bs=100 sw=10 sl=64 MB/s 0.839 MB/s 0.846 MB/s 0.703 MB/s -0.8% +19.4%
bs=100 sw=10 sl=64 p50 70,484 us 71,438 us 89,907 us -1.3% -21.6%
bs=100 sw=10 sl=64 p95 99,447 us 93,052 us 95,307 us +6.9% +4.3%
bs=100 sw=10 sl=64 p99 99,447 us 93,052 us 108,041 us +6.9% -8.0%
bs=1000 sw=10 sl=64 throughput 1,613 tuples/sec 1,590 tuples/sec 1,186 tuples/sec +1.4% +36.0%
bs=1000 sw=10 sl=64 MB/s 0.984 MB/s 0.971 MB/s 0.724 MB/s +1.3% +36.0%
bs=1000 sw=10 sl=64 p50 623,591 us 614,577 us 877,148 us +1.5% -28.9%
bs=1000 sw=10 sl=64 p95 657,995 us 730,837 us 924,448 us -10.0% -28.8%
bs=1000 sw=10 sl=64 p99 657,995 us 730,837 us 956,928 us -10.0% -31.2%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,332.31,200,128000,602,0.367,14737.32,41174.25,41174.25
1,100,10,64,20,1455.26,2000,1280000,1374,0.839,70484.19,99447.42,99447.42
2,1000,10,64,20,12400.48,20000,12800000,1613,0.984,623590.74,657995.44,657995.44

@xuang7 xuang7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@xuang7 xuang7 removed the release/v1.2 back porting to release/v1.2 label Nov 10, 2026
@mengw15
mengw15 enabled auto-merge November 10, 2026 03:57
@mengw15
mengw15 added this pull request to the merge queue Nov 10, 2026
Merged via the queue into apache:main with commit 5647f44 Nov 10, 2026
87 of 106 checks passed
@mengw15
mengw15 deleted the fix/9396-arm64-cpu-torch branch November 10, 2026 04:09
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened: draft #9398 (#9398) to release/v1.3, assigned to @mengw15 — needs manual work because the backported tree failed its pre-merge build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file fix pyamber release/v1.3 back porting to release/v1.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVIDIA CUDA shared libraries bundled via torch on Linux aarch64

6 participants