Skip to content

Commit 04464a6

Browse files
ci: add --no-deps note for custom PyTorch builds in pre-release notes
Users installing the preview wheel with --force-reinstall in an environment with a custom PyTorch (e.g. Intel XPU, ROCm) get their torch replaced with the default CUDA variant from PyPI. Add a note to the generated release body explaining the workaround. Closes #1912 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ec5e008 commit 04464a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ jobs:
340340
done
341341
342342
cat >> body.md << 'ENDOFMARKDOWN'
343+
> **Custom PyTorch builds (Intel XPU, ROCm, etc.):**
344+
> The `--force-reinstall` flag causes pip to re-resolve all dependencies from PyPI, which may replace your custom PyTorch build with the default CUDA variant. To avoid this, add `--no-deps`:
345+
> ```sh
346+
> pip install --force-reinstall --no-deps https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl
347+
> ```
348+
343349
> **Note:**
344350
> These wheels are updated automatically with every commit to `main` and become available as soon as the [python-package.yml](.github/workflows/python-package.yml) workflow finishes.
345351

0 commit comments

Comments
 (0)