Install Mamba from source
mainTo use Mamba-3 or install from the latest source tree, use the following commands. To include the CUDA selective_scan_cuda extension, use the MAMBA_KEEP_CUDA_BUILD flag. To force local compilation of the CUDA extension, also include MAMBA_FORCE_BUILD=TRUE.
| Mode | Command |
|---|---|
| Source default (no CUDA scan) | pip install . --no-build-isolation |
| Source from GitHub (no CUDA scan) | pip install git+https://github.com/state-spaces/mamba.git --no-build-isolation |
| Source CUDA selective scan opt-in | MAMBA_KEEP_CUDA_BUILD=TRUE pip install . --no-build-isolation |
| Source forced local CUDA build | MAMBA_FORCE_BUILD=TRUE MAMBA_KEEP_CUDA_BUILD=TRUE pip install . --no-build-isolation |
pip install git+https://github.com/state-spaces/mamba.git --no-build-isolation