{"library":"xformers","type":"library","category":null,"description":"XFormers is a PyTorch-based library providing a collection of composable, optimized building blocks for Transformer models. It aims to accelerate deep learning research by offering flexible and highly efficient components, including advanced attention mechanisms and fused operations that often outperform native PyTorch implementations in terms of speed and memory usage. Actively developed by Meta Platforms, Inc., the library frequently releases updates, with the current stable version being 0.0.35.","language":"python","status":"active","version":"0.0.35","tags":["pytorch","transformers","deep-learning","gpu-acceleration","attention-mechanisms","machine-learning","optimization"],"last_verified":"Wed May 20","install":[{"cmd":"pip install xformers","imports":["from xformers.ops import memory_efficient_attention","from xformers.ops.fmha.attn_bias import LowerTriangularMask","from xformers.ops import AttentionOpBase"]},{"cmd":"pip install -U xformers --index-url https://download.pytorch.org/whl/cu126","imports":[]},{"cmd":"pip install --pre -U xformers","imports":[]},{"cmd":"pip install ninja\npip install -v --no-build-isolation -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers","imports":[]}],"homepage":"https://facebookresearch.github.io/xformers/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/xformers/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":14,"avg_install_s":71.8,"avg_import_s":11,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/xformers/compatibility"}}