uv/crates/uv-torch/src
Charlie Marsh 3e34aee63e
Avoid introducing unnecessary system dependency on CUDA (#15449)
## Summary

Packages like `triton` should come from the PyTorch index, but they
don't actually vary across (e.g.) the `cu128` or `cu129` indexes.

Closes https://github.com/astral-sh/uv/issues/15446.

## Test Plan

Validate that the following pins to `cu128`, rather than `cpu`:

```
echo "vllm\ntorch==2.7.1+cu128" | cargo run pip compile --torch-backend=auto --extra-index-url https://wheels.vllm.ai/b2f6c247a9b84556a8ea0e75bb4a2db765ff3315 - --python-platform linux --python-version 3.13 -v
```
2025-08-22 12:06:23 +01:00
..
accelerator.rs Add auto-detection for Intel GPUs (#14386) 2025-07-09 13:31:08 +00:00
backend.rs Avoid introducing unnecessary system dependency on CUDA (#15449) 2025-08-22 12:06:23 +01:00
lib.rs Automatically infer the PyTorch index via `--torch-backend=auto` (#12070) 2025-03-19 14:37:08 +00:00