A code editor displaying a Python BPE tokenizer implementation with terminal output showing tokenization results.

Build a BPE Tokenizer From Scratch in Pure Python

A hands-on build guide for a Byte Pair Encoding tokenizer in pure Python — complete with architecture diagrams, runnable code, testing strategy, and a senior-level extension roadmap.

September 23, 2026 · 11 min · 2251 words · martinuke0
A code editor displaying a Python sampling loop with temperature and top-k parameters

Build a From-Scratch LLM Sampler: Temperature, Top-k, Top-p in Pure Python

A hands-on guide to building a pure-Python transformer model with a custom decoding loop implementing temperature, top-k, and top-p sampling — a CV-worthy project that demonstrates deep ML systems knowledge.

September 22, 2026 · 13 min · 2679 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 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
Feedback