A schematic of a tiled attention matrix with softmax arrows.

Build a Flash Attention Kernel from Scratch with Pure NumPy

Implement a flash‑attention kernel from scratch in NumPy, covering online softmax, tiling, and performance tricks you can run and extend.

November 29, 2026 · 7 min · 1461 words · martinuke0
Python code on a laptop screen with attention mechanism diagrams

Build a Minimal Paged Attention Inference Engine with Sliding-Window KV-Cache Eviction in Python

Learn how to implement a paged attention engine with sliding-window KV-cache eviction from scratch in Python—a practical, runnable side project that signals systems engineering skill to hiring managers.

November 23, 2026 · 10 min · 1992 words · martinuke0
Diagram of block‑tiled FlashAttention kernel

Build a From‑Scratch FlashAttention in Pure NumPy

Implement block‑tiled Q/K/V matmuls with online softmax in pure NumPy, matching naive attention while using O(N) memory; benchmark speed and memory.

November 17, 2026 · 7 min · 1471 words · martinuke0

Build a paged attention KV cache with block‑wise LRU eviction in pure Python, demonstrating advanced systems engineering skills for machine learning engineer roles

This project implements a paged attention KV cache with block‑wise LRU eviction, providing a concrete demonstration of memory management and algorithm design for LLM inference.

November 16, 2026 · 5 min · 909 words · martinuke0
Illustration of a tiled attention kernel processing queries, keys, and values

Hands‑On Build Guide: FlashAttention‑Style Tiled Attention Kernel in Pure NumPy

A step‑by‑step NumPy implementation of tiled online softmax attention, mirroring FlashAttention’s memory‑efficiency, perfect for demonstrating systems‑level engineering in a portfolio.

November 14, 2026 · 7 min · 1309 words · martinuke0
Feedback