Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 283 Bytes

MacGPUEnv.md

File metadata and controls

19 lines (13 loc) · 283 Bytes

How to use GPU on Mac M1/2

  1. Install xcode tools
xcode-select --install
  1. Install llvm
brew install llvm libomp
  1. Install PyTorch for M1/2
pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu