Summary
Currently, uv pip can automatically install the latest compatible CUDA version of PyTorch via:
1- CLI
uv pip install "torch" --torch-backend=auto --preview
2- pyproject.toml
[tool.uv.pip]
torch-backend = "auto"
It would be great if the same “auto” option were available when adding the torch package directly with uv add.
Proposal:
1- CLI
uv add torch --torch-backend=auto
2- pyproject.toml
[tool.uv]
torch-backend = "auto"
Thanks for this amazing tool!
Example
No response
Summary
Currently,
uv pipcan automatically install the latest compatible CUDA version of PyTorch via:1- CLI
uv pip install "torch" --torch-backend=auto --preview2- pyproject.toml
It would be great if the same “auto” option were available when adding the
torchpackage directly withuv add.Proposal:
1- CLI
uv add torch --torch-backend=auto2- pyproject.toml
Thanks for this amazing tool!
Example
No response