Building a Pure‑Python Int4 KV‑Cache for Transformer Inference
This project demonstrates low‑level memory optimization, quantization, and efficient inference techniques that signal strong systems engineering expertise to hiring managers.
This project demonstrates low‑level memory optimization, quantization, and efficient inference techniques that signal strong systems engineering expertise to hiring managers.
A step‑by‑step guide to training a tiny GPT model from scratch, covering RoPE, RMSNorm, and GQA with runnable PyTorch code.
A step‑by‑step guide to implementing a lightweight page‑transformer with paged attention and KV‑cache eviction, ready to run and extend.
A hands-on build guide for a speculative decoding inference engine that uses a cheap n-gram draft model paired with a verification transformer. Includes real runnable code, architecture diagrams, and a roadmap for extending it into a production-grade system.
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.