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
Speculative decoding engine diagram

Hands‑On Speculative Decoding Engine in Pure Python

A hands‑on guide to building a speculative decoding engine in pure Python, demonstrating system‑level engineering skills and producing runnable code for your portfolio.

November 5, 2026 · 7 min · 1443 words · martinuke0
A visualization of merge operations on a token grid.

BPE Vocabulary Compression via Optimal Merge Scheduling

Learn to build a BPE tokenizer that compresses vocabulary by scheduling merges optimally, with runnable Python code and a roadmap to production.

November 3, 2026 · 8 min · 1628 words · martinuke0
Python code on a laptop screen

Hands‑On Build Guide: Group‑wise INT4 Weight‑only Quantization with Per‑channel Scales and Per‑token INT8 Dynamic Activation Scaling for LLM Inference

A step‑by‑step guide to implementing group‑wise INT4 weight quantization and per‑token INT8 activation scaling from scratch in pure Python, ready for LLM inference.

November 3, 2026 · 9 min · 1883 words · martinuke0
Quantized transformer attention block

From Scratch: Quantized Transformer Attention with Int4 Weights and Int8 GEMM in Pure Python

A hands-on guide to implementing efficient low-precision attention in pure Python, showcasing quantization, GEMM, and architecture design for hiring managers.

October 30, 2026 · 10 min · 1921 words · martinuke0
Feedback