xFormers
the six Ws · specification
Developed and maintained by Meta's FAIR research team.
xFormers offers modular, memory efficient transformer components including fused attention kernels used across research and production models.
Hosted on GitHub at facebookresearch/xformers and distributed via PyPI.
Released in 2021 and continuously updated alongside PyTorch.
It gives researchers interchangeable, highly optimized building blocks so they can assemble fast transformer variants without writing custom kernels.
Built on PyTorch and often paired with FlashAttention kernels.
BSD style license, open source, maintained by Meta, roughly 10.5k GitHub stars.
alternatives
works with