How to install facebookresearch/xformers. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
facebookresearch/xformers Installation Guide
How to install facebookresearch/xformers. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for facebookresearch/xformers. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i facebookresearch/xformersor
Install via npx
npx @hexmos/ipm i facebookresearch/xformersPrerequisites
Python
languageVersion: >=3.6.0
PyTorch
package_managerVersion: 2.9.0
CUDA Toolkit
system_toolInstall the CUDA toolkit for GPU acceleration.
cuDNN
system_packageVersion: 8.0.1
Ninja
build_toolBuild tool for parallel compilation.
Git
system_toolVersion: 2.34.1
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Package Manager Installation
pip install -U xformers --index-url https://download.pytorch.org/whl/cu126
pip install -U xformers --index-url https://download.pytorch.org/whl/cu128
pip install -U xformers --index-url https://download.pytorch.org/whl/cu129
pip install -U xformers --index-url https://download.pytorch.org/whl/rocm6.4Post Installation Steps
- Run the following command to start the server: `python -m xformers.server`
- You can access the API endpoint at `http://localhost:8000/`.
