mlsanityData to 7 Oct 2026

FastAttention: Extend FlashAttention2 to NPUs and Low-resource GPUs

arXiv 2410.16663 ↗First posted 22 Oct 2024cs.LGcited by 3

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2020Scaling Laws for Neural Language Modelscited by 6,411
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  9. 2023A Survey of Large Language Modelscited by 2,537
  10. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  11. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  12. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
10 more
  1. 2023Instruction Tuning with GPT-4cited by 676
  2. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  3. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  4. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  5. 2018Online normalizer calculation for softmaxcited by 154
  6. 2021Self-attention Does Not Need O(n2) Memorycited by 152
  7. 2023Fast Distributed Inference Serving for Large Language Modelscited by 143
  8. 2021PanGu-α: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computationcited by 134
  9. 2018NVIDIA Tensor Core Programmability, Performance & Precisioncited by 77
  10. 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 55

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026FlashAccel: Leveraging High-Bandwidth Flash (HBF) for High-Throughput LLM Inference
  2. 2023FlashDecoding++: Faster Large Language Model Inference on GPUs
  3. 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memory
  4. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving
  5. 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference
  6. 2025SpecEE: Accelerating Large Language Model Inference with Speculative Early Exiting
  7. 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systems
  8. 2026Unified Static-Dynamic Pruning for Efficient LLM Inference