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 with weight file icons

From-Scratch Safetensors & GGUF Weight Loader in Pure Python

A hands‑on guide to building a from‑scratch safetensors & GGUF weight loader in pure Python, using mmap zero‑copy views and on‑the‑fly Q4_K/Q5_K dequantization – a tangible project that signals low‑level ML systems competence.

November 30, 2026 · 8 min · 1644 words · martinuke0
FlashAttention kernel code on a laptop screen

Build a FlashAttention Kernel from Scratch in Pure Python

A step‑by‑step guide to implementing FlashAttention in pure Python, with runnable code and production‑ready extensions.

November 30, 2026 · 8 min · 1550 words · martinuke0
A laptop screen showing NumPy arrays and binary weight visualizations.

Hands-on Build Guide: Custom 4-bit Weight-only Quantization Engine with GGUF-style Block Scaling in Pure NumPy

A step‑by‑step guide to implementing a 4‑bit weight‑only quantizer with block scaling using only NumPy, plus a roadmap to production‑grade features.

November 29, 2026 · 10 min · 2019 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
Feedback