Set torch url index in pyproject.toml (#16802)
This commit is contained in:
@@ -82,6 +82,22 @@ dependencies = [
|
||||
"grpcio-health-checking==1.75.1", # required for Kubernetes gRPC health probes
|
||||
]
|
||||
|
||||
[[tool.uv.index]]
|
||||
name = "pypi"
|
||||
url = "https://pypi.org/simple"
|
||||
default = true
|
||||
|
||||
[[tool.uv.index]]
|
||||
name = "torch-cu129"
|
||||
url = "https://download.pytorch.org/whl/cu129"
|
||||
explicit = true
|
||||
|
||||
[tool.uv.sources]
|
||||
torch = [
|
||||
{ index = "pypi", marker = "platform_machine == 'x86_64'"},
|
||||
{ index = "torch-cu129", marker = "platform_machine == 'aarch64'"},
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
checkpoint-engine = ["checkpoint-engine==0.1.2"]
|
||||
diffusion = [
|
||||
|
||||
Reference in New Issue
Block a user