Skip to content

Annotate the minimum UV version for optional dependencies in PyTorch documentation. #9224

@FishAlchemist

Description

@FishAlchemist

Since this feature is only supported in the new version, there will be errors for the old version, and users may be unsure of what to do. Therefore, should we include version notes in the documentation before the release?


https://github.com/astral-sh/uv/blob/main/docs/guides/integration/pytorch.md#configuring-accelerators-with-optional-dependencies
image

[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu", marker = "platform_system != 'Darwin'" },
{ index = "pytorch-cu124", extra = "cu124" },
]

uv 0.5.0 (8d66526 2024-11-07)
image
uv 0.5.2

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions