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.
This guide walks through implementing a sliding-window attention KV cache with dynamic token pruning, providing runnable Python code and tests.
This guide walks through implementing a fused causal self-attention block with RoPE and a sliding-window KV cache in pure Python, giving you a concrete portfolio piece that highlights systems engineering expertise.
Step-by-step tutorial for implementing GQA, RoPE, and an online-softmax Flash-Attention forward pass in pure PyTorch — a portfolio project that signals real systems-level ML skill.
New techniques let language models decide for themselves where to attend, cutting inference cost without retraining. We break down how gating, sparse kernels, and self-reflective decoding work in production systems.
From ‘Attention Is All You Need’ to modern mixture-of-experts and state-space hybrids: how the transformer family has evolved and what working engineers should know about the variants in production today.