Skip to content

Commit a8c155f

Browse files
authored
Merge branch 'site' into credits
2 parents 85201e3 + 68bb341 commit a8c155f

File tree

98 files changed

+2453
-169
lines changed

Some content is hidden

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

98 files changed

+2453
-169
lines changed

_events/pytorch-conference-2025.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
category: event
3+
title: "PyTorch Conference 2025"
4+
date: October 23, 2025
5+
poster: assets/images/pytorch-conf-2025.jpg
6+
---
7+
**Date**: October 22 - 23, 2025
8+
9+
<a href="https://events.linuxfoundation.org/pytorch-conference-2025/">
10+
<img style="width:100%" src="/assets/images/pytorch-conf-2025.jpg" alt="PyTorch Conference banner">
11+
</a>
12+
13+
Join us in San Francisco on **October 22-23, 2025** to learn about AI and PyTorch, the cutting-edge renowned open source machine learning framework. This two-day event that brings together top-tier researchers, developers, and academic communities, fostering collaboration and advancing end-to-end machine learning.

_get_started/installation/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyTorch is supported on Linux distributions that use [glibc](https://www.gnu.org
2525
### Python
2626
{: #linux-python}
2727

28-
Python 3.8-3.11 is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
28+
Python 3.9-3.12 is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
2929

3030
> Tip: By default, you will have to use the command `python3` to run Python. If you want to use just the command `python`, instead of `python3`, you can symlink `python` to the `python3` binary.
3131

_get_started/installation/mac.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,19 @@ PyTorch is supported on macOS 10.15 (Catalina) or above.
1313
### Python
1414
{: #mac-python}
1515

16-
It is recommended that you use Python 3.8 - 3.11.
16+
It is recommended that you use Python 3.9 - 3.12.
1717
You can install Python either through the Anaconda
1818
package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or
1919
the [Python website](https://www.python.org/downloads/mac-osx/).
2020

21-
In one of the upcoming PyTorch releases, support for Python 3.8 will be deprecated.
22-
2321
### Package Manager
2422
{: #mac-package-manager}
2523

26-
To install the PyTorch binaries, you will need to use one of two supported package managers: [Anaconda](https://www.anaconda.com/download/#macos) or [pip](https://pypi.org/project/pip/). Anaconda is the recommended package manager as it will provide you all of the PyTorch dependencies in one, sandboxed install, including Python.
27-
24+
To install the PyTorch binaries, you will need to use one of two supported package managers: [pip](https://pypi.org/project/pip/) or [Anaconda](https://www.anaconda.com/download/#macos).
2825
#### Anaconda
2926

30-
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:
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`, or use the following commands on Mac computer with Apple silicon:
3128

32-
```bash
33-
# The version of Anaconda may be different depending on when you are installing`
34-
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
35-
sh Miniconda3-latest-MacOSX-x86_64.sh
36-
# and follow the prompts. The defaults are generally good.`
37-
```
38-
or following commands on M1 Mac:
3929
```bash
4030
# The version of Anaconda may be different depending on when you are installing`
4131
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh

_get_started/installation/windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PyTorch is supported on the following Windows distributions:
1818
### Python
1919
{: #windows-python}
2020

21-
Currently, PyTorch on Windows only supports Python 3.8-3.11; Python 2.x is not supported.
21+
Currently, PyTorch on Windows only supports Python 3.9-3.12; Python 2.x is not supported.
2222

2323
As it is not installed by default on Windows, there are multiple ways to install Python:
2424

_get_started/previous-versions.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,43 @@ your convenience.
1717

1818
## Commands for Versions >= 1.0.0
1919

20+
### v2.4.1
21+
#### Conda
22+
##### OSX
23+
```
24+
# conda
25+
conda install pytorch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 -c pytorch
26+
```
27+
##### Linux and Windows
28+
```
29+
# CUDA 11.8
30+
conda install pytorch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 pytorch-cuda=11.8 -c pytorch -c nvidia
31+
# CUDA 12.1
32+
conda install pytorch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 pytorch-cuda=12.1 -c pytorch -c nvidia
33+
# CUDA 12.4
34+
conda install pytorch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 pytorch-cuda=12.4 -c pytorch -c nvidia
35+
# CPU Only
36+
conda install pytorch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 cpuonly -c pytorch
37+
```
38+
#### Wheel
39+
##### OSX
40+
```
41+
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1
42+
```
43+
##### Linux and Windows
44+
```
45+
# ROCM 6.1 (Linux only)
46+
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/rocm6.1
47+
# CUDA 11.8
48+
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu118
49+
# CUDA 12.1
50+
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121
51+
# CUDA 12.4
52+
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu124
53+
# CPU only
54+
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cpu
55+
```
56+
2057
### v2.4.0
2158

2259
#### Conda

_get_started/pytorch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: get_started
3-
title: PyTorch 2.0
3+
title: PyTorch 2.x
44
permalink: /get-started/pytorch-2.0/
55
featured-img: "assets/images/featured-img-pytorch-2.png"
66
background-class: get-started-background

_includes/main_menu.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<span class=dropdown-title>Developer Resources</span>
5353
<p>Find resources and get questions answered</p>
5454
</a>
55-
<a class="nav-dropdown-item" href="{{ site.baseurl}}/ecosystem/contributor-awards-2023">
56-
<span class="dropdown-title">Contributor Awards - 2023</span>
55+
<a class="nav-dropdown-item" href="{{ site.baseurl}}/ecosystem/contributor-awards-2024">
56+
<span class="dropdown-title">Contributor Awards - 2024</span>
5757
<p>Award winners announced at this year's PyTorch Conference</p>
5858
</a>
5959
</div>
@@ -141,6 +141,11 @@
141141
</a>
142142
<a class="nav-dropdown-item" href="{{ site.baseurl }}/credits">
143143
<span class=dropdown-title>Cloud Credit Program</span>
144+
<a class="nav-dropdown-item" href="{{ site.baseurl }}/tac">
145+
<span class=dropdown-title>Technical Advisory Council</span>
146+
</a>
147+
<a class="nav-dropdown-item" href="{{ site.baseurl }}/staff">
148+
<span class=dropdown-title>Staff</span>
144149
</a>
145150
<a class="nav-dropdown-item" href="{{ site.baseurl }}/contact-us">
146151
<span class=dropdown-title>Contact Us</span>

_includes/mobile_menu.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<a href="{{ site.baseurl }}/resources">Developer Resources</a>
6161
</li>
6262
<li>
63-
<a href="{{ site.baseurl}}/ecosystem/contributor-awards-2023">Contributor Awards - 2023</a>
63+
<a href="{{ site.baseurl}}/ecosystem/contributor-awards-2024">Contributor Awards - 2024</a>
6464
</li>
6565
</ul>
6666
<li class="resources-mobile-menu-title">
@@ -119,6 +119,12 @@
119119
<li>
120120
<a href="{{ site.baseurl }}/credits">Cloud Credit Program</a>
121121
</li>
122+
<li>
123+
<a href="{{ site.baseurl }}/tac">Technical Advisory Council</a>
124+
</li>
125+
<li>
126+
<a href="{{ site.baseurl }}/staff">Staff</a>
127+
</li>
122128
<li>
123129
<a href="{{ site.baseurl }}/contact-us">Contact Us</a>
124130
</li>

_includes/quick_start_local.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="{{ site.baseurl }}/get-started/previous-versions">install previous versions of PyTorch</a>. Note that LibTorch is only available for C++.
66
</p>
77

8-
<p><b>NOTE:</b> Latest PyTorch requires Python 3.8 or later.</p>
8+
<p><b>NOTE:</b> Latest PyTorch requires Python 3.9 or later.</p>
99

1010
<div class="row">
1111
<div class="col-md-3 headings">

_posts/2021-6-8-overview-of-pytorch-autograd-engine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ In the example above, when multiplying x and y to obtain v, the engine will exte
3737
<p>Figure 2: Computational graph extended after executing the logarithm</p>
3838
</div>
3939

40-
Continuing, the engine now calculates the <a href="https://www.codecogs.com/eqnedit.php?latex=log(v)" target="_blank"><img src="https://latex.codecogs.com/gif.latex?log(v)" title="log(v)" /></a> operation and extends the graph again with the log derivative that it knows to be <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{1}{v}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{1}{v}" title="\frac{1}{v}" /></a>. This is shown in figure 3. This operation generates the result <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\partial&space;w}{\partial&space;v}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\partial&space;w}{\partial&space;v}" title="\frac{\partial w}{\partial v}" /></a> that when propagated backward and multiplied by the multiplication derivative as in the chain rule, generates the derivatives <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\partial&space;w}{\partial&space;x}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\partial&space;w}{\partial&space;x}" title="\frac{\partial w}{\partial x}" /></a>, <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\partial&space;w}{\partial&space;x}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\partial&space;w}{\partial&space;x}" title="\frac{\partial w}{\partial x}" /></a>.
40+
Continuing, the engine now calculates the <a href="https://www.codecogs.com/eqnedit.php?latex=log(v)" target="_blank"><img src="https://latex.codecogs.com/gif.latex?log(v)" title="log(v)" /></a> operation and extends the graph again with the log derivative that it knows to be <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{1}{v}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{1}{v}" title="\frac{1}{v}" /></a>. This is shown in figure 3. This operation generates the result <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\partial&space;w}{\partial&space;v}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\partial&space;w}{\partial&space;v}" title="\frac{\partial w}{\partial v}" /></a> that when propagated backward and multiplied by the multiplication derivative as in the chain rule, generates the derivatives <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\partial&space;w}{\partial&space;x}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\partial&space;w}{\partial&space;x}" title="\frac{\partial w}{\partial x}" /></a>, <a href="https://www.codecogs.com/eqnedit.php?latex=\frac{\partial&space;w}{\partial&space;y}" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\frac{\partial&space;w}{\partial&space;y}" title="\frac{\partial w}{\partial y}" /></a>.
4141

4242
<div class="text-center">
4343
<img src="{{ site.baseurl }}/assets/images/extended_computational_graph.png" width="100%">
@@ -111,7 +111,7 @@ We can execute the same expression in PyTorch and calculate the gradient of the
111111
<pre>>>> y.backward(1.0)</pre>
112112
<pre>>>> x.grad</pre>
113113
tensor([1.3633,
114-
0.1912])</pre>
114+
0.1912])
115115
</div>
116116

117117
The result is the same as our hand-calculated Jacobian-vector product!

0 commit comments

Comments
 (0)