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
fla-org avatar

fla-org/flash-linear-attention

0
View on GitHub↗
5,248 stars·564 forks·Python·MIT·47 viewsgithub.com/fla-org/flash-linear-attention↗

Flash Linear Attention

Flash Linear Attention is a training framework and inference engine for sequence models that use linear attention and state space mechanisms, designed to process long contexts with reduced memory and compute overhead. It provides hardware-optimized token mixing layers and fused CUDA kernels that minimize memory bandwidth and launch overhead across different GPU architectures, and includes a causal inference engine that generates text token-by-token using cached hidden states for efficient autoregressive decoding.

The project supports building hybrid sequence models that interleave standard attention with linear attention and state space layers, balancing efficiency with global context. It includes a distributed checkpoint manager that splits model weights across multiple files for parallel loading and saving in multi-node training, and a weight format transpilation utility for converting between Hugging Face and distributed checkpoint formats. The framework also provides hardware-aware kernel dispatch that selects optimized CUDA kernels at runtime based on GPU architecture and tensor shapes.

The training surface covers training models from scratch, continuing pretraining from checkpoints, launching multi-node training, and automatically resuming interrupted training from the last saved checkpoint. The project includes a streaming dataset pipeline that feeds training data from disk or network in real-time without loading the entire dataset into memory.

Features

  • Linear Attention Training Frameworks - Provides a complete training framework for sequence models using linear attention and state space mechanisms with hardware-optimized GPU kernels.
  • Autoregressive Inference Engines - Ships a causal inference engine that generates text token-by-token using cached hidden states for efficient autoregressive decoding.
  • Distributed Model Checkpointing - Ships a distributed checkpoint manager that splits model weights across multiple files for parallel loading and saving in multi-node training.
  • Fused GPU Kernel Composition - Provides fused CUDA kernels that combine multiple neural operations into single GPU kernels to reduce memory bandwidth and launch overhead.
  • Selective State Space Models - Processes sequences using recurrent state updates that capture long-range dependencies with linear complexity.
  • Hybrid Model Architectures - Builds large language models that interleave standard attention with linear attention and state space layers to balance efficiency and global context.
  • Hybrid Layer Compositions - Supports building hybrid sequence models that interleave standard attention with linear attention and state space layers.
  • Hybrid Architecture Builders - Provides a system for building hybrid sequence models that interleave standard attention with linear attention and state space layers within a single model architecture.
  • Long-Context Sequence Processors - Trains and deploys sequence models that process long contexts with reduced memory and compute overhead using linear attention and state space mechanisms.
  • Token Mixing Accelerators - Provides hardware-optimized token mixing layers and fused CUDA kernels that minimize memory bandwidth and launch overhead across different GPU architectures.
  • Fused Token Mixing Kernels - Runs fused GPU kernels for token mixing operations that minimize memory bandwidth and launch overhead across different GPU architectures.
  • Streaming Dataset Loaders - Includes a streaming dataset pipeline that feeds training data from disk or network in real-time without loading the entire dataset into memory.
  • Kernel Dispatchers - Implements hardware-aware kernel dispatch that selects optimized CUDA kernels at runtime based on GPU architecture and tensor shapes.
  • Multi-Node Training Scaling - Distributes training across multiple GPU nodes by setting environment variables for inter-node communication.
  • Hybrid State Space Toolkits - Provides a toolkit for constructing hybrid sequence models that combine standard attention with linear and state space layers.
  • Model Checkpoint Converters - Transforms Hugging Face format checkpoints into the distributed format needed for training.
  • Domain-Adaptive Continued Pretraining - Supports continuing training from a pretrained checkpoint using fresh data.
  • Checkpoint Format Transpilations - Provides a weight format transpilation utility for converting between Hugging Face and distributed checkpoint formats.
  • Training Checkpointers - Automatically continues training from the last saved checkpoint after an interruption.
  • From-Scratch Training - Trains a new sequence model from scratch using a configurable script with optimizers and schedulers.
  • Model Weight Conversions - Transforms model checkpoints between Hugging Face format and distributed training formats by remapping tensor layouts and metadata.

Star history

