Nanogpt

Minimal GPT pretraining and fine-tuning (nanoGPT). The simplest, fastest repository for training medium-sized GPTs with ~300-line model.py and ~300-line train.py. Reproduces GPT-2 (124M) on OpenWebText. Supports DDP multi-GPU/multi-node, character-level training, weight loading from HuggingFace GPT-2 checkpoints, and simple finetuning. Note: superseded by nanochat for new projects; this repo remains valuable as a reference implementation and learning tool.

mkurman 69f574a 2.3 KB Updated

File contents

mkurman/zorai/tree/main/skills/scientific-skills/nanogpt commit 69f574a9c3

Frequently asked questions

npx skillmds@latest add mkurman/nanogpt