Repository navigation
fix(deps, pyamber, v1.3): pin the CPU torch wheel on all Linux platforms - #9398
Conversation
…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)
|
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. |
Automated Reviewer SuggestionsBased on the
|
|
| 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 Report✅ All modified and coverable lines are covered by tests. 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
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.