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 visualization of a sliding window compressing a long prompt into a fixed-length context window.

Build a Sliding-Window Prompt Compressor from Scratch in Pure Python

A hands-on guide to building a sliding-window prompt compressor from scratch in pure Python, using a learned importance scorer to evict low-relevance tokens and keep attention focused within a fixed context budget.

September 20, 2026 · 13 min · 2689 words · martinuke0
Byte-level BPE tokenizer source code on a laptop screen

Byte-Level BPE Tokenizer: A Hands-On Build Guide for Your CV

A practical, step-by-step guide to building a byte-level BPE tokenizer with regex pre-tokenization, signaling real NLP systems engineering skill to hiring managers.

September 17, 2026 · 10 min · 2069 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
Code editor showing a tokenizer implementation with merge queue diagrams

Build a Streaming Byte-Level BPE Tokenizer: A Portfolio Project That Signals Real Systems Skill

A hands-on build guide for a streaming byte-level BPE tokenizer with persistent merge queues, atomic byte-loss tracking, and reversible byte fallback for arbitrary Unicode.

September 15, 2026 · 16 min · 3221 words · martinuke0
Feedback