System Info
Environment
- OS: Linux x86_64 (Ubuntu 24.04)
- Python: 3.12
- PyTorch: 2.11+xpu (XPU build, installed from Intel index)
- bitsandbytes wheel:
bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl from continuous-release_main
Describe the bug
Installing the latest preview wheel from GitHub releases with --force-reinstall silently uninstalls the user's XPU PyTorch and replaces it with CUDA PyTorch from PyPI.
pip install --force-reinstall \
https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl
The wheel metadata declares:
Requires-Dist: torch<3,>=2.3
When pip resolves this dependency with --force-reinstall, it pulls torch from the default PyPI index, which only hosts CUDA builds. This overwrites the XPU-flavored PyTorch (e.g. torch==2.7.0+xpu installed from https://pytorch-extension.intel.com/release-whl/stable/xpu/us/) with the CUDA variant.
Reproduction
pip install --force-reinstall
https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl
Expected behavior
Installing the bitsandbytes wheel should not replace an already-installed XPU PyTorch with the CUDA build. Users on XPU environments should be able to install bitsandbytes without losing their PyTorch backend.
System Info
Environment
bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whlfrom continuous-release_mainDescribe the bug
Installing the latest preview wheel from GitHub releases with
--force-reinstallsilently uninstalls the user's XPU PyTorch and replaces it with CUDA PyTorch from PyPI.The wheel metadata declares:
When pip resolves this dependency with
--force-reinstall, it pullstorchfrom the default PyPI index, which only hosts CUDA builds. This overwrites the XPU-flavored PyTorch (e.g.torch==2.7.0+xpuinstalled fromhttps://pytorch-extension.intel.com/release-whl/stable/xpu/us/) with the CUDA variant.Reproduction
pip install --force-reinstall
https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl
Expected behavior
Installing the bitsandbytes wheel should not replace an already-installed XPU PyTorch with the CUDA build. Users on XPU environments should be able to install bitsandbytes without losing their PyTorch backend.