Skip to content
  • 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 source

Key topics

Chapters

  1. 0:00intro
  2. 3:03reading and exploring the dataset
  3. 6:24exploring the bigrams in the dataset
  4. 9:24counting bigrams in a python dictionary
  5. 12:45counting bigrams in a 2D torch tensor ("training the model")
  6. 18:19visualizing the bigram tensor
  7. 20:54deleting spurious (S) and (E) tokens in favor of a single . token
  8. 24:02sampling from the model
All 24 chapters on YouTube
Report or remove