Skip to content

Series

LLM foundations

The mathematical and engineering foundations behind large language models, built article by article.

In this series

  1. 1

    Attention, from vectors to probabilities

    A worked walkthrough of scaled dot-product attention - the one equation every transformer article assumes you already know.

  2. 2

    Tokenization is where models learn your language

    Byte-pair encoding explained by building one - and why tokenization silently shapes what a model can and cannot do.