-
Notifications
You must be signed in to change notification settings - Fork 0
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
Set specific pytorch version for major platforms (linux, win32, darwin) #132
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #132 +/- ##
=======================================
Coverage 91.40% 91.40%
=======================================
Files 10 10
Lines 814 814
=======================================
Hits 744 744
Misses 70 70 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just looked at pytorch.org again and it seems there is at least version 2.3.0
for OSX, see https://pytorch.org/get-started/previous-versions/#osx-1. Can you investigate, if the reasoning from the PR description is really correct? The goal is to really drill down on the issue and at the end having a fix with the smallest possible surface. These kinds of specific version settings need to be (more or less manually) maintained and the fix needs to be ported to all the other PIE repos, too, so it may have a certain impact.
Took me some time, but it seems the issue on my side occurred because PyTorch no longer supports macOS x86_64 (Intel Chips) from Release 2.3.0 on, as Apple stopped building Macs with Intel Chips. See https://dev-discuss.pytorch.org/t/pytorch-macos-x86-builds-deprecation-starting-january-2024/1690 |
Thanks a lot of your investigation! Can we define the version explicitly for MacOS on |
Current dependency setup failed on macOS with following error message:
This is due to the fact that torch version 2.3.1 apparently does not exist for macOS currently. Therefore, we adjusted the version of torch in pyproject.yml to the range
>=2.1.0, <2.3.0
for macOS.EDIT: This seems to happen only on Intel chips (
x86_64
), so we adjust the setting accordingly. However, it looks like some Apple chips are also recognized asx86_64
which results in capping the max version also for these. We should keep this in mind.