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
facebookresearch avatar

facebookresearch/xformers

0
View on GitHub↗
10,506 stars·777 forks·Python·22 viewsfacebookresearch.github.io/xformers↗

Xformers

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 overhead and memory usage.

The toolkit covers a broad surface of performance optimization, including kernel fusion and an operator benchmarking framework for measuring the execution latency and memory footprint of individual model components. It also supports composable block assembly and custom component extensions to facilitate architectural experimentation.

Features

  • Fused GPU Kernel Composition - Provides a library of pre-optimized fused GPU kernels combining common layers like softmax and linear operations.
  • Attention Kernel Optimizers - Implements memory-efficient attention kernels using tiling and optimized memory access patterns.
  • Block-Wise Attention - Uses block-wise tiling to compute attention without materializing the full matrix, reducing memory overhead.
  • Memory-Efficient Deep Learning - Reduces GPU memory usage and increases speed for scaled dot-product attention in large-scale models.
  • Modular Layer Assembly - Enables the assembly of Transformer models by combining interoperable and pre-optimized building blocks.
  • Modular Architectures - Provides a system for assembling Transformer models using interchangeable and pre-optimized modular blocks.
  • Sparse Attention Kernels - Provides specialized kernels for sparse attention using structured sparsity patterns to handle long sequences.
  • Block-Sparse Attention Kernels - Implements block-sparse attention kernels that use structured masks to reduce computational complexity.
  • Sparse Attention Modules - Implements a framework of sparse attention modules and patterns to reduce computational overhead.
  • Operation Fusion Optimizations - Optimizes processing throughput by merging multiple neural network operations into single fused CUDA kernels.
  • Transformer Blocks - Ships a collection of optimized and interoperable Transformer blocks for modular model construction.
  • Transformer Models - Offers a framework for constructing custom Transformer models using optimized modular building blocks.
  • Layer-Level Performance Benchmarking - Provides tools for comparing the speed and memory overhead of individual model layers to guide optimization.
  • Operator Benchmarking Frameworks - Provides a framework to measure the execution speed and memory footprint of individual transformer building blocks.
  • Model Execution Benchmarks - Includes a framework for benchmarking the execution speed and memory consumption of individual model blocks.
  • Architectural Block Extensions - Provides an interface for integrating locally-defined Transformer blocks for architectural experimentation.
  • Model Component Extensions - Provides an interface for adding custom Transformer blocks that integrate with existing optimized components.
  • Neural Network Operation Benchmarking - Ships a framework to measure the execution speed and memory footprint of individual neural network operations.

Star history

Star history chart for facebookresearch/xformersStar history chart for facebookresearch/xformers

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 facebookresearch/xformers do?

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.

What are the main features of facebookresearch/xformers?

The main features of facebookresearch/xformers are: Fused GPU Kernel Composition, Attention Kernel Optimizers, Block-Wise Attention, Memory-Efficient Deep Learning, Modular Layer Assembly, Modular Architectures, Sparse Attention Kernels, Block-Sparse Attention Kernels.

Which projects share features with facebookresearch/xformers?

Projects with overlapping indexed features include: flashinfer-ai/flashinfer — FlashInfer is a library of high-performance GPU kernels purpose-built for accelerating large language model inference.… skyzh/tiny-llm — tiny-llm is a large language model inference engine and transformer model implementation. It serves as a quantized… labmlai/annotated_deep_learning_paper_implementations — This project is a collection of deep learning research papers translated into annotated code. It serves as a resource… datawhalechina/thorough-pytorch — This project is an educational resource and comprehensive guide for implementing and deploying deep learning models… deepspeedai/deepspeed — DeepSpeed is a high-performance library designed to scale deep learning model training and inference across massive… google/flax — Flax is a deep learning framework and JAX neural network library designed for building complex machine learning…

Projects sharing features with Xformers

These projects share indexed features with Xformers. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • flashinfer-ai/flashinferflashinfer-ai avatar

    flashinfer-ai/flashinfer

    4,996View on 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

    Pythonattentioncudadistributed-inference
    View on GitHub↗4,996
  • labmlai/annotated_deep_learning_paper_implementationslabmlai avatar

    labmlai/annotated_deep_learning_paper_implementations

    66,981View on GitHub↗

    This project is a collection of deep learning research papers translated into annotated code. It serves as a resource for reproducing academic research, providing implementations of transformers, diffusion models, and reinforcement learning architectures. The library distinguishes itself by using a side-by-side annotation format that combines executable Python code with descriptive markdown notes. This approach provides a structured way to explain the logic of neural network papers alongside their PyTorch-based implementations. The codebase covers several major capability areas, including ge

    Pythonattentiondeep-learningdeep-learning-tutorial
    View on GitHub↗66,981
  • skyzh/tiny-llmskyzh avatar

    skyzh/tiny-llm

    4,304View on GitHub↗

    tiny-llm is a large language model inference engine and transformer model implementation. It serves as a quantized model runtime and paged key-value cache manager, providing a specialized inference stack optimized for Apple Silicon. The system distinguishes itself through high-throughput execution techniques, including continuous batching and paged attention. It utilizes a paged memory system to eliminate fragmentation during token generation and employs on-the-fly dequantization of compressed weights to reduce the memory footprint during matrix multiplication. The project covers a broad ran

    Pythoncourselarge-language-modelllm
    View on GitHub↗4,304
  • datawhalechina/thorough-pytorchdatawhalechina avatar

    datawhalechina/thorough-pytorch

    3,684View on GitHub↗

    This project is an educational resource and comprehensive guide for implementing and deploying deep learning models using the PyTorch framework. It provides a structured learning curriculum consisting of tutorials and notebooks that cover neural network architectures, data pipelines, and model optimization across multiple AI domains. The curriculum includes practical implementation guides for building convolutional networks, transformers, and recurrent models. It specifically focuses on workflows for computer vision, including image classification, object detection, and segmentation, as well

    Jupyter Notebookdeep-learningmachine-learningpython
    View on GitHub↗3,684
Compare all 30 related projects→