A sleek diagram of tensor weights flowing through memory‑mapped files

From‑Scratch Safetensors & GGUF Weight Loader with mmap‑Backed Zero‑Copy Views

A practical, runnable guide to constructing a from‑scratch safetensors/GGUF weight loader with zero‑copy mmap views, dtype/quantization decoding, and shape validation, perfect for a CV‑boosting side project.

October 2, 2026 · 10 min · 2029 words · martinuke0
A diagram of paged attention memory layout

From Scratch: Building a Paged Attention KV Cache for Transformer Inference

A practical build guide for a paged attention KV cache in pure Python, with architecture, code, and extensions for senior-level skills.

October 1, 2026 · 11 min · 2209 words · martinuke0
A sleek Python code editor with neural network visualisation

Hands‑On MoE Router: Top‑k Gating and Load‑Balancing in Pure Python

A hands‑on guide to implementing a Mixture‑of‑Experts router from scratch in pure Python, with top‑k gating and load‑balancing, ready to run and extend.

October 1, 2026 · 9 min · 1864 words · martinuke0
Python code on a GPU dashboard

A Pure‑Python Continuous‑Batching Inference Engine for LLM Requests

A hands‑on guide to building a pure‑Python continuous‑batching inference engine that packs variable‑length LLM requests into GPU‑friendly batches with adaptive timeout and priority scheduling.

October 1, 2026 · 9 min · 1895 words · martinuke0
A diagram of a paged attention KV cache manager

Building a PagedAttention KV Cache Manager with Continuous Batching from Scratch

This post walks through building a paged attention KV cache manager with continuous batching, providing runnable Python code and architecture guidance for systems engineers.

October 1, 2026 · 9 min · 1828 words · martinuke0
Feedback