Research ·
FLAMIA: FLAsh MIcroscaling Attention for Fast and Causally Safe Training on Blackwell
FLAMIA is a family of attention kernels for NVIDIA Blackwell GPUs that accelerates Transformer attention using MXFP8 and mixed NVFP4/FP8 paths, delivering 1.06–1.42× speedups over the fastest evaluated baselines.

Researchers introduced FLAMIA (FLAsh MIcroscaling Attention), a set of attention kernels for NVIDIA Blackwell GPUs that adapts FlashAttention to low-precision FP8/FP4 hardware. It addresses the key obstacles to using Blackwell's high-throughput low-precision matrix multiplication in attention: quantization overhead, causal information leakage through shared scales, and forward/backward numerical inconsistencies. Across causal packed-document workloads, the MXFP8 path speeds up the combined forward and backward attention call, including quantization, by 1.10–1.40× on B200 and 1.06–1.42× on B300 compared to the fastest evaluated baseline per workload.
The design uses two training paths: MXFP8, or NVFP4 for query–key score computation and its backward recomputation with FP8 elsewhere, since all-FP4 adds overhead and slightly worsens loss. Power-of-two scales shared across blocks of 32 tokens let FP8 operands serve both matrix orientations, cutting duplicate quantization and memory traffic. Quantization-aware causality features—local scales, saturation avoidance, per-key scale folding, and exact causal options—prevent future-token leakage through shared scales. Forward and backward passes use matching quantization, tiling, and scaling conventions. Kernels fuse quantization, overlap softmax with matrix multiplication, and use two cooperative thread arrays in the backward pass. Document-local scaling and workload-aware scheduling handle variable-length packed documents without repacking.
For practitioners training Transformers, especially at long context lengths, FLAMIA shows that jointly designing quantization, training numerics, and scheduling converts Blackwell's low-bit hardware throughput into real attention speedups. The authors validated training stability and quality preservation on pretraining Llama-style models, suggesting the approach is production-relevant rather than benchmark-only.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz