Skip to content

karpathy.github.io · Blog

Andrej Karpathy

  • Blog
  • karpathy.github.io

microgpt

About this

This is a brief guide to my new art project microgpt, a single file of 200 lines of pure Python with no dependencies that trains and inferences a GPT. This file contains the full algorithmic content of what is needed: dataset of documents, tokenizer, autograd engine, a GPT-2-like neural network…

Continue at source

Key topics

Report or remove