Jan 17, 2023

The simplest, fastest repository for training/finetuning medium-sized GPTs.

It's a re-write of minGPT, which I think became too complicated, and which I am hesitant to now touch. Still under active development, currently working to reproduce GPT-2 on OpenWebText dataset. The code itself aims by design to be plain and readable: is a ~300-line boilerplate training loop and a ~300-line GPT model definition, which can optionally load the GPT-2 weights from OpenAI. That's it.

"Let's build GPT: from scratch, in code, spelled out."

Walks through an even basic-er version of this code

↑ up