Python code editor with token visualization

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.

November 17, 2026 · 11 min · 2174 words · martinuke0
Python code on a notebook with BPE tokenization diagram

Hands-On Build Guide: Pure Python BPE Tokenizer for Your Portfolio CV

A step-by-step guide to implementing a byte-pair encoding tokenizer in pure Python, complete with code, testing, and production extensions.

November 16, 2026 · 9 min · 1829 words · martinuke0
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
Feedback