Skip to content

Commit

Permalink
Merge pull request #1164 from atalman/release113_getting_started
Browse files Browse the repository at this point in the history
Release 1.13 getting started page
  • Loading branch information
atalman committed Oct 28, 2022
2 parents e7ccc99 + 25e0c48 commit 5c0841a
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 210 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/check-quickstartmodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@ jobs:
fail-fast: false
matrix:
rel_type: ["latest_stable", "latest_lts"]
acc_type: ["cuda11.x", "cuda10.2", "accnone"]
py_vers: ["3.7", "3.8", "3.9"]
acc_type: ["cuda.x", "cuda.y", "accnone"]
py_vers: ["3.7", "3.8", "3.9", "3.10"]
os: ["ubuntu-18.04", "macos-latest", "windows.2022.small"]
# We don't actively build for CUDA 10.2 on windows so we should
# skip it in our test matrix for pip install
exclude:
- os: "windows.2022.small"
acc_type: "cuda10.2"
- rel_type: "latest_lts"
py_vers: "3.10"

env:
TEST_ACC: ${{ matrix.acc_type }}
TEST_VER: ${{ matrix.rel_type }}
Expand Down Expand Up @@ -91,8 +90,8 @@ jobs:
fail-fast: false
matrix:
rel_type: ["latest_stable"]
acc_type: ["cuda11.x", "cuda10.2", "accnone"]
py_vers: ["3.7", "3.8", "3.9"]
acc_type: ["cuda.x", "cuda.y", "accnone"]
py_vers: ["3.7", "3.8", "3.9", "3.10"]
os: ["ubuntu-18.04", "macos-latest"]
env:
TEST_ACC: ${{ matrix.acc_type }}
Expand Down
49 changes: 48 additions & 1 deletion _get_started/previous-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,53 @@ your convenience.

## Commands for Versions >= 1.0.0

### v1.12.1

#### Conda

##### OSX

```
# conda
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 -c pytorch
```

##### Linux and Windows

```
# CUDA 10.2
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
# CUDA 11.3
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
# CUDA 11.6
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge
# CPU Only
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cpuonly -c pytorch
```

#### Wheel

##### OSX

```
pip install torch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1
```

##### Linux and Windows

```
# ROCM 5.1.1 (Linux only)
pip install torch==1.12.1+rocm5.1.1 torchvision==0.13.1+rocm5.1.1 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/rocm5.1.1
# CUDA 11.6
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu116
# CUDA 11.3
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
# CUDA 10.2
pip install torch==1.12.1+cu102 torchvision==0.13.1+cu102 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu102
# CPU only
pip install torch==1.12.1+cpu torchvision==0.13.1+cpu torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cpu
```

### v1.12.0

#### Conda
Expand Down Expand Up @@ -52,7 +99,7 @@ pip install torch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0
##### Linux and Windows

```
# ROCM 5.1.1 (Linux only
# ROCM 5.1.1 (Linux only)
pip install torch==1.12.0+rocm5.1.1 torchvision==0.13.0+rocm5.1.1 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/rocm5.1.1
# CUDA 11.6
pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116
Expand Down
23 changes: 11 additions & 12 deletions _includes/quick-start-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ var supportedOperatingSystems = new Map([
]);

var supportedComputePlatforms = new Map([
['cuda10.2', new Set(['linux', 'windows'])],
['cuda11.x', new Set(['linux', 'windows'])],
['cuda11.y', new Set(['linux', 'windows'])],
['cuda.x', new Set(['linux', 'windows'])],
['cuda.y', new Set(['linux', 'windows'])],
['rocm5.x', new Set(['linux'])],
['accnone', new Set(['linux', 'macos', 'windows'])],
]);
Expand Down Expand Up @@ -99,7 +98,7 @@ function getPreferredCuda(os) {
if (os == 'macos') {
return 'accnone';
}
return 'cuda10.2';
return 'cuda11.6';
}

// Disable compute platform not supported on OS
Expand All @@ -117,8 +116,8 @@ function disableUnsupportedPlatforms(os) {

// Change compute versions depending on build type
function changeCUDAVersion(ptbuild) {
var cuda_element_x = document.getElementById("cuda11.x");
var cuda_element_y = document.getElementById("cuda11.y");
var cuda_element_x = document.getElementById("cuda.x");
var cuda_element_y = document.getElementById("cuda.y");
var rocm_element = document.getElementById("rocm5.x");
if (cuda_element_x == null || cuda_element_y == null) {
console.log("Failed to find cuda11 elements");
Expand All @@ -141,13 +140,13 @@ function changeCUDAVersion(ptbuild) {
cuda_element_x.children[0].textContent = "CUDA 11.6";
cuda_element_y.children[0].textContent = "CUDA 11.7";
} else if (ptbuild == "stable") {
rocm_element.children[0].textContent = "ROCm 5.1.1";
cuda_element_x.children[0].textContent = "CUDA 11.3";
cuda_element_y.children[0].textContent = "CUDA 11.6";
rocm_element.children[0].textContent = "ROCm 5.2";
cuda_element_x.children[0].textContent = "CUDA 11.6";
cuda_element_y.children[0].textContent = "CUDA 11.7";
} else {
rocm_element.children[0].textContent = "ROCm 5.1.1";
cuda_element_x.children[0].textContent = "CUDA 11.3";
cuda_element_y.children[0].textContent = "CUDA 11.6";
rocm_element.children[0].textContent = "ROCm 5.2";
cuda_element_x.children[0].textContent = "CUDA 10.2";
cuda_element_y.children[0].textContent = "CUDA 11.1";
}
}

Expand Down
15 changes: 6 additions & 9 deletions _includes/quick_start_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="option-text">PyTorch Build</div>
</div>
<div class="col-md-4 option block version selected" id="stable">
<div class="option-text">Stable (1.12.1)</div>
<div class="option-text">Stable (1.13.0)</div>
</div>
<div class="col-md-4 option block version" id="preview">
<div class="option-text">Preview (Nightly)</div>
Expand Down Expand Up @@ -88,17 +88,14 @@
<div class="col-md-12 title-block mobile-heading">
<div class="option-text">Compute Platform</div>
</div>
<div class="col-md-2 option block version selected" id="cuda10.2">
<div class="option-text">CUDA 10.2</div>
</div>
<div class="col-md-2 option block version" id="cuda11.x">
<div class="option-text">CUDA 11.3</div>
</div>
<div class="col-md-2 option block version" id="cuda11.y">
<div class="col-md-3 option block version" id="cuda.x">
<div class="option-text">CUDA 11.6</div>
</div>
<div class="col-md-3 option block version" id="cuda.y">
<div class="option-text">CUDA 11.7</div>
</div>
<div class="col-md-3 option block version" id="rocm5.x">
<div class="option-text">ROCm 5.1.1</div>
<div class="option-text">ROCm 5.2</div>
</div>
<div class="col-md-3 option block version" id="accnone">
<div class="option-text">CPU</div>
Expand Down
25 changes: 12 additions & 13 deletions assets/quick-start-module.js

Large diffs are not rendered by default.

0 comments on commit 5c0841a

Please sign in to comment.