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
A laptop screen showing NumPy code with LoRA weight matrices.

From-Scratch LoRA Fine-Tuning Library in Pure NumPy

A hands‑on guide to implementing a complete LoRA fine‑tuning library in pure NumPy, complete with training, merging, and DoRA adapters.

November 14, 2026 · 8 min · 1648 words · martinuke0
Python code on a dark background, illustrating a tokenizer pipeline.

Hands-On Build Guide: A GPT‑2 Style BPE Tokenizer From Scratch in Python

A practical, runnable Python implementation of a GPT‑2 compatible BPE tokenizer, complete with regex pre‑tokenization, merge‑rank encoding, and byte‑level fallback for lossless Unicode handling.

November 12, 2026 · 9 min · 1857 words · martinuke0
A Python laptop with code visualisation

Build a Pure‑Python LLM Sampler: Temperature, Top‑k, and Top‑p from Scratch

Learn to implement an LLM sampler from scratch in pure Python, controlling temperature, top‑k and top‑p, and add a standout project to your CV.

November 11, 2026 · 8 min · 1626 words · martinuke0
tiled attention diagram

Build a Flash‑Attention Tiled Self‑Attention Block from Scratch in Pure NumPy

Implement a memory‑efficient tiled self‑attention block in NumPy, benchmark it, and extend it with persistence and scaling – a concrete portfolio project that signals deep systems knowledge.

November 10, 2026 · 8 min · 1579 words · martinuke0
Feedback