As soon as I run this cell, the kernel crashes on the highlighted code. It works fine on AWS but I am getting this issue when I run the lab through jupyter notebook locally. I tried everything - upgrading torch, torchdata, transformers to the lates versions. For that matter, I also upgraded my Mac OS. I am currently using Apple M1 Max chip based machine with 32GB RAM and OS version - 15.0 (24A335) (Sequoia).
When I tried running this lab on a VM, installed on the same MAC machine, it worked like a charm. Is there a way to fix it so that I can run the lab locally on my machine?
@paulinpaloalto @TMosh @rmwkwok Can you help here?
Sorry, I’m not a mentor for that course. I do not know its content very well.
Sorry, I am also not a mentor for that course. But did they tell you that running locally was supposed to work? What type of VM was it in which you got it to work locally? If it is some flavor of linux or Windows, then perhaps the M1 Mac just does not have support for some of the required software packages.
Just as a general matter, it’s essentially impossible for the course teams and the mentors here to provide IT support for all possible execution environments. How many variants of Windows and linux are there by this point in 2024? I had already lost count as of 2015. You can try searching more widely and hope that StackExchange is your friend. Or perhaps you get lucky and another one of your classmates here on the forums has already encountered and solved this problem …
@paulinpaloalto There was no suggestion in the course to run it locally. I just wanted to set that up so that I can take thing forward from there to explore more on my use case. The VM is ubuntu based.
Not just this, I tried the same setup on Apple Intel and Apple M2 Max based machine and it works smoothly on both of these. I just wanted to know if this is a known issue for apple M1 machines and if yes then is there any resolution to this?
Sorry, but I simply don’t know the answer. I can only suggest that you try googling that. The hope is that you’re not the first person to encounter the issue. E.g. try searching “kernel hangs running jupyter notebook M1 Mac”. That gets me this StackExchange article.