Skip to content

Commit 5404187

Browse files
committed
fixes
1 parent f9b41d5 commit 5404187

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

published_versions.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,24 @@
5252
"accnone": {
5353
"note": null,
5454
"versions": {
55-
"Download here (Pre-cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip",
5655
"Download here (cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cpu/libtorch-cxx11-abi-shared-with-deps-latest.zip"
5756
}
5857
},
5958
"cuda.x": {
6059
"note": null,
6160
"versions": {
62-
"Download here (Pre-cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cu118/libtorch-shared-with-deps-latest.zip",
6361
"Download here (cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cu118/libtorch-cxx11-abi-shared-with-deps-latest.zip"
6462
}
6563
},
6664
"cuda.y": {
6765
"note": null,
6866
"versions": {
69-
"Download here (Pre-cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cu126/libtorch-shared-with-deps-latest.zip",
7067
"Download here (cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cu126/libtorch-cxx11-abi-shared-with-deps-latest.zip"
7168
}
7269
},
7370
"cuda.z": {
7471
"note": null,
7572
"versions": {
76-
"Download here (Pre-cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cu128/libtorch-shared-with-deps-latest.zip",
7773
"Download here (cxx11 ABI):": "https://download.pytorch.org/libtorch/nightly/cu128/libtorch-cxx11-abi-shared-with-deps-latest.zip"
7874
}
7975
},
@@ -5863,4 +5859,4 @@
58635859
}
58645860
}
58655861
}
5866-
}
5862+
}

scripts/gen_quick_start_module.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class OperatingSystem(Enum):
2424
MACOS: str = "macos"
2525

2626

27+
PRE_CXX11_ABI = "pre-cxx11"
2728
CXX11_ABI = "cxx11-abi"
2829
DEBUG = "debug"
2930
RELEASE = "release"
@@ -56,7 +57,7 @@ class OperatingSystem(Enum):
5657
acc_arch_ver_map = acc_arch_ver_default
5758

5859
LIBTORCH_DWNL_INSTR = {
59-
CXX11_ABI: "Download here:",
60+
CXX11_ABI: "Download here (cxx11 ABI):",
6061
RELEASE: "Download here (Release version):",
6162
DEBUG: "Download here (Debug version):",
6263
MACOS: "Download arm64 libtorch here (ROCm and CUDA are not supported):",
@@ -155,10 +156,14 @@ def update_versions(versions, release_matrix, release_version):
155156
if x["libtorch_variant"] == "shared-with-deps"
156157
}
157158
if instr["versions"] is not None:
158-
for ver in [CXX11_ABI]:
159-
instr["versions"][LIBTORCH_DWNL_INSTR[ver]] = (
160-
rel_entry_dict[ver]
161-
)
159+
for ver in [CXX11_ABI, PRE_CXX11_ABI]:
160+
# temporarily apply removal of cxx11 abi only to nightly
161+
if ver == PRE_CXX11_ABI and release_version == "nightly":
162+
continue
163+
else:
164+
instr["versions"][LIBTORCH_DWNL_INSTR[ver]] = (
165+
rel_entry_dict[ver]
166+
)
162167

163168
elif os_key == OperatingSystem.WINDOWS.value:
164169
rel_entry_dict = {

0 commit comments

Comments
 (0)