SentencePiece tokenizer concept

Building a SentencePiece-Style Unigram Tokenizer in Pure Python

A practical guide to implementing a unigram tokenizer with EM training and Viterbi segmentation, demonstrating systems engineering skills for your portfolio.

November 14, 2026 · 8 min · 1494 words · martinuke0
A visualization of merge operations on a token grid.

BPE Vocabulary Compression via Optimal Merge Scheduling

Learn to build a BPE tokenizer that compresses vocabulary by scheduling merges optimally, with runnable Python code and a roadmap to production.

November 3, 2026 · 8 min · 1628 words · martinuke0
Short description of the cover image subject.

Building a Byte-Pair Encoding Tokenizer with Learned Merge Priorities and Vocabulary Pruning in Pure Python

A hands‑on guide to building a byte‑pair encoding tokenizer with learned merge priorities and vocabulary pruning in pure Python, perfect for showcasing systems expertise.

November 2, 2026 · 7 min · 1303 words · martinuke0
Diagram of a byte-level BPE tokenizer pipeline

Building a Production-Grade Byte-Level BPE Tokenizer in Pure Python

A step-by-step guide to building a byte-level BPE tokenizer with regex pre-tokenization, trie encoding, and JSON serialization in pure Python.

October 21, 2026 · 8 min · 1616 words · martinuke0
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
Feedback