Illustration of a tokenizer pipeline

Build a Unigram Language Model Tokenizer from Scratch in Pure Python

This tutorial walks you through implementing a unigram language model tokenizer with EM training and subword regularization in pure Python. It showcases the algorithmic and systems skills that hiring managers look for.

September 29, 2026 · 6 min · 1118 words · martinuke0
Screenshot of the live merge‑tree visualizer

Hands‑on build of a pure‑Python BPE tokenizer with Huffman merge tree, live visualizer, and tiny LM demo—great for showcasing systems skills

A practical, pure‑Python BPE tokenizer with a Huffman‑coded merge tree, live visualizer, and character‑level LM demo that highlights systems engineering skills.

September 27, 2026 · 7 min · 1475 words · martinuke0
Cover image showing BPE tokenization process

Building a BPE Tokenizer from Scratch in Python

Implement a byte-level BPE tokenizer from scratch, test it, and extend it to production-grade tooling.

September 21, 2026 · 3 min · 575 words · martinuke0
A diagram of a BPE tokenizer pipeline

Build a BPE Tokenizer from Scratch: Parallel Vocab Builder, Priority‑Heap Merge Scheduler, Subword Regularization, and Streaming Encoder with LRU Caching

A hands‑on guide to building a production‑grade BPE tokenizer that demonstrates parallel processing, algorithmic scheduling, and caching strategies for hiring managers.

September 17, 2026 · 9 min · 1746 words · martinuke0
BPE tokenizer code

Building a BPE Tokenizer from Scratch in Pure Python

A hands‑on guide to implementing a byte‑pair encoding tokenizer in pure Python, covering vocabulary learning, encode/decode, and merge‑based subword segmentation.

September 16, 2026 · 1 min · 71 words · martinuke0
Feedback