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

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectServer MCPDespreCum realizăm clasamentulPresă
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

6 repository-uri

Awesome GitHub RepositoriesSparse Attention Kernels

Specialized kernels for computing self-attention outputs using sparse data structures and masking.

Distinguishing note: Focuses on the kernel-level implementation of sparse attention, distinct from the high-level sparse attention modules.

Explore 6 awesome GitHub repositories matching artificial intelligence & ml · Sparse Attention Kernels. Refine with filters or upvote what's useful.

Awesome Sparse Attention Kernels GitHub Repositories

Găsește cele mai bune repo-uri cu AI.Vom căuta cele mai potrivite repository-uri folosind AI.
  • deepspeedai/deepspeedAvatar deepspeedai

    deepspeedai/DeepSpeed

    42,528Vezi pe GitHub↗

    DeepSpeed is a high-performance library designed to scale deep learning model training and inference across massive clusters of GPUs and compute nodes. It provides a comprehensive suite of tools for distributed training, enabling the execution of models that exceed the memory capacity of single devices through advanced parameter partitioning, pipeline-based model parallelism, and memory-efficient state offloading. The framework distinguishes itself through specialized communication-efficient optimizers and hardware-aware acceleration techniques. By utilizing gradient compression, quantization

    The framework processes sequences efficiently by computing self-attention outputs using sparse kernels that support relative position embeddings and attention masks.

    Pythonbillion-parameterscompressiondata-parallelism
    Vezi pe GitHub↗42,528
  • sgl-project/sglangAvatar sgl-project

    sgl-project/sglang

    29,079Vezi pe GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Improves inference efficiency by automatically activating native sparse attention mechanisms for supported model architectures.

    Pythonattentionblackwellcuda
    Vezi pe GitHub↗29,079
  • deepseek-ai/flashmlaAvatar deepseek-ai

    deepseek-ai/FlashMLA

    12,706Vezi pe GitHub↗

    FlashMLA is an LLM attention kernel library and inference acceleration library providing a collection of high-performance CUDA kernels. It implements multi-head latent attention mechanisms designed to reduce memory overhead and increase throughput during the forward and backward passes of large language model inference. The library utilizes quantized cache attention kernels to improve computation efficiency across both sparse and dense token processing. It specifically optimizes the prefill and decoding phases of model inference through these latent attention implementations. The project cov

    Ships attention kernels that use quantized caches to improve efficiency for both sparse and dense token processing.

    C++
    Vezi pe GitHub↗12,706
  • facebookresearch/xformersAvatar facebookresearch

    facebookresearch/xformers

    10,506Vezi pe GitHub↗

    xformers is a collection of specialized toolsets for fused GPU operators, sparse attention mechanisms, modular transformer components, and performance benchmarking. It provides a library of optimized and interoperable building blocks used to construct and experiment with transformer architectures. The project features a fused CUDA operator library that combines common layers into single GPU operations to increase throughput. It includes a sparse attention framework and memory-efficient attention kernels that utilize tiling strategies and structured sparsity patterns to reduce computational ov

    Provides specialized kernels for sparse attention using structured sparsity patterns to handle long sequences.

    Python
    Vezi pe GitHub↗10,506
  • tile-ai/tilelangAvatar tile-ai

    tile-ai/tilelang

    5,226Vezi pe GitHub↗

    TileLang is a Python-embedded domain-specific language compiler that JIT-compiles and autotunes GPU kernels. It uses a tile-based DSL, automatic software pipelining, and parallel autotuning to generate optimized GPU kernels at runtime. It supports tensor core operations with Pythonic syntax, automatic memory management, and thread mapping. The compiler searches over tile sizes, thread counts, and scheduling policies, compiling and benchmarking candidates in parallel to find the fastest kernel. It also caches compiled binaries and tuning results to disk for reuse across sessions. TileLang inc

    Sets up the compute graph for attention kernels including matrix multiplication, bias, and type casting.

    Python
    Vezi pe GitHub↗5,226
  • flashinfer-ai/flashinferAvatar flashinfer-ai

    flashinfer-ai/flashinfer

    4,996Vezi pe GitHub↗

    FlashInfer is a library of high-performance GPU kernels purpose-built for accelerating large language model inference. It provides optimized implementations for attention operations (including flash attention, page attention, multi-head latent attention, and cascade attention) using paged key-value caches, fused kernel composition, and just-in-time compilation. The library also includes specialized kernels for mixture-of-experts layers, block-scaled low-precision quantization (FP8, FP4), and distributed collective communication. What distinguishes FlashInfer is its fused all-reduce communicat

    Implements block-sparse masked attention kernels that process only non-zero blocks for efficiency.

    Pythonattentioncudadistributed-inference
    Vezi pe GitHub↗4,996
  1. Home
  2. Artificial Intelligence & ML
  3. Sparse Attention Kernels

Explorează sub-etichetele

  • Attention Compute Graph BuildersSets up the compute graph for an attention kernel including matrix multiplication, bias, and type casting. **Distinct from Sparse Attention Kernels:** Distinct from Sparse Attention Kernels: focuses on building the compute graph for attention, not sparse attention implementation.
  • Block-Sparse Attention KernelsGPU kernels that compute attention using block-sparse masks to skip zero blocks and save computation. **Distinct from Sparse Attention Kernels:** Distinct from general sparse attention kernels by operating on block-sparse patterns rather than arbitrary sparsity.
  • Quantized Cache KernelsLow-level GPU kernels that utilize quantized key-value caches to improve computation efficiency and reduce memory footprint. **Distinct from Sparse Attention Kernels:** Combines kernel-level attention computation with low-precision cache management, distinct from purely sparse indexing.