esm icon indicating copy to clipboard operation
esm copied to clipboard

No support for Apple Silicon Devices

Open Ruchir3003 opened this issue 1 year ago • 2 comments

There is currently no support for Apple Silicon Devices. If the team could add a check for mps devices, that would be great for Apple users

Ruchir3003 avatar Aug 04 '24 05:08 Ruchir3003

We're not planning to support apple silicon, if it's something you need and have some idea of how to do this, please send in a PR!

ebetica avatar Aug 06 '24 16:08 ebetica

Here's the PR: https://github.com/evolutionaryscale/esm/pull/99

PyTorch already supports Mac (MPS): https://pytorch.org/docs/stable/notes/mps.html

Note that MPS does not support the embedding operations so the following environment variable has to be set to allow PyTorch to fallback for those operations: export PYTORCH_ENABLE_MPS_FALLBACK=1

@Ruchir3003 if you want to try it, you can replace the esm in your requirements.txt with this: git+https://github.com/imranq2/esm.git@fix-for-mac-silicon#egg=esm

imranq2 avatar Sep 02 '24 01:09 imranq2