A schematic of a tiled attention matrix with softmax arrows.

Build a Flash Attention Kernel from Scratch with Pure NumPy

Implement a flash‑attention kernel from scratch in NumPy, covering online softmax, tiling, and performance tricks you can run and extend.

November 29, 2026 · 7 min · 1461 words · martinuke0
GGUF parser project illustration

GGUF Parser with Q4_K/Q8_0 Dequantization Kernels in Python

This guide walks you through building a pure‑Python GGUF parser with Q4_K/Q8_0 kernels, giving you a tangible project that demonstrates low‑level ML engineering skill.

November 23, 2026 · 11 min · 2322 words · martinuke0
ClickHouse MergeTree compaction pipeline visualization

Optimizing ClickHouse MergeTree Compaction: Streaming Ingestion at High Throughput

Optimizing MergeTree compaction is critical for maintaining query performance under heavy streaming loads. This post covers part merging strategies, background pool tuning, and disk I/O management for production ClickHouse deployments.

November 21, 2026 · 7 min · 1385 words · martinuke0
A visual representation of tiled attention computation

FlashAttention Kernel from Scratch in Pure Python with Tiling and Online Softmax

This tutorial walks you through implementing a FlashAttention kernel from scratch, using tiling and online softmax to achieve memory-efficient attention. You’ll gain hands-on experience with low-level systems techniques that hiring managers value.

November 19, 2026 · 6 min · 1111 words · martinuke0
Diagram of block‑tiled FlashAttention kernel

Build a From‑Scratch FlashAttention in Pure NumPy

Implement block‑tiled Q/K/V matmuls with online softmax in pure NumPy, matching naive attention while using O(N) memory; benchmark speed and memory.

November 17, 2026 · 7 min · 1471 words · martinuke0
Feedback