You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there Mr.Daniel
First of all I wanna thank you so much for the PyTorch tutorial that you’ve posted on YouTube, it really is a work of art.
I just have a little question if you don’t mind me asking.
I own an m1 MacBook Air and I had to set up PyTorch on my MacBook (using your steps of course 😉). Everything was working flawlessly until in 01_pytorch_workfkow I ran the training loop using the GPU (mps) having both the model and the data sent to the GPU where python gave me an error (NotImplelemntedError) and it prompted me to use a flag (PYTORCH_ENABLE_MPS_FALLBACK=1) which I set before activating my environment. However, the error is still there even after I set the flag. Now of course I can just run the code on the CPU but I want to utilize the GPU whenever it is possible thus I want to set this specific flag. I was wondering whether you have any ideas on how to solve this problem maybe I didn’t set the flag correctly or something else that I’m missing and thank you again for everything!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there Mr.Daniel
First of all I wanna thank you so much for the PyTorch tutorial that you’ve posted on YouTube, it really is a work of art.
I just have a little question if you don’t mind me asking.
I own an m1 MacBook Air and I had to set up PyTorch on my MacBook (using your steps of course 😉). Everything was working flawlessly until in 01_pytorch_workfkow I ran the training loop using the GPU (mps) having both the model and the data sent to the GPU where python gave me an error (NotImplelemntedError) and it prompted me to use a flag (PYTORCH_ENABLE_MPS_FALLBACK=1) which I set before activating my environment. However, the error is still there even after I set the flag. Now of course I can just run the code on the CPU but I want to utilize the GPU whenever it is possible thus I want to set this specific flag. I was wondering whether you have any ideas on how to solve this problem maybe I didn’t set the flag correctly or something else that I’m missing and thank you again for everything!
Beta Was this translation helpful? Give feedback.
All reactions