MacGPUEnv.md 193 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# How to use GPU on Mac M1/2

1. Install xcode tools

```
xcode-select --install
```

2. Install llvm

```
brew install llvm libomp
```

3. Install torch 2.1.2

```
pip install torch==2.1.2
```