-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add instructions for a conda environment on mac #284
base: main
Are you sure you want to change the base?
Conversation
@jwallwork23 This allows users to build FTorch from inside conda. |
d042b8b
to
39a7a2f
Compare
build FTorch and utilise the MPS backend on Apple Silicon. Co-authored-by: Karl Harrison <[email protected]>
39a7a2f
to
56175b4
Compare
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.
This reads well to me. I'm not able to test it as I don't have access to a Mac, but am otherwise happy with this.
(according to https://pytorch.org/). However, the version of PyTorch provided by | ||
`pip install torch` uses an ARM binary for LibTorch which works on Apple Silicon. | ||
At the time of writing [there are issues](https://github.com/pytorch/pytorch/issues/143571) | ||
building FTorch on apple silicon when linking to downloaded `LibTorch` binaries or |
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.
building FTorch on apple silicon when linking to downloaded `LibTorch` binaries or | |
building FTorch on Apple Silicon when linking to downloaded `LibTorch` binaries or |
We install PyTorch using `pip` from within the conda environment which should include | ||
the MPS backend. | ||
|
||
FTorch can then be build with a CMake command similar to the following: |
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.
FTorch can then be build with a CMake command similar to the following: | |
FTorch can then be built with a CMake command similar to the following: |
Can successfully build FTorch and utilise the MPS backend on Apple Silicon.
This provides an alternative for users on mac, and also acts as a workaround whilst we wait for pytorch/pytorch#143571 to be resolved.