Wheels (precompiled binary packages) are available for Linux (x86_64). Package names are different depending on your CUDA Toolkit version (CUDA Toolkit version is shown in
|CUDA Toolkit version||Installation command|
pip install commands to install pre-release (development) versions.
To install Bagua by compiling from source code on your machine, you need the following dependencies installed on your system:
- CUDA Toolkit, with CUDA version >= 10.1
- Rust Compiler
- MPI >= 3.0, for example Open MPI
- hwloc >= 2.0
- CMake >= 3.17
- Python >= 3.7
We provide an automatic installation script for Ubuntu. Just run the following command to install Bagua and above libraries (except for CUDA, you should always install CUDA by yourself):
curl -Ls https://raw.githubusercontent.com/BaguaSys/bagua/master/install.sh | sudo bash
Run the following commands to install Bagua (source code packages, which will be compiled on your machine).
# release version python3 -m pip install bagua --upgrade # develop version (git master) python3 -m pip install --pre bagua --upgrade
We provide Docker image with Bagua installed based on official PyTorch images. You can find them on DockerHub.