facebookresearch

    facebookresearch/xformers

    #275 this week

    Hackable and optimized Transformers building blocks, supporting a composable construction.

    backend
    Python
    NOASSERTION
    10.6K stars
    796 forks
    10.6K GitHub watchers
    Updated Oct 21, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #275 of 2,794 repositories GStars tracks this week (top 10%).

    No releases in the last 90 days; the most recent was 243 days ago, with 111 contributors on GitHub.

    Gained 61% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides customizable and optimized Transformer building blocks for efficient and flexible model construction.
    • Delivers memory-efficient and fast Transformer components with custom CUDA kernels, enabling faster iteration than standard libraries.
    • Use for developing cutting-edge NLP models requiring exact and memory-efficient attention mechanisms.
    • Use for building vision Transformer architectures that benefit from sparse and block-sparse attention optimizations.
    • Use for research projects needing modular Transformer components that integrate easily with PyTorch and support experimental features.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Setup: A100 on f16, measured total time for a forward+backward pass

    Note that this is exact attention, not an approximation, just by calling xformers.ops.memory_efficient_attention

    xFormers provides many components, and more benchmarks are available in BENCHMARKS.md.

    Excerpt from the facebookresearch/xformers README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    796+17

    Open issues

    374-3

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth

    facebookresearch/xformers compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/claude-plugins-official43.9K+5.6K35—
    NationalSecurityAgency/ghidra93.2K+4.9K75today
    K-Dense-AI/scientific-agent-skills53.9K+4.0K7521 days ago
    akitaonrails/ai-memory12.8K+3.3K40today
    shiyu-coder/Kronos43.2K+2.4K75—
    facebookresearch/xformers10.6K+075243 days ago
    Category median43.9K+4.0K75—

    Also by facebookresearch

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description