Skip to content

Bump minimum torch to 2.4#3311

Closed
saitcakmak wants to merge 1 commit into
mainfrom
bump-min-torch-2.4
Closed

Bump minimum torch to 2.4#3311
saitcakmak wants to merge 1 commit into
mainfrom
bump-min-torch-2.4

Conversation

@saitcakmak
Copy link
Copy Markdown
Contributor

Torch <2.4 was built against the numpy 1.x C ABI and fails at import time when paired with numpy 2.x ('numpy not available'). With modern scipy, jax, and scikit-learn all requiring numpy>=2, capping numpy in the min-req CI job is no longer feasible. Torch 2.4 (Jul 2024) is the first release with stable numpy 2.x ABI support, so bump the floor there.

Before: https://github.com/meta-pytorch/botorch/actions/runs/26538884146/job/78174986399 fails with Numpy not available.

After: https://github.com/meta-pytorch/botorch/actions/runs/26543456932/job/78190062048 the previously failing tests are passing

Torch <2.4 was built against the numpy 1.x C ABI and fails at import time
when paired with numpy 2.x ('numpy not available'). With modern scipy,
jax, and scikit-learn all requiring numpy>=2, capping numpy in the
min-req CI job is no longer feasible. Torch 2.4 (Jul 2024) is the first
release with stable numpy 2.x ABI support, so bump the floor there.
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label May 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 27, 2026

@saitcakmak has imported this pull request. If you are a Meta employee, you can view this in D106575162.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (e533cd3) to head (0c6d58f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3311   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         226      226           
  Lines       22470    22470           
=======================================
  Hits        22466    22466           
  Misses          4        4           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 28, 2026

@saitcakmak merged this pull request in 720e8be.

@saitcakmak saitcakmak deleted the bump-min-torch-2.4 branch June 4, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant