A diagram of paged attention memory layout

From Scratch: Building a Paged Attention KV Cache for Transformer Inference

A practical build guide for a paged attention KV cache in pure Python, with architecture, code, and extensions for senior-level skills.

October 1, 2026 · 11 min · 2209 words · martinuke0
A diagram of a paged attention KV cache manager

Building a PagedAttention KV Cache Manager with Continuous Batching from Scratch

This post walks through building a paged attention KV cache manager with continuous batching, providing runnable Python code and architecture guidance for systems engineers.

October 1, 2026 · 9 min · 1828 words · martinuke0
Streaming KV cache architecture diagram

Streaming KV Cache with Attention Sinks for Infinite Context in Pure Python

Learn to implement a streaming KV cache with attention sinks in Python, enabling infinite context for large language models.

September 29, 2026 · 6 min · 1222 words · martinuke0
A Python code editor displaying sampling probability distributions and logits on a dark terminal.

Building a Production-Grade Sampling Engine in Pure Python

A hands-on guide to building a deterministic sampling engine in pure Python, covering temperature, top-k, top-p, and nucleus sampling with production-grade architecture patterns you can showcase to hiring managers.

September 28, 2026 · 11 min · 2308 words · martinuke0
Python code on a terminal displaying a paged attention cache manager

Hands-On Build Guide: PagedAttention KV Cache Manager with Block Allocation and Copy-on-Write in Pure Python

A step‑by‑step guide to implementing a paged‑attention cache, complete with block allocation, COW, and testing, so you can showcase real systems skills on your CV.

September 27, 2026 · 9 min · 1815 words · martinuke0
Feedback