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
Animated visualization of BPE merges building a vocabulary table.

Build a Byte-Level BPE Tokenizer From Scratch: A Portfolio Project That Actually Signals Systems Skill

Ship a production-flavored BPE tokenizer end to end: byte-level pretokenization, regex splitting, merge learning, and a Tkinter visualization that animates each merge so you can actually see vocabulary grow.

September 7, 2026 · 12 min · 2388 words · martinuke0
Feedback