Python code editor with a decoding library illustration

Build a From‑Scratch Python Decoding Library with Temperature Scaling, Top‑k, Top‑p and Min‑p Sampling

A practical, from‑scratch decoding library that implements temperature scaling, top‑k, top‑p and min‑p sampling with a pluggable processor pipeline, perfect for demonstrating systems‑level Python skills in interviews or side‑projects.

November 12, 2026 · 10 min · 2129 words · martinuke0
A Python laptop with code visualisation

Build a Pure‑Python LLM Sampler: Temperature, Top‑k, and Top‑p from Scratch

Learn to implement an LLM sampler from scratch in pure Python, controlling temperature, top‑k and top‑p, and add a standout project to your CV.

November 11, 2026 · 8 min · 1626 words · martinuke0
Diagram of a paged attention engine with KV cache blocks

From‑Scratch Paged Attention Engine with Variable‑Size KV Cache Blocks and Ghost Eviction

A hands‑on guide to implementing a paged attention engine in Python, including block management, ghost eviction, and testing.

November 11, 2026 · 7 min · 1299 words · martinuke0
Diagram of a token sampling pipeline

Temperature-Aware Top-P Nucleus Sampler with Top-K Fallback in Pure Python

A practical guide to implementing a temperature-aware nucleus sampler with top-k fallback, showcasing real systems engineering competencies.

November 9, 2026 · 7 min · 1363 words · martinuke0
Python code on a laptop screen with LLM inference diagrams

From-Scratch Paged Attention Allocator: LRU-Blocked KV-Cache Recompute for LLM Inference in Pure Python

A practical, runnable Python implementation of paged attention with LRU eviction and KV-cache recompute, perfect for LLM inference side projects and hiring manager impressions.

November 8, 2026 · 11 min · 2281 words · martinuke0
Feedback