Skip to content

Commit 270a7c4

Browse files
authored
[ML] Upgrade to PyTorch 1.11 on Windows (#2233)
There are no changes to the build process since 1.9. We still don't ship with MKL on Windows. The size of MKL proved controversial on Linux, so it's best not to increase distribution size even further by adding in the Windows version. (We can still revisit this in the future if there's sufficient demand for NLP in production on Windows.)
1 parent c87d090 commit 270a7c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build-setup/windows.md

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

214214
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.
215215

216-
### PyTorch 1.9.0
216+
### PyTorch 1.11.0
217217

218218
PyTorch requires that certain Python modules are installed. Start a command prompt "cmd.exe" using "Run as administrator". In it run:
219219

@@ -227,7 +227,7 @@ Next, in a Git bash shell run:
227227

228228
```
229229
cd /c/tools
230-
git clone --depth=1 --branch=v1.9.0 git@github.com:pytorch/pytorch.git
230+
git clone --depth=1 --branch=v1.11.0 git@github.com:pytorch/pytorch.git
231231
cd pytorch
232232
git submodule sync
233233
git submodule update --init --recursive
@@ -278,7 +278,7 @@ set USE_QNNPACK=OFF
278278
set USE_PYTORCH_QNNPACK=OFF
279279
set USE_XNNPACK=OFF
280280
set MSVC_Z7_OVERRIDE=OFF
281-
set PYTORCH_BUILD_VERSION=1.9.0
281+
set PYTORCH_BUILD_VERSION=1.11.0
282282
set PYTORCH_BUILD_NUMBER=1
283283
python setup.py install
284284
```

dev-tools/download_windows_deps.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# limitation.
1010
#
1111
$ErrorActionPreference="Stop"
12-
$Archive="usr-x86_64-windows-2016-5.zip"
12+
$Archive="usr-x86_64-windows-2016-6.zip"
1313
$Destination="C:\"
14-
if (!(Test-Path "$Destination\usr\local\lib\boost_system-vc142-mt-x64-1_77.dll")) {
14+
if (!(Test-Path "$Destination\usr\local\include\pytorch\torch\csrc\profiler\api.h")) {
1515
Remove-Item "$Destination\usr" -Recurse -Force -ErrorAction Ignore
1616
$ZipSource="https://s3-eu-west-1.amazonaws.com/prelert-artifacts/dependencies/$Archive"
1717
$ZipDestination="$Env:TEMP\$Archive"

0 commit comments

Comments
 (0)