awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
Dao-AILab avatar

Dao-AILab/flash-attention

0
View on GitHub↗
24,220 stars·2,851 forks·Python·BSD-3-Clause·27 views

Flash Attention

FlashAttention is an attention mechanism optimization library and machine learning acceleration framework designed to increase training speed and reduce memory footprint for large-scale neural network models. It functions as a collection of low-level CUDA kernels that optimize memory-bound operations to improve hardware utilization on graphics processing units.

The library distinguishes itself through an input-output-aware algorithm design that minimizes data movement between different levels of memory. By employing kernel fusion and tiled matrix multiplication, it combines sequential operations and processes data in blocks that fit within high-speed on-chip memory. These techniques, paired with recomputation-based gradient calculation, allow for the training of transformer models with larger batch sizes and longer sequence lengths.

This framework provides a comprehensive set of computational primitives for high-performance deep learning. It covers the acceleration of transformer architecture components and attention layers, specifically targeting the memory and throughput constraints inherent in training massive language models.

Features

  • Attention Backends - Provides optimized computational backends specifically designed to accelerate attention mechanisms in transformer models.
  • GPU Training Accelerators - Acts as a machine learning acceleration framework providing computational primitives to increase training speed.
  • Language Model Training - Accelerates the training process for massive transformer models by optimizing memory access and computation speed.
  • Memory Optimization Techniques - Reduces the memory footprint of deep learning models to enable larger batch sizes and longer sequence lengths.
  • Transformer Training Accelerators - Improves the performance of attention mechanisms to enable faster training and inference for transformer architectures.
  • Deep Learning Compute Kernels - Optimizes low-level kernel operations on graphics hardware to maximize throughput for deep learning.
  • Kernel Optimization Libraries - Provides a collection of low-level CUDA kernels that optimize memory-bound operations for deep learning.
  • Kernel Fusion Operations - Combines multiple sequential operations into single GPU kernels to reduce intermediate memory overhead.
  • Attention Optimization - Fast and memory-efficient attention using low-precision asynchrony.
  • Gradient Checkpointing - Reduces memory usage by discarding intermediate attention scores and recomputing them during the backward pass.
  • Batch Matrix Multiplication Utilities - Divides large attention matrices into smaller blocks that fit into fast on-chip memory to minimize global memory access.
  • SRAM-Aware - Explicitly manages data movement between high-speed on-chip memory and main GPU memory to maximize throughput.
  • Memory-Efficient Algorithms - Implements IO-aware algorithms that minimize memory reads and writes between different levels of memory.

Star history

Star history chart for dao-ailab/flash-attentionStar history chart for dao-ailab/flash-attention

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Flash Attention

These projects share indexed features with Flash Attention. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • microsoft/unilmmicrosoft avatar

    microsoft/unilm

    22,030View on GitHub↗

    This project is a comprehensive framework and toolkit for developing, optimizing, and deploying transformer-based models across multimodal, document intelligence, and natural language processing tasks. It provides a unified neural architecture that processes text, vision, audio, and document layout data through a shared set of weights, enabling researchers and developers to build foundational models that align cross-modal representations. The platform distinguishes itself through advanced training and inference strategies designed for large-scale deep learning. It incorporates specialized mec

    Pythonbeitbeit-3bitnet
    View on GitHub↗22,030
  • deepseek-ai/deepgemmdeepseek-ai avatar

    deepseek-ai/DeepGEMM

    7,385View on GitHub↗

    DeepGEMM is a suite of specialized GPU kernels and a just-in-time compiler designed for low-precision matrix operations, Mixture-of-Experts models, and attention processing. It provides a library of high-performance matrix multiplication kernels using FP8 precision to increase compute throughput and reduce memory usage. The project features a JIT CUDA kernel compiler that generates and loads optimized compute kernels at runtime to eliminate the need for manual compilation during installation. It includes specialized implementations for grouped matrix multiplication that process multiple group

    Cuda
    View on GitHub↗7,385
  • zhaochenyang20/awesome-ml-sys-tutorialzhaochenyang20 avatar

    zhaochenyang20/Awesome-ML-SYS-Tutorial

    5,371View on GitHub↗

    This project provides a comprehensive technical guide and framework for engineering large-scale machine learning systems. It covers the full lifecycle of model development, focusing on the infrastructure and computational principles required to build, train, and serve generative AI models across distributed GPU clusters. The repository distinguishes itself by offering deep-dive tutorials and implementation strategies for complex system challenges. It emphasizes high-performance architectural primitives, such as collective communication orchestration, distributed tensor sharding, and static gr

    Python
    View on GitHub↗5,371
  • d2l-ai/d2l-end2l-ai avatar

    d2l-ai/d2l-en

    29,001View on GitHub↗

    This project is an educational platform and research toolkit designed to teach deep learning through a combination of mathematical theory, visual diagrams, and executable code. It provides a comprehensive environment for building, training, and evaluating neural networks, grounding complex concepts in interactive computational notebooks that allow for hands-on experimentation. The framework distinguishes itself by interleaving theoretical foundations—including linear algebra, calculus, and probability—with practical implementations across multiple industry-standard libraries. It supports flex

    Pythonbookcomputer-visiondata-science
    View on GitHub↗29,001
Compare all 30 related projects→

Frequently asked questions

What does dao-ailab/flash-attention do?

FlashAttention is an attention mechanism optimization library and machine learning acceleration framework designed to increase training speed and reduce memory footprint for large-scale neural network models. It functions as a collection of low-level CUDA kernels that optimize memory-bound operations to improve hardware utilization on graphics processing units.

What are the main features of dao-ailab/flash-attention?

The main features of dao-ailab/flash-attention are: Attention Backends, GPU Training Accelerators, Language Model Training, Memory Optimization Techniques, Transformer Training Accelerators, Deep Learning Compute Kernels, Kernel Optimization Libraries, Kernel Fusion Operations.

Which projects share features with dao-ailab/flash-attention?

Projects with overlapping indexed features include: microsoft/unilm — This project is a comprehensive framework and toolkit for developing, optimizing, and deploying transformer-based… deepseek-ai/deepgemm — DeepGEMM is a suite of specialized GPU kernels and a just-in-time compiler designed for low-precision matrix… zhaochenyang20/awesome-ml-sys-tutorial — This project provides a comprehensive technical guide and framework for engineering large-scale machine learning… d2l-ai/d2l-en — This project is an educational platform and research toolkit designed to teach deep learning through a combination of… deepspeedai/deepspeed — DeepSpeed is a high-performance library designed to scale deep learning model training and inference across massive… unslothai/unsloth — Unsloth is a high-performance training and inference platform designed to optimize the lifecycle of large language and…