- Video
- YouTube
- 1 h 58 min
The spelled-out intro to language modeling: building makemore
About this
We implement a bigram character-level language model, which we will further complexify in followup videos into a modern Transformer language model, like GPT. In this video, the focus is on (1) introducing torch.
Continue at sourceKey topics
Chapters
- 0:00intro
- 3:03reading and exploring the dataset
- 6:24exploring the bigrams in the dataset
- 9:24counting bigrams in a python dictionary
- 12:45counting bigrams in a 2D torch tensor ("training the model")
- 18:19visualizing the bigram tensor
- 20:54deleting spurious (S) and (E) tokens in favor of a single . token
- 24:02sampling from the model




