Prachi
(Prachi Jadhav)
1
Hi there,
I have an Apple M2 Max which has mps device, I am using torch and huggingface for finetuning a transformer.
I am facing error:
RuntimeError: MPS does not support cumsum op with int64 input
platform: macOS-13.5.2-arm64-arm-64bit
Libraries version:
Python==3.10.10
torch==2.0.1
I used this command and restarted still doesn’t solve the problem:
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
Appreciate any help!
2 Likes
Mah_Neh
(Mah Neh)
2
This may help
I’m running M1 and no problems but using very simple stuff (just CNNs)
I see that you are already running Ventura though. Maybe wiping all out and reinstalling works.
Prachi
(Prachi Jadhav)
3
Thanks for the resource @Mah_Neh,
Yes, I have Ventura.
An easy trick that worked was uninstalling the torch (that I had not done previously) and reinstalling it with the following command:
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
1 Like