Skip to content

Commit

Permalink
Release 1.13 getting started page
Browse files Browse the repository at this point in the history
fix quick start local

Update published versions

Point release 1.13 builds to test channel

Fix quickstart module validation

Fix libtorch versions

Adding cuda.x and cuda.y and fix lts instructions

test
  • Loading branch information
atalman committed Oct 28, 2022
1 parent e7ccc99 commit ddae3e8
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 209 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
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 ddae3e8

Please sign in to comment.