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.
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.
Build a from-scratch IVF-PQ vector index in Python, complete with k-means, product quantization, asymmetric distance computation, and recall@k evaluation.
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.
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.
A hands‑on guide to training LoRA adapters with pure Python, no heavy frameworks, ready for CV portfolio projects.