xformers
XFormers: A collection of composable Transformer building blocks.
XFormers: A collection of composable Transformer building blocks.
To install this package, run one of the following:
xFormers is a PyTorch-based library which hosts flexible Transformer building blocks. They are interoperable and optimized building blocks, which can be optionally combined to create some state of the art models (e.g. MHA attention mechanisms, sparsity-aware or long-context variants).
Summary
XFormers: A collection of composable Transformer building blocks.
Last Updated
Apr 7, 2026 at 21:58
License
BSD-3-Clause AND Apache-2.0
Total Downloads
0
Version Downloads
0
Supported Platforms
GitHub Repository
https://github.com/facebookresearch/xformersDocumentation
https://facebookresearch.github.io/xformers