schematic of a paged KV cache with eviction arrows

Hands-On Build Guide: Paged-Attention KV Cache Manager with Attention-Score-Aware Eviction

A practical implementation of paged attention with score‑aware eviction, ready to extend for LLM serving workloads.

November 1, 2026 · 8 min · 1580 words · martinuke0
LoRA fine-tuning trainer on a laptop screen

From-Scratch LoRA Fine‑Tuning Trainer with Manual Gradient Checkpointing and Adapter Merging in Pure PyTorch

A hands‑on guide to implementing LoRA fine‑tuning with manual gradient checkpointing and adapter merging in pure PyTorch, ready to run and extend.

October 31, 2026 · 7 min · 1453 words · martinuke0
A sleek notebook with code snippets and transformer diagrams.

Build a Pure‑Python Transformer Encoder with RoPE and Learned KV Cache

A step‑by‑step tutorial and runnable code for a minimal transformer encoder that uses RoPE and a mutable KV cache, perfect for a portfolio CV.

October 29, 2026 · 10 min · 1986 words · martinuke0
Python code visualizing vector quantization and IVF indexing

Pure‑Python Product‑Quantized IVF Index for Fast ANN Search

A step‑by‑step guide to building a pure‑Python product‑quantized IVF index for fast approximate nearest‑neighbor search, complete with runnable code, benchmarks, and extension paths for production use.

October 28, 2026 · 7 min · 1458 words · martinuke0
LoRA adapter diagram on a laptop screen

Build a LoRA Module from Scratch in Pure PyTorch

Learn to implement LoRA adapters in pure PyTorch, from theory to a runnable prototype, and how to extend it for production‑grade model adaptation.

October 26, 2026 · 9 min · 1708 words · martinuke0
Feedback