Error when building from source M1 Mac

Hi, is there an updated tutorial for building/installing pytorch from source for Mac OS X M1? Every guide iv’e found (including the guide on the pytorch repo) leads to an explosion of errors and the build fails. Mainly surrounding the build step FAILED: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_functions_3.cpp.o

Any help would be much appreciated. Thanks!

i’m on M1 and was able to build following the official guide but with a couple of modifications. wrote up my experiences here: Debugging PyTorch MPS native code | by d; DROP TABLE `tweet | Jan, 2023 | Medium