Skip to content

Commit 2bbdff4

Browse files
authored
[ML] Upgrade to PyTorch 2.5.0 on Windows 2022 builds (#2783)
Update build scripts and docs to refer to PyTorch 2.5.0 * Uses latest Windows 2022 VM image (family/ml-cpp-3-windows-2022)
1 parent 6776b9c commit 2bbdff4

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.buildkite/pipelines/build_windows.json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def main(args):
4545
"provider": "gcp",
4646
"machineType": "c2-standard-16",
4747
"minCpuPlatform": "Intel Cascade Lake",
48+
"image": "family/ml-cpp-3-windows-2022",
4849
"image": "family/ml-cpp-2-windows-2022",
4950
},
5051
"commands": [

build-setup/windows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ On the "Advanced Options" screen, check "Install for all users" and "Add Python
202202

203203
For the time being, do not take advantage of the option on the final installer screen to reconfigure the machine to allow paths longer than 260 characters. We still support Windows versions that do not have this option.
204204

205-
### PyTorch 2.3.1
205+
### PyTorch 2.5.0
206206

207207
(This step requires a lot of memory. It failed on a machine with 12GB of RAM. It just about fitted on a 20GB machine. 32GB RAM is recommended.)
208208

@@ -216,7 +216,7 @@ Next, in a Git bash shell run:
216216

217217
```
218218
cd /c/tools
219-
git clone --depth=1 --branch=v2.3.1 https://github.com/pytorch/pytorch.git
219+
git clone --depth=1 --branch=v2.5.0 https://github.com/pytorch/pytorch.git
220220
cd pytorch
221221
git submodule sync
222222
git submodule update --init --recursive
@@ -272,7 +272,7 @@ set USE_QNNPACK=OFF
272272
set USE_PYTORCH_QNNPACK=OFF
273273
set USE_XNNPACK=OFF
274274
set MSVC_Z7_OVERRIDE=OFF
275-
set PYTORCH_BUILD_VERSION=2.3.1
275+
set PYTORCH_BUILD_VERSION=2.5.0
276276
set PYTORCH_BUILD_NUMBER=1
277277
python setup.py install
278278
```

dev-tools/build_windows_third_party_deps.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ mv "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\$f\
117117
# Build and install PyTorch (this may take a while)
118118
Write-Host "--- Installing PyTorch locally"
119119
cd c:\tools
120-
git clone --depth=1 --branch=v2.3.1 https://github.com/pytorch/pytorch.git
120+
git clone --depth=1 --branch=v2.5.0 https://github.com/pytorch/pytorch.git
121121
cd pytorch
122122
git submodule sync
123123
git submodule update --init --recursive
@@ -131,7 +131,7 @@ set USE_QNNPACK=OFF
131131
set USE_PYTORCH_QNNPACK=OFF
132132
set USE_XNNPACK=OFF
133133
set MSVC_Z7_OVERRIDE=OFF
134-
set PYTORCH_BUILD_VERSION=2.3.1
134+
set PYTORCH_BUILD_VERSION=2.5.0
135135
set PYTORCH_BUILD_NUMBER=1
136136
python setup.py install
137137
Write-Host "--- Done Installing PyTorch locally"

docs/CHANGELOG.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
=== Enhancements
3434

35+
* Update the PyTorch library to version 2.5.0. (See {ml-pull}2783[#2783].)
3536
* Upgrade Boost libraries to version 1.86. (See {ml-pull}2780[#2780].)
3637

3738
== {es} version 8.16.0

0 commit comments

Comments
 (0)