FastAttention: Extend FlashAttention2 to NPUs and Low-resource GPUs
Not on the map. Why?
Abstract (arXiv)
FlashAttention series has been widely applied in the inference of large language models (LLMs). However, FlashAttention series only supports the high-level GPU architectures, e.g., Ampere and Hopper. At present, FlashAttention series is not easily transferrable to NPUs and low-resource GPUs. Moreover, FlashAttention series is inefficient for multi- NPUs or GPUs inference scenarios. In this work, we propose FastAttention which pioneers the adaptation of FlashAttention series for NPUs and low-resource GPUs to boost LLM inference efficiency. Specifically, we take Ascend NPUs and Volta-based GPUs as representatives for designing our FastAttention. We migrate FlashAttention series to Ascend NPUs by proposing a novel two-level tiling strategy for runtime speedup, tiling-mask strategy for memory saving and the tiling-AllReduce strategy for reducing communication overhead, respectively. Besides, we adapt FlashAttention for Volta-based GPUs by redesigning the operands layout in shared memory and introducing a simple yet effective CPU-GPU cooperative strategy for efficient memory utilization. On Ascend NPUs, our FastAttention can achieve a 10.7× speedup compared to the standard attention implementation. Llama-7B within FastAttention reaches up to 5.16× higher throughput than within the standard attention. On Volta architecture GPUs, FastAttention yields 1.43× speedup compared to its equivalents in textttxformers. Pangu-38B within FastAttention brings 1.46× end-to-end speedup using FasterTransformer. Coupled with the propose CPU-GPU cooperative strategy, FastAttention supports a maximal input length of 256K on 8 V100 GPUs. All the codes will be made available soon.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 22 of its 41 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
22 of 41 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023A Survey of Large Language Modelscited by 2,537
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
10 more
- 2023Instruction Tuning with GPT-4cited by 676
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2018Online normalizer calculation for softmaxcited by 154
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
- 2023Fast Distributed Inference Serving for Large Language Modelscited by 143
- 2021PanGu-α: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computationcited by 134
- 2018NVIDIA Tensor Core Programmability, Performance & Precisioncited by 77
- 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 55
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
- 2025Pangu Light: Weight Re-Initialization for Pruning and Accelerating LLMscited by 3
- 2024Tackling the Dynamicity in a Production LLM Serving System with SOTA Optimizations via Hybrid Prefill/Decode/Verify Scheduling on Efficient Meta-kernelscited by 1
- 2026STEEL: Sparsity-Aware Fused Attention for Energy-Efficient Long-Sequence Inference on AMD's XDNA NPUcited by 0
- 2026STEEL: Sparsity-Aware Fused Attention for Energy-Efficient Long-Sequence Inference on AMD's XDNA NPU10 Jul 2026
- 2025Pangu Light: Weight Re-Initialization for Pruning and Accelerating LLMs26 May 2025
- 2024Tackling the Dynamicity in a Production LLM Serving System with SOTA Optimizations via Hybrid Prefill/Decode/Verify Scheduling on Efficient Meta-kernels24 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2026FlashAccel: Leveraging High-Bandwidth Flash (HBF) for High-Throughput LLM Inference
- 2023FlashDecoding++: Faster Large Language Model Inference on GPUs
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memory
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving
- 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference
- 2025SpecEE: Accelerating Large Language Model Inference with Speculative Early Exiting
- 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systems
- 2026Unified Static-Dynamic Pruning for Efficient LLM Inference