A conceptual diagram of paged KV cache blocks being allocated and managed in memory

Build a Paged KV Cache in Pure Python: A Portfolio Project That Signals Real Systems Skill

A hands-on guide to building a pure Python paged KV cache for transformer inference. This project demonstrates virtual-memory management, systems architecture, and deep learning engineering — exactly the skills hiring managers look for.

September 15, 2026 · 13 min · 2631 words · martinuke0
A visualization of paged KV cache memory blocks being swapped between CPU and GPU memory

Build a Paged KV Cache with Swapping for CPU-Only LLM Inference

A hands-on guide to building a paged KV cache with swapping for CPU-only LLM inference. Includes real, runnable Python code using PyTorch and demonstrates memory management patterns that signal senior-level systems skill.

September 14, 2026 · 15 min · 3123 words · martinuke0
Sliding-window attention KV cache concept

Building a Sliding-Window Attention KV Cache with Dynamic Token Pruning

This guide walks through implementing a sliding-window attention KV cache with dynamic token pruning, providing runnable Python code and tests.

September 13, 2026 · 6 min · 1100 words · martinuke0
A diagram of a transformer with paged attention and LRU cache.

Building a Pure-Python Paged-Attention Transformer with LRU KV-Cache Eviction

Implement a paged-attention transformer with LRU KV-cache eviction in pure Python, demonstrating systems engineering proficiency.

September 13, 2026 · 11 min · 2181 words · martinuke0
A visualization of a KV cache data structure with key and value tensors being incrementally appended during autoregressive LLM decoding.

Building a Pure Python Incremental KV Cache for Efficient Long-Context LLM Inference

Build a production-grade incremental KV cache from scratch in pure Python. This guide covers architecture, implementation, testing, and a roadmap to production-flavored features that signal real systems skill to hiring managers.

September 13, 2026 · 14 min · 2877 words · martinuke0
Feedback