Skip to content

Commit 08b1bb0

Browse files
authored
Merge branch 'site' into customer-stories-page
2 parents 8616a95 + f283e85 commit 08b1bb0

File tree

2,068 files changed

+75220
-53897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,068 files changed

+75220
-53897
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ GEM
218218
jekyll-seo-tag (~> 2.1)
219219
minitest (5.14.4)
220220
multipart-post (2.1.1)
221-
nokogiri (1.13.4)
221+
nokogiri (1.13.6)
222222
mini_portile2 (~> 2.8.0)
223223
racc (~> 1.4)
224224
octokit (4.20.0)

_get_started/installation/mac.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# Installing on macOS
22
{:.no_toc}
33

4-
PyTorch can be installed and used on macOS. Depending on your system and compute requirements, your experience with PyTorch on a Mac may vary in terms of processing time. It is recommended, but not required, that your Mac have an NVIDIA GPU in order to harness the full power of PyTorch's [CUDA](https://developer.nvidia.com/cuda-zone) [support](https://pytorch.org/tutorials/beginner/blitz/tensor_tutorial.html?highlight=cuda#cuda-tensors).
5-
6-
> Currently, CUDA support on macOS is only available by [building PyTorch from source](#mac-from-source)
4+
PyTorch can be installed and used on macOS. Depending on your system and GPU capabilities, your experience with PyTorch on a Mac may vary in terms of processing time.
75

86
## Prerequisites
97
{: #mac-prerequisites}
108

119
### macOS Version
1210

13-
PyTorch is supported on macOS 10.10 (Yosemite) or above.
11+
PyTorch is supported on macOS 10.15 (Catalina) or above.
1412

1513
### Python
1614
{: #mac-python}
@@ -24,15 +22,21 @@ To install the PyTorch binaries, you will need to use one of two supported packa
2422

2523
#### Anaconda
2624

27-
To install Anaconda, you can [download graphical installer](https://www.anaconda.com/download/#macos) or use the command-line installer. If you use the command-line installer, you can right-click on the installer link, select `Copy Link Address`, and then use the following commands:
25+
To install Anaconda, you can [download graphical installer](https://www.anaconda.com/download/#macos) or use the command-line installer. If you use the command-line installer, you can right-click on the installer link, select `Copy Link Address`, or use the following commands on Intel Mac:
2826

2927
```bash
3028
# The version of Anaconda may be different depending on when you are installing`
3129
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
3230
sh Miniconda3-latest-MacOSX-x86_64.sh
3331
# and follow the prompts. The defaults are generally good.`
3432
```
35-
33+
or following commands on M1 Mac:
34+
```bash
35+
# The version of Anaconda may be different depending on when you are installing`
36+
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
37+
sh Miniconda3-latest-MacOSX-arm64.sh
38+
# and follow the prompts. The defaults are generally good.`
39+
```
3640
#### pip
3741

3842
*Python 3*
@@ -89,13 +93,10 @@ tensor([[0.3380, 0.3845, 0.3217],
8993

9094
For the majority of PyTorch users, installing from a pre-built binary via a package manager will provide the best experience. However, there are times when you may want to install the bleeding edge PyTorch code, whether for testing or actual development on the PyTorch core. To install the latest PyTorch code, you will need to [build PyTorch from source](https://github.com/pytorch/pytorch#from-source).
9195

92-
> You will also need to build from source if you want CUDA support.
93-
9496
### Prerequisites
9597
{: #mac-prerequisites-2}
9698

97-
1. Install [Anaconda](#anaconda)
98-
2. Install [CUDA](https://developer.nvidia.com/cuda-downloads), if your machine has a [CUDA-enabled GPU](https://developer.nvidia.com/cuda-gpus).
99-
3. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source)
99+
1. [Optional] Install [Anaconda](#anaconda)
100+
2. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source)
100101

101102
You can verify the installation as described [above](#mac-verification).

_includes/production.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2>Agriculture</h2>
4040
(Protocol)</a>
4141
</div>
4242
</div>
43-
<div id="autonomous-driving" class="production-section col-md-8 offset-md-1 container">
43+
<div id="autonomous-driving" class="production-section col-md-8 offset-md-1 container">
4444
<h2>Autonomous Driving</h2>
4545
<div class="production-item">
4646
<a class="autonomous-driving-0"

_includes/quick-start-module.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function disableUnsupportedPlatforms(os) {
115115
});
116116
}
117117

118-
// Change compute versiosn depending on build type
118+
// Change compute versions depending on build type
119119
function changeCUDAVersion(ptbuild) {
120120
var cuda_element = document.getElementById("cuda11.x");
121121
var rocm_element = document.getElementById("rocm4.x");
@@ -136,7 +136,7 @@ function changeCUDAVersion(ptbuild) {
136136
return;
137137
}
138138
if (ptbuild == "preview") {
139-
rocm_element.children[0].textContent = "ROCM 4.5.2 (beta)";
139+
rocm_element.children[0].textContent = "ROCM 5.1.1 (beta)";
140140
cuda_element.children[0].textContent = "CUDA 11.3";
141141
} else if (ptbuild == "stable") {
142142
rocm_element.children[0].textContent = "ROCM 4.5.2 (beta)";
@@ -147,6 +147,20 @@ function changeCUDAVersion(ptbuild) {
147147
}
148148
}
149149

150+
// Change accnone name depending on OS type
151+
function changeAccNoneName(osname) {
152+
var accnone_element = document.getElementById("accnone");
153+
if (accnone_element == null) {
154+
console.log("Failed to find accnone element");
155+
return;
156+
}
157+
if (osname == "macos") {
158+
accnone_element.children[0].textContent = "Default";
159+
} else {
160+
accnone_element.children[0].textContent = "CPU";
161+
}
162+
}
163+
150164
function selectedOption(option, selection, category) {
151165
$(option).removeClass("selected");
152166
$(selection).addClass("selected");
@@ -189,6 +203,7 @@ function selectedOption(option, selection, category) {
189203
commandMessage(buildMatcher());
190204
if (category === "os") {
191205
disableUnsupportedPlatforms(opts.os);
206+
changeAccNoneName(opts.os);
192207
display(opts.os, 'installation', 'os');
193208
}
194209
}

0 commit comments

Comments
 (0)