I work on a Mac and use the environment-cpu.yml file to setup my Anaconda environment. If needed, you can remove pytorch and then install it from source following the excellent instructions on the pytorch site as well as described here. You want to install the 0.3.1 version with CPU-only support.
You won’t get GPU support but you can still do a lot of coding and ensuring things will run with a sample size before needing to push your code to AWS or whatever.
Believe me when I tell you getting things to run on a Mac is a pain and not worth it. I’ve gone down that road and it was maddening.