1
0
mirror of https://github.com/osmarks/nanogpt-experiments.git synced 2025-10-21 10:37:44 +00:00

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

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

View File

@@ -67,7 +67,7 @@ min_lr = 6e-5 # minimum learning rate, should be ~= learning_rate/10 per Chinchi
# DDP settings
backend = 'nccl' # 'nccl', 'gloo', etc.
# system
device = 'cuda' # examples: 'cpu', 'cuda', 'cuda:0', 'cuda:1', etc.
device = 'cuda' # examples: 'cpu', 'cuda', 'cuda:0', 'cuda:1' etc., or try 'mps' on macbooks
dtype = 'bfloat16' # 'float32' or 'bfloat16'
compile = True # use PyTorch 2.0 to compile the model to be faster
# -----------------------------------------------------------------------------