PyTorch's new flex_gemm API fuses GEMM with epilogues written as plain PyTorch functions

tri_dao · x · 2026-10-23

Tri Dao boosted drisspg's PTC talk on flexgemm, a new gemmepilogue API in PyTorch built on Quack. It lets you fuse a GEMM with an epilogue written as an ordinary PyTorch function: a single kernel computes epilogue(torch.mm(a, b)), running the epilogue on the accumulator in registers before anything is stored.

Original post →

More from coding & agent

coding & agent channel →