Skip to content

Commit

Permalink
[ML] Upgrade to PyTorch 1.11 on Windows (#2233)
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
droberts195 authored Mar 30, 2022
1 parent c87d090 commit 270a7c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build-setup/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ On the "Advanced Options" screen, check "Install for all users" and "Add Python

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.

### PyTorch 1.9.0
### PyTorch 1.11.0

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

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

```
cd /c/tools
git clone --depth=1 --branch=v1.9.0 [email protected]:pytorch/pytorch.git
git clone --depth=1 --branch=v1.11.0 [email protected]:pytorch/pytorch.git
cd pytorch
git submodule sync
git submodule update --init --recursive
Expand Down Expand Up @@ -278,7 +278,7 @@ set USE_QNNPACK=OFF
set USE_PYTORCH_QNNPACK=OFF
set USE_XNNPACK=OFF
set MSVC_Z7_OVERRIDE=OFF
set PYTORCH_BUILD_VERSION=1.9.0
set PYTORCH_BUILD_VERSION=1.11.0
set PYTORCH_BUILD_NUMBER=1
python setup.py install
```
Expand Down
4 changes: 2 additions & 2 deletions dev-tools/download_windows_deps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# limitation.
#
$ErrorActionPreference="Stop"
$Archive="usr-x86_64-windows-2016-5.zip"
$Archive="usr-x86_64-windows-2016-6.zip"
$Destination="C:\"
if (!(Test-Path "$Destination\usr\local\lib\boost_system-vc142-mt-x64-1_77.dll")) {
if (!(Test-Path "$Destination\usr\local\include\pytorch\torch\csrc\profiler\api.h")) {
Remove-Item "$Destination\usr" -Recurse -Force -ErrorAction Ignore
$ZipSource="https://s3-eu-west-1.amazonaws.com/prelert-artifacts/dependencies/$Archive"
$ZipDestination="$Env:TEMP\$Archive"
Expand Down

0 comments on commit 270a7c4

Please sign in to comment.