All lessons
tokenization
2 lessons tagged tokenization: free, quiz-checked micro-lessons.
AI
intermediateLLM Tokenization in Depth: BPE, Byte-Level BPE, and SentencePiece
A rigorous tour of how modern LLMs split text into tokens — covering byte-pair encoding, GPT-2/Llama's byte-level variant, SentencePiece, vocabulary design trade-offs, and why your tokenizer silently determines multilingual fairness, code quality, and arithmetic ability.
12 steps·~18 min
Programming
advancedLexical Analysis: Source to Tokens
Before a compiler can understand your code it has to chop it into meaningful pieces. Learn how scanners work, how regular expressions become finite automata, why maximal munch is the rule, and what a real token stream looks like — the foundation every later compiler phase depends on.
9 steps·~14 min
