Your first training run
Free to readTrain a tiny language model from scratch with PyTorch
Build a 470,528-parameter causal language model on a CPU. Train it, inspect validation loss, save a checkpoint and resume the same run.
CPU · Python 3.12 · no GPU required
A trained byte-level model, a resumable checkpoint and sampled text.
CPU workflow executed
















