A sleek Python code terminal showing a sampling engine script

A Unified Sampling Engine in Python: Temperature, Top‑k, Top‑p, Typical, and Epsilon‑Cutoff

A hands‑on guide to implementing a unified sampling engine that merges temperature, top‑k, top‑p, typical, and epsilon‑cutoff strategies, ready to run and extend for CV signals.

November 30, 2026 · 8 min · 1592 words · martinuke0
Python code editor with a memory layout diagram

Hands-On Build Guide: Paged Attention KV Cache Manager with Block Allocation and Copy-on-Write in Pure Python

A step‑by‑step guide to implementing a paged attention KV cache manager in pure Python, complete with block allocation and copy‑on‑write, ready to run and extend.

November 29, 2026 · 8 min · 1694 words · martinuke0
Python code on a laptop screen next to a schematic of a draft and target model

From-Scratch Speculative Decoding Engine in Pure Python

A hands‑on guide to building a speculative decoding engine in pure Python, complete with code, tests, and production‑ready extensions.

November 26, 2026 · 10 min · 2068 words · martinuke0
 schematic of inference engine with sliding window cache

Hands-On Build: Speculative Draft‑Then‑Verify Inference Engine with Sliding‑Window KV Cache Eviction in Pure Python

A minimal, pure‑Python inference engine that drafts token candidates then verifies them using a sliding‑window key‑value cache, perfect for demonstrating systems competence in AI interviews.

November 25, 2026 · 8 min · 1639 words · martinuke0
A diagram of a paged KV cache block manager

Building a Paged KV Cache Block Manager with Continuous Batching and Prefix Sharing in Pure Python

A practical guide to building a paged KV cache block manager with continuous batching and prefix sharing in pure Python, designed to showcase systems engineering skills to hiring managers.

November 24, 2026 · 9 min · 1864 words · martinuke0
Feedback