Using GPT-Neo on an M1 under MacOS 12
I’ve tried to spin off tensorflow locally and play with GPT-Neo on my M1 mac. Found some official reference online beforehand, so my intentions should have been supported out of the box without any headaches. Buuut, apparently this doesn’t totally apply for MacOS 12 (Monterey). That’s why I’ve fixed the process and I’m documenting it (for myself) down below. Setting up the env Steps: install xcode & brew MiniForge3 (don’t use Anaconda) -> download the arm64 sh from GitHub setup conda for your shell (fish in my case) create a new virtualenv with conda and switch on it set up tensorflow + tensorflow-metal for GPU (in case you plan to use it afterwards) install jupyter install happytransformer and use it for generating text leveraging EleutherAI/gpt-neo Some detailed steps 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # set up conda for fish ~/miniforge3/bin/conda init fish # create and use a new env conda create --name tf python=3....