Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinned torch==2.2.2 breaks CI due to numpy>=2.0 #812

Closed
edoaltamura opened this issue Jul 2, 2024 · 0 comments · Fixed by #816
Closed

Pinned torch==2.2.2 breaks CI due to numpy>=2.0 #812

edoaltamura opened this issue Jul 2, 2024 · 0 comments · Fixed by #816
Assignees
Labels
dependencies 🔗 Involves external dependency libraries type: ci 🔧 Related to Continuous Integration workflows
Milestone

Comments

@edoaltamura
Copy link
Collaborator

What should we add?

The CI tests involving TorchConnector fail with

tgrad = tpredict.grad.detach().numpy()
RuntimeError: Numpy is not available

https://github.com/qiskit-community/qiskit-machine-learning/actions/runs/9753721897/job/26919448830#step:8:2473
because version 2.2.2 of PyTorch, pinned in #796, is no longer compatible with Numpy following the v. 2.0 release.

Proposed solution

Release the torch==2.2.2 constraint to install the latest Numpy 2.0-compatible version (>=2.3.1), keeping in mind the UTF-8 issue in PyTorch 2.3.0, #797 and pytorch/pytorch#124897, that was affecting the CI tests on Windows platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 🔗 Involves external dependency libraries type: ci 🔧 Related to Continuous Integration workflows
Projects
None yet
1 participant