Skip to content
Léonel Vodounou
Back to the blog
Build a Large Language Model (from Scratch)

Reading series

Build a Large Language Model (from Scratch)

By Sebastian Raschka

Chapter-by-chapter reading notes on Sebastian Raschka's book. A complete path to understanding and building an LLM from the ground up.

LLMDeep LearningNLPTransformers

Chapters 4/7

  1. 00

    Introduction to PyTorch

    Chapter 0: A hands-on introduction to PyTorch, tensors, computation graphs and autograd.

    65 min read

  2. 01

    Understanding large language models

    Reading notes on Chapter 1: an introduction to LLMs, the transformer architecture, and the pretraining and fine-tuning process.

    12 min read

  3. 02

    Working with text data

    Chapter 2: Tokenization, BPE encoding, and preparing data for language models.

    27 min read

  4. 03

    Coding attention mechanisms

    A deep dive into the heart of LLM architecture: simplified self-attention, trainable weights, causal attention and multi-head attention.

    52 min read

  5. 04

    Implementing a GPT model from scratch

    Coming soon

  6. 05

    Pretraining on unlabeled data

    Coming soon

  7. 06

    Fine-tuning for classification and instruction following

    Coming soon