LLM Attention Kernels and GPU Primitivesđ Jun 5, 2026 · â 1 min read · âī¸ k4iA series index for LLM attention kernels and GPU primitives: fused softmax, online softmax, FlashAttention, PagedAttention kernels, Triton/CUDA, and memory-access optimization.
Online Softmax: Tiling for Arbitrarily Large Rowsđ Apr 21, 2026 · đ Jun 5, 2026 · â 6 min read · âī¸ k4ihow online softmax extends the fused kernel to handle rows that exceed sram capacity, using a numerically stable 2-pass tiling algorithm.
Fused Softmax in Tritonđ Apr 20, 2026 · đ Jun 5, 2026 · â 7 min read · âī¸ k4ihow to write a fused softmax kernel in triton that eliminates redundant memory accesses and outperforms pytorch's native implementation.