Ryan Pégoud

Headline

Cutting LLM Memory by 84%: A Deep Dive into Fused Kernels

Fusing the linear projection and cross-entropy loss into a single tiled Triton kernel cuts peak training memory by 84%, by never materializing the full logits tensor.

May 2026

Peak memory reduction

95%

65.6 GB → 2.96 GB

Total parameters
7.49B
Embed + LM-head share
14.0%
Baseline activation mem.
65.6 GB
Bytes / decode step
1002 MB

Learning Triton One Kernel at a Time: Softmax

A numerically-stable, online softmax kernel fuses the max and sum reduction passes into one, cutting global memory reads from three to two while exceeding PyTorch's throughput.

Towards Data Science · Dec 2025

Learning Triton One Kernel at a Time: Matrix Multiplication

An illustrated introduction to tiled matrix multiplication, the memory hierarchy and memory coalescing.

Towards Data Science · Oct 2025

Learning Triton One Kernel at a Time: Vector Addition

A first-principles vector-add kernel in Triton demonstrates the GPU execution hierarchy — threads, warps, blocks, streaming multiprocessors — before any optimization is possible.

Towards Data Science · Sep 2025

Other articles