Repository navigation
fix(deps, pyamber): pin the CPU torch wheel on all Linux platforms - #9397
Conversation
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.
Backport auto-label reportThis
|
Automated Reviewer SuggestionsBased on the
|
There was a problem hiding this comment.
🟢 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+cpuon all Linux architectures. - Preserves the plain
torch==2.13.0pin 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 Report✅ All modified and coverable lines are covered by tests. 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
*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:
|
|
| 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
What changes were proposed in this PR?
amber/operator-requirements.txtpinned PyTorch's CPU wheel only on Linux x86_64. Since #8812, the snapshot installer sends only local-version pins to the PyTorch index, sotorch==2.13.0on Linux aarch64 resolves from PyPI, whose Linux wheels depend on the NVIDIA CUDA libraries.This PR pins
torch==2.13.0+cpuon every Linux platform. Linux x86_64 gets the same wheel as before, and macOS and Windows still installtorch==2.13.0from PyPI.Any related issues, documentation, discussions?
Closes #9396. Same fix as #4473, for aarch64.
How was this PR tested?
bin/dockerfiles/snapshot/test_install.shpasses.install.sh,PACKAGE_SNAPSHOT=2026-11-09) in linux/arm64 and linux/amd64 containers. Both installtorch 2.13.0+cpuand nonvidia-*,tritonorcuda-*packages. The1.3.0-incubating-rc1arm64 coordinator image, built without this change, has 15nvidia-*packages.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)