make mentions of mps in docs. ty good people in issue #28

This commit is contained in:
Andrej Karpathy committed 2023-01-20 21:28:20 +00:00
1 parent a6bffeee59
commit 1f77d03024
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -125,6 +125,8 @@ $ python train.py config/train_shakespeare_char.py --device=cpu --compile=False
Where we decrease the context length to just 64 characters and only use a batch size of 8.
Finally, on Apple Silicon Macbooks you can use device `--device mps` ("Metal Performance Shaders"), which can significantly accelerate training (2-3X). You will need a specific version of PyTorch. See [Issue 28](https://github.com/karpathy/nanoGPT/issues/28).
## benchmarking
For model benchmarking `bench.py` might be useful. It's identical to what happens in the meat of the training loop of `train.py`, but omits much of the other complexities.