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.
Implement a flash‑attention kernel from scratch in NumPy, covering online softmax, tiling, and performance tricks you can run and extend.
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.
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.
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.
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.