A sleek Python code editor with a diagram of a radix tree and cache buckets

Paged KV Cache with Radix‑Tree Prefix Caching for LLM Inference

A step‑by‑step guide to implementing a paged KV cache and radix‑tree prefix cache in Python, complete with runnable code, tests, and production‑ready extensions.

November 20, 2026 · 10 min · 2101 words · martinuke0
A vector index architecture diagram

From Scratch to Vector Search: Building an IVF-PQ Index in Pure Python

Build a from-scratch IVF-PQ vector index in Python, complete with k-means, product quantization, asymmetric distance computation, and recall@k evaluation.

November 20, 2026 · 11 min · 2279 words · martinuke0
HNSW vector index diagram

Production-Grade HNSW Vector Index in Pure Python: A Hands-On Portfolio CV Guide

A step-by-step guide to implementing an HNSW index from scratch in Python, covering graph construction, layer promotion, neighbor pruning, and testing, ready to showcase on a CV.

November 20, 2026 · 10 min · 2020 words · martinuke0
A visual representation of tiled attention computation

FlashAttention Kernel from Scratch in Pure Python with Tiling and Online Softmax

This tutorial walks you through implementing a FlashAttention kernel from scratch, using tiling and online softmax to achieve memory-efficient attention. You’ll gain hands-on experience with low-level systems techniques that hiring managers value.

November 19, 2026 · 6 min · 1111 words · martinuke0
LoRA adapter fine‑tuning on a sample image dataset

Hands-on LoRA Trainer from Scratch in Pure Python

A hands‑on guide to training LoRA adapters with pure Python, no heavy frameworks, ready for CV portfolio projects.

November 19, 2026 · 8 min · 1634 words · martinuke0
Feedback