mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-04 06:35:23 +00:00
Added dev/runmac_overnight.sh for optimized Mac training. Updated device-specific logic throughout dataloader, GPT, Muon optimizer, and training scripts to avoid CUDA-only features on MPS/CPU (e.g., torch.compile, pin_memory, non_blocking, bfloat16). Relaxed torch version constraints in pyproject.toml and removed Linux/CUDA-specific PyTorch config for better macOS support. |
||
|---|---|---|
| .. | ||
| gen_synthetic_data.py | ||
| generate_logo.html | ||
| nanochat.png | ||
| repackage_data_reference.py | ||
| runcpu.sh | ||
| runmac_overnight.sh | ||