A block‑sparse attention matrix visualized as a grid of active blocks.

Building a Pure‑Python Block‑Sparse Sliding‑Window Attention (Longformer‑Style)

Implement block‑sparse sliding‑window attention in pure Python to handle long sequences efficiently, mirroring Longformer’s design.

October 7, 2026 · 7 min · 1385 words · martinuke0
Abstract visualization of attention matrices being compressed via low-rank projection

Building a Memory-Efficient Attention with Kernel Decomposition: A Hands-On Linformer Project

Implement Linformer attention from scratch in PyTorch, benchmark it, and learn how to extend it for production systems.

September 29, 2026 · 8 min · 1496 words · martinuke0
Streaming KV cache architecture diagram

Streaming KV Cache with Attention Sinks for Infinite Context in Pure Python

Learn to implement a streaming KV cache with attention sinks in Python, enabling infinite context for large language models.

September 29, 2026 · 6 min · 1222 words · martinuke0
Sliding window attention diagram

Building a Sliding Window Attention Block from Scratch: A Portfolio Project for Systems Engineers

Implement a sliding‑window attention block in PyTorch, test it, and extend it with distributed training, mixed precision, and monitoring to showcase systems expertise.

September 27, 2026 · 7 min · 1339 words · martinuke0
Illustration of a neural network attention pattern

Hands-On Build Guide: Flash Attention Implementation from Scratch in NumPy

A step-by-step NumPy guide to implementing Flash Attention with tiled multi-head self-attention and causal masking, perfect for a portfolio CV.

September 20, 2026 · 9 min · 1775 words · martinuke0
Feedback