Star history chart for fla-org/flash-linear-attentionStar history chart for fla-org/flash-linear-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

Frequently asked questions

What does fla-org/flash-linear-attention do?

Flash Linear Attention is a training framework and inference engine for sequence models that use linear attention and state space mechanisms, designed to process long contexts with reduced memory and compute overhead. It provides hardware-optimized token mixing layers and fused CUDA kernels that minimize memory bandwidth and launch overhead across different GPU architectures, and includes a causal inference engine that generates text token-by-token using cached hidden…

What are the main features of fla-org/flash-linear-attention?

The main features of fla-org/flash-linear-attention are: Linear Attention Training Frameworks, Autoregressive Inference Engines, Distributed Model Checkpointing, Fused GPU Kernel Composition, Selective State Space Models, Hybrid Model Architectures, Hybrid Layer Compositions, Hybrid Architecture Builders.

Which projects share features with fla-org/flash-linear-attention?

Projects with overlapping indexed features include: rlinf/rlinf — RLinf is a distributed reinforcement learning orchestrator and embodied AI training framework. It provides the… openvla/openvla — OpenVLA is a vision-language-action model and framework designed for general-purpose robotic manipulation. It provides… datawhalechina/so-large-lm — This project is a comprehensive educational curriculum and structured learning path covering the full lifecycle of… open-mmlab/mmagic — mmagic is a multimodal training pipeline and framework for generative AI, focusing on visual synthesis and… facebookresearch/xformers — xformers is a collection of specialized toolsets for fused GPU operators, sparse attention mechanisms, modular… meta-llama/llama3 — Llama 3 is a collection of pretrained, autoregressive transformer-based models designed for natural language…

Projects sharing features with Flash Linear Attention

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

    RLinf/RLinf

    2,502View on GitHub↗

    RLinf is a distributed reinforcement learning orchestrator and embodied AI training framework. It provides the infrastructure to train vision-language-action models and robotic policies using a combination of reinforcement learning and supervised fine-tuning. The system is designed for scaling workloads across GPU clusters, managing the placement of actors, rollout workers, and environment components. It features a specialized robotics data collection pipeline for gathering teleoperated demonstrations and simulation trajectories into standardized replay buffers, alongside a hardware interface

    Pythonagentic-aiembodied-aireinforcement-learning
    View on GitHub↗2,502
  • openvla/openvlaopenvla avatar

    openvla/openvla

    5,305View on GitHub↗

    OpenVLA is a vision-language-action model and framework designed for general-purpose robotic manipulation. It provides a robotic policy training framework and a control inference engine that map visual and textual inputs to robotic control actions, enabling zero-shot instruction following on hardware. The project includes a robotics dataset pipeline for standardizing diverse trajectory data and managing dataset mixtures. It supports large-scale model training through distributed GPU compute and sharded data parallelism, alongside parameter-efficient adaptation for fine-tuning models to new ta

    Python
    View on GitHub↗5,305
  • datawhalechina/so-large-lmdatawhalechina avatar

    datawhalechina/so-large-lm

    7,400View on GitHub↗

    This project is a comprehensive educational curriculum and structured learning path covering the full lifecycle of large language models. It provides a guided progression through the theory, architecture, training, and deployment of these models. The curriculum includes specialized guides on transformer architecture, model training tutorials, and frameworks for designing autonomous agents. It also provides dedicated resources for studying model safety and ethics. The material covers a wide range of technical capabilities, including distributed training strategies, parameter-efficient fine-tu

    View on GitHub↗7,400
  • open-mmlab/mmagicopen-mmlab avatar

    open-mmlab/mmagic

    7,434View on GitHub↗

    mmagic is a multimodal training pipeline and framework for generative AI, focusing on visual synthesis and restoration. It provides the infrastructure to build and train models for tasks such as text-to-image and text-to-video generation, 3D-aware content synthesis, and high-fidelity image translation using diffusion models and generative adversarial networks. The project distinguishes itself through specialized capabilities for generative model personalization, including techniques for fine-tuning subjects and styles. It also supports advanced visual manipulations such as latent space interp

    Jupyter Notebookaigccomputer-visiondeep-learning
    View on GitHub↗7,434
Compare all 30 related projects→