id: REF-UV-PYTORCH
title: Using uv with PyTorch
source_type: tool_documentation
publisher: Astral
url: https://docs.astral.sh/uv/guides/integration/pytorch/
accessed_at: "2026-08-21T23:31:01Z"
relevant_claims:
  - uv can manage PyTorch dependencies while controlling accelerator selection.
  - PyTorch wheels use dedicated indexes outside PyPI for many builds.
  - PyTorch encodes accelerator builds in local version specifiers such as +cpu and +cu130.
  - Different PyTorch accelerator builds are published on different indexes.
