mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-23 01:08:40 +00:00
Pickling tiktoken's native Rust Encoding object triggers non-deterministic heap corruption (SIGSEGV, SIGABRT) on ARM Docker (aarch64) with glibc malloc. This switches save/load to a portable JSON format and adds weights_only=True to torch.load for safety. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| checkpoint_manager.py | ||
| common.py | ||
| core_eval.py | ||
| dataloader.py | ||
| dataset.py | ||
| engine.py | ||
| execution.py | ||
| flash_attention.py | ||
| fp8.py | ||
| gpt.py | ||
| logo.svg | ||
| loss_eval.py | ||
| optim.py | ||
| report.py | ||
| tokenizer.py | ||
| ui.html | ||