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
LoRA fine‑tuning engine illustration

Pure‑NumPy LoRA Fine‑Tuning Engine: From Frozen Weights to Merged Checkpoint

A minimal, pure‑NumPy implementation of LoRA fine‑tuning that freezes base weights, learns low‑rank adapters, and merges deltas into a checkpoint – perfect for a portfolio CV project.

November 25, 2026 · 6 min · 1224 words · martinuke0
Mixture-of-Experts router architecture diagram

A Hands-On Build Guide: Mixture-of-Experts Router with Top-K Gating and Auxiliary Load-Balancing Loss

A complete guide to building a Mixture-of-Experts router from scratch, including top-k gating, auxiliary load-balancing loss, runnable Python/NumPy code, and production-ready extensions for your CV.

November 22, 2026 · 11 min · 2171 words · martinuke0
Schematic of a Mixture‑of‑Experts routing layer with expert towers and top‑k gates.

From-Scratch Mixture-of-Experts Routing Layer with Noisy Top‑k Gating and Load‑Balancing Auxiliary Loss

A complete guide and runnable PyTorch implementation of a Mixture‑of‑Experts layer with noisy top‑k routing, auxiliary load‑balancing, and token dispatch, perfect for a portfolio CV.

November 21, 2026 · 12 min · 2527 words · martinuke0
Illustration of a tiled attention kernel processing queries, keys, and values

Hands‑On Build Guide: FlashAttention‑Style Tiled Attention Kernel in Pure NumPy

A step‑by‑step NumPy implementation of tiled online softmax attention, mirroring FlashAttention’s memory‑efficiency, perfect for demonstrating systems‑level engineering in a portfolio.

November 14, 2026 · 7 min · 1309 words · martinuke0
Feedback