
I Built the Smallest LLM I Could to Understand How They Work
I use LLMs every day without knowing how they work, so I built the smallest one I could: a tiny transformer that writes Shakespeare one char...

I use LLMs every day without knowing how they work, so I built the smallest one I could: a tiny transformer that writes Shakespeare one char...

A practical, fully tested GPT implementation in PyTorch with causal attention, training, sampling, baselines, checkpoints, and 25 tests. Tra...