Skip to content

fix(deps, pyamber, v1.3): pin the CPU torch wheel on all Linux platforms - #9398

Merged
mengw15 merged 1 commit into
release/v1.3from
backport/9397-pin-the-cpu-torch-wheel-on-all-linux-pla-v1.3
Nov 10, 2026
Merged

mengw15 merged 1 commit into
release/v1.3from
backport/9397-pin-the-cpu-torch-wheel-on-all-linux-pla-v1.3

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Automated backport of #9397 to release/v1.3.

Source: 5647f44 · automation run

Any related issues, documentation, discussions?

Backport of #9397. Originally linked #9396.

How was this PR tested?

Release-branch CI runs on this branch once the build is fixed and this PR is marked ready for review.

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

No.

…9397)

### 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?

(backported from commit 5647f44)

Generated-by: Claude Code (claude-opus-5-5)
@github-actions

Copy link
Copy Markdown
Contributor Author

The cherry-pick applied cleanly but the backported tree failed its pre-merge build. Fix the build on this branch, then mark this PR ready for review.

@mengw15 mengw15 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

@mengw15 mengw15 closed this Nov 10, 2026
@mengw15 mengw15 reopened this Nov 10, 2026
@mengw15
mengw15 enabled auto-merge November 10, 2026 04:22
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file pyamber labels Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Automated Reviewer Suggestions

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

  • No candidates found from git blame history.

@github-actions

Copy link
Copy Markdown
Contributor Author

⚠️ Benchmark changes need a look

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

Compared against main b7d7171 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 535 0.326 18,531/30,962/30,962 us 🔴 +53.6% / 🔴 +124.1%
🔴 bs=100 sw=10 sl=64 1,242 0.758 76,946/106,897/106,897 us 🔴 +11.7% / 🟢 -14.4%
🟢 bs=1000 sw=10 sl=64 1,506 0.919 658,868/708,024/708,024 us 🟢 -5.8% / 🟢 +27.0%
Baseline details

Latest main b7d7171 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 535 tuples/sec 642 tuples/sec 886.32 tuples/sec -16.7% -39.6%
bs=10 sw=10 sl=64 MB/s 0.326 MB/s 0.392 MB/s 0.541 MB/s -16.8% -39.7%
bs=10 sw=10 sl=64 p50 18,531 us 16,703 us 11,452 us +10.9% +61.8%
bs=10 sw=10 sl=64 p95 30,962 us 20,152 us 13,814 us +53.6% +124.1%
bs=10 sw=10 sl=64 p99 30,962 us 20,152 us 16,981 us +53.6% +82.3%
bs=100 sw=10 sl=64 throughput 1,242 tuples/sec 1,282 tuples/sec 1,152 tuples/sec -3.1% +7.9%
bs=100 sw=10 sl=64 MB/s 0.758 MB/s 0.782 MB/s 0.703 MB/s -3.1% +7.8%
bs=100 sw=10 sl=64 p50 76,946 us 77,578 us 89,907 us -0.8% -14.4%
bs=100 sw=10 sl=64 p95 106,897 us 95,728 us 95,307 us +11.7% +12.2%
bs=100 sw=10 sl=64 p99 106,897 us 95,728 us 108,041 us +11.7% -1.1%
bs=1000 sw=10 sl=64 throughput 1,506 tuples/sec 1,480 tuples/sec 1,186 tuples/sec +1.8% +27.0%
bs=1000 sw=10 sl=64 MB/s 0.919 MB/s 0.903 MB/s 0.724 MB/s +1.8% +27.0%
bs=1000 sw=10 sl=64 p50 658,868 us 673,446 us 877,148 us -2.2% -24.9%
bs=1000 sw=10 sl=64 p95 708,024 us 751,666 us 924,448 us -5.8% -23.4%
bs=1000 sw=10 sl=64 p99 708,024 us 751,666 us 956,928 us -5.8% -26.0%
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,373.95,200,128000,535,0.326,18530.77,30962.34,30962.34
1,100,10,64,20,1609.97,2000,1280000,1242,0.758,76946.28,106897.48,106897.48
2,1000,10,64,20,13277.44,20000,12800000,1506,0.919,658868.34,708024.13,708024.13

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.83%. Comparing base (b7d7171) to head (74a77a1).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##             release/v1.3    #9398   +/-   ##
===============================================
  Coverage           93.83%   93.83%           
  Complexity           4768     4768           
===============================================
  Files                1190     1190           
  Lines               48463    48463           
  Branches             5858     5858           
===============================================
  Hits                45477    45477           
  Misses               1538     1538           
  Partials             1448     1448           
Flag Coverage Δ *Carryforward flag
access-control-service 81.00% <ø> (ø) Carriedforward from b7d7171
agent-service 99.33% <ø> (ø) Carriedforward from b7d7171
amber 89.37% <ø> (ø) Carriedforward from b7d7171
computing-unit-managing-service 73.67% <ø> (ø) Carriedforward from b7d7171
config-service 87.00% <ø> (ø) Carriedforward from b7d7171
file-service 86.32% <ø> (ø) Carriedforward from b7d7171
frontend 96.89% <ø> (ø) Carriedforward from b7d7171
notebook-migration-service 79.31% <ø> (ø) Carriedforward from b7d7171
pyamber 98.18% <ø> (ø)
workflow-compiling-service 77.58% <ø> (ø) Carriedforward from b7d7171

*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.

@mengw15
mengw15 added this pull request to the merge queue Nov 10, 2026
Merged via the queue into release/v1.3 with commit 177ed20 Nov 10, 2026
26 checks passed
@mengw15
mengw15 deleted the backport/9397-pin-the-cpu-torch-wheel-on-all-linux-pla-v1.3 branch November 10, 2026 05:16
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 pyamber

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants