Skip to content

Commit 125600c

Browse files
authored
Merge branch 'site' into osano
2 parents 267cad5 + 1c16cfa commit 125600c

File tree

114 files changed

+4021
-90
lines changed

Some content is hidden

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

114 files changed

+4021
-90
lines changed
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
layout: blog_detail
3+
title: "PyTorch Shanghai Meetup Notes"
4+
ext_url: /blog/pytorch-shanghai-notes/
5+
date: Sep 8, 2024
6+
---
7+
8+
We are honored to successfully host the PyTorch Shanghai Meetup on August 15, 2024. This Meetup has received great attention from the industry. We invited senior PyTorch developers from Intel and Huawei as guest speakers, who shared their valuable experience and the latest technical trends. In addition, this event also attracted PyTorch enthusiasts from many technology companies and well-known universities. A total of more than 40 participants gathered together to discuss and exchange the latest applications and technological advances of PyTorch.
9+
10+
This Meetup not only strengthened the connection between PyTorch community members, but also provided a platform for local AI technology enthusiasts to learn, communicate and grow. We look forward to the next gathering to continue to promote the development of PyTorch technology in the local area.
11+
12+
## 1. PyTorch Foundation Updates
13+
14+
![man instructing students](/assets/images/pytorch-shanghai-notes/fg2.jpg){:style="width:100%"}
15+
16+
PyTorch Board member Fred Li shared the latest updates in the PyTorch community, He reviewed the development history of the PyTorch community, explained in detail the growth path of community developers, encouraged everyone to delve deeper into technology, and introduced the upcoming PyTorch Conference 2024 related matters.
17+
18+
## 2. Intel’s Journey with PyTorch Democratizing AI with ubiquitous hardware and open software
19+
20+
PyTorch CPU module maintainer Jiong Gong shared 6-year technical contributions from Intel to PyTorch and its ecosystem, explored the remarkable advancements that Intel has made in both software and hardware democratizing AI, ensuring accessibility, and optimizing performance across a diverse range of Intel hardware platforms.
21+
22+
![man instructing students](/assets/images/pytorch-shanghai-notes/fg3.jpg){:style="width:100%"}
23+
24+
## 3. Exploring Multi-Backend Support in PyTorch Ecosystem: A Case Study of Ascend
25+
26+
![man instructing students](/assets/images/pytorch-shanghai-notes/fg4.jpg){:style="width:100%"}
27+
28+
Fengchun Hua, a PyTorch contributor from Huawei, took Huawei Ascend NPU as an example to demonstrate the latest achievements in multi-backend support for PyTorch applications. He introduced the hardware features of Huawei Ascend NPU and the infrastructure of CANN (Compute Architecture for Neural Networks), and explained the key achievements and innovations in native support work. He also shared the current challenges and the next work plan.
29+
30+
Yuanhao Ji, another PyTorch contributor from Huawei, then introduced the Autoload Device Extension proposal, explained its implementation details and value in improving the scalability of PyTorch, and introduced the latest work progress of the PyTorch Chinese community.
31+
32+
## 4. Intel XPU Backend for Inductor
33+
34+
![man instructing students](/assets/images/pytorch-shanghai-notes/fg5.jpg){:style="width:100%"}
35+
36+
Eikan is a PyTorch contributor from Intel. He focuses on torch.compile stack for both Intel CPU and GPU. In this session, Eikan presented Intel's efforts on torch.compile for Intel GPUs. He provided updates on the current status of Intel GPUs within PyTorch, covering both functionality and performance aspects. Additionally, Eikan used Intel GPU as a case study to demonstrate how to integrate a new backend into the Inductor using Triton.
37+
38+
## 5. PyTorch PrivateUse1 Evolution Approaches and Insights
39+
40+
![man instructing students](/assets/images/pytorch-shanghai-notes/fg6.jpg){:style="width:100%"}
41+
42+
Jiawei Li, a PyTorch collaborator from Huawei, introduced PyTorch's Dispatch mechanism and emphasized the limitations of DIspatchKey. He took Huawei Ascend NPU as an example to share the best practices of the PyTorch PrivateUse1 mechanism. He mentioned that while using the PrivateUse1 mechanism, Huawei also submitted many improvements and bug fixes for the mechanism to the PyTorch community. He also mentioned that due to the lack of upstream CI support for out-of-tree devices, changes in upstream code may affect their stability and quality, and this insight was recognized by everyone.

_config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ external_urls:
7272
google: https://www.google.com/podcasts?feed=aHR0cHM6Ly9mZWVkcy5zaW1wbGVjYXN0LmNvbS9PQjVGa0lsOA%3D%3D
7373
amazon: https://music.amazon.com/podcasts/7a4e6f0e-26c2-49e9-a478-41bd244197d0/PyTorch-Developer-Podcast?
7474
linkedIn: https://www.linkedin.com/company/pytorch
75-
mastodon: https://social.lfx.dev/@pytorch
7675
livereload: true
7776
markdown: kramdown
7877
highlighter: rouge

_get_started/installation/linux.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Installing on Linux
22
{:.no_toc}
33

4-
PyTorch can be installed and used on various Linux distributions. Depending on your system and compute requirements, your experience with PyTorch on Linux may vary in terms of processing time. It is recommended, but not required, that your Linux system has an NVIDIA or AMD 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) or [ROCm](https://docs.amd.com) support.
4+
PyTorch can be installed and used on various Linux distributions. Depending on your system and compute requirements, your experience with PyTorch on Linux may vary in terms of processing time. It is recommended, but not required, that your Linux system has an NVIDIA or AMD 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) or [ROCm](https://rocm.docs.amd.com/) support.
55

66
## Prerequisites
77
{: #linux-prerequisites}
@@ -80,7 +80,7 @@ sudo apt install python3-pip
8080

8181
#### No CUDA/ROCm
8282

83-
To install PyTorch via Anaconda, and do not have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) or [ROCm-capable](https://docs.amd.com) system or do not require CUDA/ROCm (i.e. GPU support), in the above selector, choose OS: Linux, Package: Conda, Language: Python and Compute Platform: CPU.
83+
To install PyTorch via Anaconda, and do not have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) or [ROCm-capable](https://rocm.docs.amd.com/) system or do not require CUDA/ROCm (i.e. GPU support), in the above selector, choose OS: Linux, Package: Conda, Language: Python and Compute Platform: CPU.
8484
Then, run the command that is presented to you.
8585

8686
#### With CUDA
@@ -98,7 +98,7 @@ PyTorch via Anaconda is not supported on ROCm currently. Please use pip instead.
9898

9999
#### No CUDA
100100

101-
To install PyTorch via pip, and do not have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) or [ROCm-capable](https://docs.amd.com) system or do not require CUDA/ROCm (i.e. GPU support), in the above selector, choose OS: Linux, Package: Pip, Language: Python and Compute Platform: CPU.
101+
To install PyTorch via pip, and do not have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) or [ROCm-capable](https://rocm.docs.amd.com/) system or do not require CUDA/ROCm (i.e. GPU support), in the above selector, choose OS: Linux, Package: Pip, Language: Python and Compute Platform: CPU.
102102
Then, run the command that is presented to you.
103103

104104
#### With CUDA
@@ -108,7 +108,7 @@ Then, run the command that is presented to you.
108108

109109
#### With ROCm
110110

111-
To install PyTorch via pip, and do have a [ROCm-capable](https://docs.amd.com) system, in the above selector, choose OS: Linux, Package: Pip, Language: Python and the ROCm version supported.
111+
To install PyTorch via pip, and do have a [ROCm-capable](https://rocm.docs.amd.com/) system, in the above selector, choose OS: Linux, Package: Pip, Language: Python and the ROCm version supported.
112112
Then, run the command that is presented to you.
113113

114114
## Verification
@@ -151,7 +151,7 @@ For the majority of PyTorch users, installing from a pre-built binary via a pack
151151
1. Install [Anaconda](#anaconda) or [Pip](#pip)
152152
2. If you need to build PyTorch with GPU support
153153
a. for NVIDIA GPUs, install [CUDA](https://developer.nvidia.com/cuda-downloads), if your machine has a [CUDA-enabled GPU](https://developer.nvidia.com/cuda-gpus).
154-
b. for AMD GPUs, install [ROCm](https://docs.amd.com), if your machine has a [ROCm-enabled GPU](https://docs.amd.com)
154+
b. for AMD GPUs, install [ROCm](https://rocm.docs.amd.com/), if your machine has a [ROCm-enabled GPU](https://rocm.docs.amd.com/)
155155
3. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source)
156156

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

_get_started/installation/mac.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ conda install pytorch torchvision -c pytorch
6363
```
6464

6565
### pip
66-
{: #mac-anaconda}
66+
{: #mac-pip}
6767

6868
To install PyTorch via pip, use one of the following two commands, depending on your Python version:
6969

_get_started/previous-versions.md

+90
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,96 @@ your convenience.
1717

1818
## Commands for Versions >= 1.0.0
1919

20+
### v2.4.0
21+
22+
#### Conda
23+
24+
##### OSX
25+
26+
```
27+
# conda
28+
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 -c pytorch
29+
```
30+
31+
##### Linux and Windows
32+
33+
```
34+
# CUDA 11.8
35+
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=11.8 -c pytorch -c nvidia
36+
# CUDA 12.1
37+
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.1 -c pytorch -c nvidia
38+
# CUDA 12.4
39+
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.4 -c pytorch -c nvidia
40+
# CPU Only
41+
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 cpuonly -c pytorch
42+
```
43+
44+
#### Wheel
45+
46+
##### OSX
47+
48+
```
49+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0
50+
```
51+
52+
##### Linux and Windows
53+
54+
```
55+
# ROCM 6.1 (Linux only)
56+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/rocm6.1
57+
# CUDA 11.8
58+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
59+
# CUDA 12.1
60+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu121
61+
# CUDA 12.4
62+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu124
63+
# CPU only
64+
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cpu
65+
```
66+
67+
### v2.3.1
68+
69+
#### Conda
70+
71+
##### OSX
72+
73+
```
74+
# conda
75+
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 -c pytorch
76+
```
77+
78+
##### Linux and Windows
79+
80+
```
81+
# CUDA 11.8
82+
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=11.8 -c pytorch -c nvidia
83+
# CUDA 12.1
84+
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=12.1 -c pytorch -c nvidia
85+
# CPU Only
86+
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 cpuonly -c pytorch
87+
```
88+
89+
#### Wheel
90+
91+
##### OSX
92+
93+
```
94+
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1
95+
```
96+
97+
##### Linux and Windows
98+
99+
```
100+
# ROCM 6.0 (Linux only)
101+
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/rocm6.0
102+
# CUDA 11.8
103+
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu118
104+
# CUDA 12.1
105+
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
106+
# CPU only
107+
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cpu
108+
```
109+
20110
### v2.3.0
21111

22112
#### Conda

_includes/footer.html

+24-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@ <h2>Resources</h2>
2424

2525
<footer class="site-footer">
2626
<div class="container footer-container">
27+
28+
<div class="newsletter" id="newsletter">
29+
30+
<p
31+
class="newsletter__title is-style-max-width-800"><strong>Stay in touch</strong> for updates, event info, and the latest news</p>
32+
33+
34+
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
35+
<script>
36+
hbspt.forms.create({
37+
region: "na1",
38+
portalId: "8112310",
39+
formId: "2fb2231c-000b-4ec5-88a0-1ab242549c9e"
40+
});
41+
</script>
42+
43+
44+
<p
45+
class="newsletter__privacy">By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. <a href="https://www.linuxfoundation.org/privacy/">Privacy Policy</a>.</p>
46+
47+
</div>
48+
49+
50+
2751
<div class="lf-grid">
2852
<div class="footer-logo-wrapper">
2953
<a href="{{ site.url }}{{ site.baseurl }}" class="footer-logo">
@@ -44,9 +68,6 @@ <h2>Resources</h2>
4468
<li><a href="{{ site.external_urls.linkedIn }}" target="_blank" title="PyTorch on LinkedIn">
4569
<svg xmlns="http://www.w3.org/2000/svg" viewbox="-10.23 -10.23 531.96 531.96" aria-label="LinkedIn"><rect width="512" height="512" rx="0" fill="currentColor"/><circle fill="#000" cx="142" cy="138" r="37"/><path stroke="#000" stroke-width="66" d="M244 194v198M142 194v198"/><path fill="#000" d="M276 282c0-20 13-40 36-40 24 0 33 18 33 45v105h66V279c0-61-32-89-76-89-34 0-51 19-59 32"/></svg>
4670
</a></li>
47-
<li><a href="{{ site.external_urls.mastodon }}" rel="me" target="_blank" title="PyTorch on Mastodon">
48-
<svg fill="currentColor" aria-label="Mastodon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xml:space="preserve"><path d="M21.327 8.566c0-4.339-2.843-5.61-2.843-5.61-1.433-.658-3.894-.935-6.451-.956h-.063c-2.557.021-5.016.298-6.45.956 0 0-2.843 1.272-2.843 5.61 0 .993-.019 2.181.012 3.441.103 4.243.778 8.425 4.701 9.463 1.809.479 3.362.579 4.612.51 2.268-.126 3.541-.809 3.541-.809l-.075-1.646s-1.621.511-3.441.449c-1.804-.062-3.707-.194-3.999-2.409a4.523 4.523 0 0 1-.04-.621s1.77.433 4.014.536c1.372.063 2.658-.08 3.965-.236 2.506-.299 4.688-1.843 4.962-3.254.434-2.223.398-5.424.398-5.424zm-3.353 5.59h-2.081V9.057c0-1.075-.452-1.62-1.357-1.62-1 0-1.501.647-1.501 1.927v2.791h-2.069V9.364c0-1.28-.501-1.927-1.502-1.927-.905 0-1.357.546-1.357 1.62v5.099H6.026V8.903c0-1.074.273-1.927.823-2.558.566-.631 1.307-.955 2.228-.955 1.065 0 1.872.409 2.405 1.228l.518.869.519-.869c.533-.819 1.34-1.228 2.405-1.228.92 0 1.662.324 2.228.955.549.631.822 1.484.822 2.558v5.253z"/></svg>
49-
</a></li>
5071
</ul>
5172
</div>
5273

_includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="hello-bar">
22
<div class="container">
3-
Join us in Silicon Valley September 18-19 at the 2024 PyTorch Conference. <a target="_blank" href="https://events.linuxfoundation.org/pytorch-conference/">Learn more</a>.
3+
Join us in Silicon Valley September 18-19 at the 2024 PyTorch Conference. <a target="_blank" href="https://events.linuxfoundation.org/pytorch-conference/?utm_source=www&utm_medium=homepage&utm_campaign=Pytorch-Conference-2024&utm_content=hello">Learn more</a>.
44
</div>
55
</div>
66
<div class="container-fluid header-holder {{ page.body-class }}-header">

_includes/main_menu.html

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@
139139
<a class="nav-dropdown-item" href="{{ site.baseurl }}/governing-board">
140140
<span class=dropdown-title>Governing Board</span>
141141
</a>
142+
<a class="nav-dropdown-item" href="{{ site.baseurl }}/contact-us">
143+
<span class=dropdown-title>Contact Us</span>
144+
</a>
142145
</div>
143146
</div>
144147
</li>

_includes/mobile_menu.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,16 @@
116116
<li>
117117
<a href="{{ site.baseurl }}/governing-board">Governing Board</a>
118118
</li>
119+
<li>
120+
<a href="{{ site.baseurl }}/contact-us">Contact Us</a>
121+
</li>
119122
</ul>
120123
<li class="resources-mobile-menu-title">
121124
<a href="{{ site.baseurl }}/join">Become a Member</a>
122125
</li>
123126
<li class="resources-mobile-menu-title">
124127
<a href="{{ site.external_urls.github }}" title="Go to PyTorch GitHub"><div id="topnav-gh-icon"></div></a>
125128
</li>
126-
127129
</ul>
128130
</div>
129131

_mobile/android.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ order: 3
88
published: true
99
---
1010

11+
<div class="note-card">
12+
<h4>Note</h4>
13+
<p>PyTorch Mobile is no longer actively supported. Please check out <a href="/executorch-overview">ExecuTorch</a>, PyTorch’s all-new on-device inference library. You can also review <a href="https://pytorch.org/executorch/stable/demo-apps-android.html">this page</a> to learn more about how to use ExecuTorch to build an Android app.</p>
14+
</div>
15+
1116
# Android
1217

1318
## Quickstart with a HelloWorld Example

_mobile/home.md

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ published: true
99
redirect_from: "/mobile/"
1010
---
1111

12+
<div class="note-card">
13+
<h4>Note</h4>
14+
<p>PyTorch Mobile is no longer actively supported. Please check out <a href="/executorch-overview">ExecuTorch</a>, PyTorch’s all-new on-device inference library. </p>
15+
</div>
16+
1217
# PyTorch Mobile
1318

1419
There is a growing need to execute ML models on edge devices to reduce latency, preserve privacy, and enable new interactive use cases.

_mobile/ios.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ order: 2
88
published: true
99
---
1010

11+
<div class="note-card">
12+
<h4>Note</h4>
13+
<p>PyTorch Mobile is no longer actively supported. Please check out <a href="/executorch-overview">ExecuTorch</a>, PyTorch’s all-new on-device inference library. You can also review <a href="https://pytorch.org/executorch/stable/demo-apps-ios.html">this page</a> to learn more about how to use ExecuTorch to build an iOS app.</p>
14+
</div>
15+
1116
# iOS
1217

1318
To get started with PyTorch on iOS, we recommend exploring the following [HelloWorld](https://github.com/pytorch/ios-demo-app/tree/master/HelloWorld).

0 commit comments

Comments
 (0)