IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo package

fused_swiglu

SM100 Fused GEMM+SwiGLU kernel: BF16 matmul with SwiGLU in the epilogue.

The caller pre-permutes weight W on its N axis so adjacent output columns (2i, 2i+1) carry (gate, up) pairs. The epilogue computes silu(gate)*up in FP32 registers, writes BF16 results to double-buffered SMEM, and TMA-stores to GMEM at half-N positions.

Modules​

Was this page helpful?