Build a GPT-2‑Compatible BPE Tokenizer from Scratch in Pure Python
Create a from‑scratch BPE tokenizer in Python, matching tiktoken’s GPT‑2 model, with regex pre‑tokenization, merge‑rank encoding, and a trainer that can be verified bit‑for‑bit — a concrete, runnable project for your CV.