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
A Python notebook with NumPy arrays visualising KV‑cache blocks.

From‑Scratch PagedAttention KV‑Cache Engine in Pure Python + NumPy

A hands‑on guide to building a production‑style KV‑cache engine from scratch, demonstrating paging, CoW sharing, and batched decode – perfect for CV signals.

November 13, 2026 · 10 min · 1982 words · martinuke0
Python code on a laptop screen illustrating a sparse routing diagram

Build a Pure‑Python Mixture‑of‑Experts Router from Scratch

A hands‑on guide to implementing a Mixture‑of‑Experts router from scratch in pure Python, with top‑k sparse routing and load‑balancing, ready to run and extend.

November 13, 2026 · 9 min · 1818 words · martinuke0
Illustration of Python code loading binary model weights

From‑Scratch GGUF & Safetensors Weight Loader in Pure Python

A from‑scratch Python loader for GGUF and safetensors weights using zero‑mmap reads, endianness/dtype conversion, tensor remapping and checksum verification.

November 13, 2026 · 9 min · 1802 words · martinuke0
Feedback