@Fahim could you also share with us your fastai version? Iâm getting this error installing the pytorch nightly build with pip:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fastai 2.7.10 requires torch<1.14,>=1.7, but you have torch 1.14.0.dev20221206 which is incompatible.
I believe the latest FastAI is not compatible with Pytorch versions greater than 1.13 ⌠I havenât used FastAI in a while. So my inputâs probably not very relevant at this point, sorry.
Adding default_device(torch.device("mps")) after importing fastai should do the trick. Works fine for me in chapter 1 of the book at least, on a base MacBook Pro 14" M1.
I have successfully ran the version just like the medium post. But I am facing issues if I am trying to augment the data, it shows error. Another issue I am facing while using learn.lr_find(), also itâs showing error. I used the same code in kaggle, it runs just fine on cuda. I was running pets data. Can anyone help me with these two issues?
it is irrespective. tried each method.
it is ok - if M1/2 is a priority it will get updated.
until then - just review FastAi but use Pytorch Independently on Apple silicon.
I managed to get both my M2 Mac Book air and M1 Mac Mini to run the chapter1 code with instructions from this address:
with one exception, instead of the overnight channel, I used the pytorch channel to install. M1 is much slower than M2, about 10x. But M2 is quiet decent.
Yes, fastai has been successfully used on Apple M1 chips. Users report smooth performance and compatibility, leveraging the chipâs power for efficient machine learning tasks.