|
16 | 16 | # The pip repository that hosts released torch packages. |
17 | 17 | # This will be dynamically set based on CUDA availability and CUDA backend enabled/disabled. |
18 | 18 | TORCH_URL_BASE = "https://download.pytorch.org/whl" |
19 | | -TORCHAO_URL_BASE = "https://download.pytorch.org/whl" |
20 | | -TORCHAO_NIGHTLY_VERSION = "0.19.0" |
21 | | -CU134_TORCHAO_NIGHTLY_VERSION = "0.19.0" |
22 | | -ROCM_TORCHAO_NIGHTLY_VERSION = "0.19.0" |
| 19 | +TORCHAO_URL_BASE = "https://download.pytorch.org/whl/nightly" |
| 20 | +TORCHAO_NIGHTLY_VERSION = "0.19.0.dev20260907" |
| 21 | +CU134_TORCHAO_NIGHTLY_VERSION = "0.19.0.dev20260907" |
| 22 | +# Newest rocm7.2 TorchAO nightly with compiled kernels (cp310-abi3); later ROCm nightlies |
| 23 | +# are py3-none-any only, and none are published after 0.19.0.dev20260831. |
| 24 | +ROCM_TORCHAO_NIGHTLY_VERSION = "0.19.0.dev20260805" |
23 | 25 | CU134_TORCH_PACKAGES = [ |
24 | 26 | "torch==2.15.0+cu134", |
25 | 27 | "torchvision==0.29.2+cu134", |
@@ -67,14 +69,12 @@ def install_requirements(use_pytorch_nightly): |
67 | 69 | # Determine the appropriate PyTorch URL based on CUDA delegate status |
68 | 70 | torch_url = determine_torch_url(TORCH_URL_BASE) |
69 | 71 | cu134_packages = cu134_requirements(torch_url) |
70 | | - if cu134_packages: |
71 | | - torch_url = determine_torch_url(TORCHAO_URL_BASE) |
72 | | - if not use_pytorch_nightly: |
73 | | - cu134_packages[0] = "torch" |
| 72 | + if cu134_packages and not use_pytorch_nightly: |
| 73 | + cu134_packages[0] = "torch" |
74 | 74 | # torchao's CUDA channel publishes x86_64 only, so asking for a CUDA build makes the pin |
75 | 75 | # unsatisfiable on aarch64. Only that case is special-cased: falling back everywhere would |
76 | 76 | # change which torchao a CPU x86_64 install resolves, and the CUDA build is genuinely wanted |
77 | | - # where it exists. This release is what the checkout is tested against, and the |
| 77 | + # where it exists. This nightly is what a development checkout is tested against, and the |
78 | 78 | # wheel's own torchao lower bound is this same version so that installing the package |
79 | 79 | # afterwards leaves this pin in place rather than replacing it. |
80 | 80 | if platform.machine().lower() in ("aarch64", "arm64"): |
@@ -183,11 +183,14 @@ def install_optional_example_requirements(use_pytorch_nightly): |
183 | 183 | if use_pytorch_nightly |
184 | 184 | else [] |
185 | 185 | ) |
186 | | - if cu134_packages: |
187 | | - torch_url = determine_torch_url(TORCHAO_URL_BASE) |
| 186 | + torchao_url = ( |
| 187 | + f"{TORCHAO_URL_BASE}/cpu" |
| 188 | + if platform.machine().lower() in ("aarch64", "arm64") |
| 189 | + else determine_torch_url(TORCHAO_URL_BASE) |
| 190 | + ) |
188 | 191 | torchao_index = ( |
189 | | - ["--extra-index-url", f"{TORCHAO_URL_BASE}/cpu"] |
190 | | - if cu134_packages and platform.machine().lower() in ("aarch64", "arm64") |
| 192 | + ["--extra-index-url", torchao_url] |
| 193 | + if cu134_packages and not torchao_from_source() |
191 | 194 | else [] |
192 | 195 | ) |
193 | 196 |
|
|
0 commit comments