compiled version of bitsandbytes that works with rocm 7.2
I have no idea what I'm doing and I just had gemini walk me through it with constant troubleshooting... this was specifically compiled for the gfx1151 in the AMD Strix Halo 395+ AI chip
sudo pacman -S python python-pip
python3.12 -m venv ~/bnb_test/test_env --without-pip
source ~/bnb_test/test_env/bin/activate.fish
curl https://bootstrap.pypa.io/get-pip.py | python
/opt/rocm/bin/rocminfo | grep gfx
git clone https://github.com/bitsandbytes-foundation/bitsandbytes.git cd bitsandbytes
pip install setuptools wheel thop tqdm pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm7.2 --no-cache-dir
python -c "import torch; print(f'ROCm available: {torch.cuda.is_available()}'); print(f'Current device: {torch.cuda.get_device_name(0)}')"
sudo pacman -S hipsparse hipblas hiprand hipsolver rocsparse rocblas rocrand rocsolver
sudo pacman -S hipblaslt sudo pacman -S hipcub rocprim
cmake -DCOMPUTE_BACKEND=hip
-DBNB_ROCM_ARCH="gfx1151"
-DCMAKE_PREFIX_PATH="/opt/rocm;/opt/rocm/lib/cmake"
-S .
make -j$(nproc)
pip install ..
python -m bitsandbytes