HiFA4: Training-Free 4-bit FlashAttention on Ascend HIF4 NPUs for LLM Inference
5 Jul · Hui Dong, Yanzhao Li, Jie Gao +5 · arXiv:2607.04302
We present HiFA4, a post-training operator-level design that executes both QK^T and PV in FlashAttention as 4-bit HIF4 Cube GEMMs for LLM inference on Ascend NPUs, while maintaining the online softmax state in FP16. To our knowledge, HiFA4 is the first Ascend-HIF4-targeted design of this kind evaluated on standard NLP benchmarks. HiFA4 combines two mechanisms. Smooth-QK applies a calibration-static per-channel…