Illustration of a Python tokenizer flowing through bytes and tokens

Byte‑Level BPE Tokenizer with GPT‑4 Pre‑tokenization and tiktoken‑Compatible Serialization in Pure Python

A step‑by‑step pure Python implementation of a byte‑level BPE tokenizer with GPT‑4 pre‑tokenization and tiktoken‑compatible output, ideal for demonstrating systems skills.

November 26, 2026 · 8 min · 1555 words · martinuke0
Python code representing a byte-level BPE tokenizer

Byte‑Level BPE Tokenizer from Scratch in Pure Python

A hands‑on guide to implementing a GPT‑2‑style tokenizer from scratch, complete with runnable Python code and round‑trip byte decoding.

November 18, 2026 · 10 min · 2020 words · martinuke0
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
Python code on a laptop screen with a binary tree diagram

Hands‑On Build Guide: Pure‑Python Byte‑Level BPE Tokenizer with Trie‑Based Merges

A step‑by‑step guide to implementing a byte‑level BPE tokenizer in pure Python, using a trie for merge rules and JSON serialization, perfect for a portfolio CV.

November 14, 2026 · 10 min · 2075 words · martinuke0
Feedback