Track 01: Tokens & Language Modeling
Every input and output of an LLM — a prompt, a response, an image description, a tool call — is, underneath, a sequence of tokens. Context window limits, API pricing, why a model can't count the letters in a word, why non-English text costs more: all of it traces back to tokenization. This track goes from raw bytes through the tokenization algorithms, then through how a model turns token probabilities into the text you actually see.
Modules
- What Is a Token
- Text Encoding: Bytes, Unicode and UTF-8
- Why Not Characters, Why Not Words
- Byte-Pair Encoding (BPE) Explained
- Building a BPE Tokenizer From Scratch
- WordPiece and SentencePiece
- Unigram Language Model Tokenization
- Comparing Tokenizers Across Models
- Vocabulary Size Tradeoffs
- Special Tokens
- Chat Templates and Message Formatting
- Context Windows Explained
- Token Cost Economics
- Tokenization Pitfalls and Failure Modes
- Multilingual Tokenization
- Next-Token Prediction: From Logits to Probabilities
- Sampling Strategies: Greedy, Temperature, Top-k, Top-p
- Capstone Project