Skip to content

Commit 720e8be

Browse files
saitcakmakmeta-codesync[bot]
authored andcommitted
Bump minimum torch to 2.4 (#3311)
Summary: 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 Pull Request resolved: #3311 Reviewed By: hvarfner Differential Revision: D106575162 Pulled By: saitcakmak fbshipit-source-id: a430aba20f16bba9d58147aa94bfc1458bc01cc6
1 parent e533cd3 commit 720e8be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"pyre_extensions",
2626
"gpytorch>=1.15.2",
2727
"linear_operator>=0.6.1",
28-
"torch>=2.2",
28+
"torch>=2.4",
2929
"jax>=0.4.35,<0.10",
3030
"jaxlib>=0.4.35,<0.10",
3131
"numpyro>=0.18.0",

0 commit comments

Comments
 (0)