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
Abstract illustration of a token stream passing through a draft and verification pipeline.

Speculative Decoding with a Draft N‑gram Model: A Pure‑Python Inference Engine

This project demonstrates end‑to‑end inference engineering, from language modeling to low‑latency token generation, and signals strong systems skills to hiring managers.

September 15, 2026 · 7 min · 1376 words · martinuke0
A code editor showing a Python sampler class with visualization of probability distributions

Build an LLM Decoding Sampler from Scratch: A Portfolio Project That Signals Real Systems Skill

A hands-on guide to building a from-scratch LLM decoding sampler implementing temperature, top-k, top-p, and contrastive search in pure Python. Includes architecture, complete code, and a roadmap to senior-level extensions.

September 12, 2026 · 14 min · 2866 words · martinuke0
A code editor showing a Python implementation of a transformer attention block with mathematical notation in the background.

Build a Transformer Self-Attention Block from Scratch in Pure Python

A hands-on guide to implementing a transformer self-attention block from scratch in pure Python, covering rotary positional embeddings, causal masking, and grouped-query attention — with real, runnable code and a roadmap to production-grade extensions.

September 8, 2026 · 14 min · 2776 words · martinuke0
Feedback