Skip to content

Commit f7f365b

Browse files
authored
Merge branch 'main' into 3186-gradient-tutorial
2 parents b8275ab + cccce6b commit f7f365b

File tree

2 files changed

+62
-5
lines changed

2 files changed

+62
-5
lines changed

docathon-leaderboard.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
# 🎉 PyTorch Docathon Leaderboard 2025 🎉
2+
3+
This is the list of the docathon contributors that have participated and contributed to the PyTorch H1 2025 docathon. A big shout out to everyone who have participated!
4+
We have awarded points for each merged PR as follows:
5+
6+
* easy - 2 points
7+
* medium - 5 points
8+
* advanced - 10 points
9+
10+
We have granted half points (1, 2, and 5 respectively) for all additional PRs merged against the same issue.
11+
In some cases, we have awarded credit for the PRs that were not merged or issues that have been closed without a merged PR.
12+
13+
| Rank | Author | Points | PRs |
14+
|:---:|:------------|------:|:----|
15+
| 🥇 | [j-silv](https://github.com/j-silv) | 31 | [#155753](https://github.com/pytorch/pytorch/pull/155753), [#155659](https://github.com/pytorch/pytorch/pull/155659), [#155567](https://github.com/pytorch/pytorch/pull/155567), [#155540](https://github.com/pytorch/pytorch/pull/155540), [#155528](https://github.com/pytorch/pytorch/pull/155528), [#155198](https://github.com/pytorch/pytorch/pull/155198), [#155093](https://github.com/pytorch/pytorch/pull/155093), [#3389](https://github.com/pytorch/tutorials/pull/3389) |
16+
| 🥇 | [windsonsea](https://github.com/windsonsea) | 19 | [#155789](https://github.com/pytorch/pytorch/pull/155789), [#155520](https://github.com/pytorch/pytorch/pull/155520), [#156039](https://github.com/pytorch/pytorch/pull/156039), [#156009](https://github.com/pytorch/pytorch/pull/156009), [#155653](https://github.com/pytorch/pytorch/pull/155653) |
17+
| 🥇 | [kiszk](https://github.com/kiszk) | 16 | [#155762](https://github.com/pytorch/pytorch/pull/155762), [#155514](https://github.com/pytorch/pytorch/pull/155514), [#155351](https://github.com/pytorch/pytorch/pull/155351), [#155348](https://github.com/pytorch/pytorch/pull/155348), [#155347](https://github.com/pytorch/pytorch/pull/155347) |
18+
| 🥈 | [Rachel0619](https://github.com/Rachel0619) | 14 | [#155764](https://github.com/pytorch/pytorch/pull/155764), [#155482](https://github.com/pytorch/pytorch/pull/155482), [#3385](https://github.com/pytorch/tutorials/pull/3385), [#3381](https://github.com/pytorch/tutorials/pull/3381) |
19+
| 🥈 | [jafraustro](https://github.com/jafraustro) | 14 | [#155523](https://github.com/pytorch/pytorch/pull/155523), [#155369](https://github.com/pytorch/pytorch/pull/155369), [#133563](https://github.com/pytorch/pytorch/issues/133563), [#129446](https://github.com/pytorch/pytorch/issues/129446) |
20+
| 🥈 | [Dhia-naouali](https://github.com/Dhia-naouali) | 12 | [#155911](https://github.com/pytorch/pytorch/pull/155911), [#155840](https://github.com/pytorch/pytorch/pull/155840), [#155505](https://github.com/pytorch/pytorch/pull/155505) |
21+
| 🥈 | [loganthomas](https://github.com/loganthomas) | 12 | [#155702](https://github.com/pytorch/pytorch/pull/155702), [#155088](https://github.com/pytorch/pytorch/pull/155088), [#155649](https://github.com/pytorch/pytorch/pull/155649) |
22+
| 🥈 | [nirajkamal](https://github.com/nirajkamal) | 12 | [#155430](https://github.com/pytorch/pytorch/pull/155430), [#155228](https://github.com/pytorch/pytorch/pull/155228), [#3376](https://github.com/pytorch/tutorials/pull/3376) |
23+
| 🥉 | [Juliandlb](https://github.com/Juliandlb) | 10 | [#155987](https://github.com/pytorch/pytorch/pull/155987), [#155618](https://github.com/pytorch/pytorch/pull/155618) |
24+
| 🥉 | [ggsmith842](https://github.com/ggsmith842) | 7 | [#155767](https://github.com/pytorch/pytorch/pull/155767), [#155297](https://github.com/pytorch/pytorch/pull/155297) |
25+
| 🥉 | [ParagEkbote](https://github.com/ParagEkbote) | 7 | [#155683](https://github.com/pytorch/pytorch/pull/155683), [#155341](https://github.com/pytorch/pytorch/pull/155341) |
26+
|| [GdoongMathew](https://github.com/GdoongMathew) | 5 | [#155813](https://github.com/pytorch/pytorch/pull/155813) |
27+
|| [eromomon](https://github.com/eromomon) | 5 | [#155696](https://github.com/pytorch/pytorch/pull/155696) |
28+
|| [dggaytan](https://github.com/dggaytan) | 5 | [#155377](https://github.com/pytorch/pytorch/pull/155377) |
29+
|| [spzala](https://github.com/spzala) | 5 | [#155335](https://github.com/pytorch/pytorch/pull/155335) |
30+
|| [framoncg](https://github.com/framoncg) | 5 | [#155298](https://github.com/pytorch/pytorch/pull/155298) |
31+
|| [abhinav-TB](https://github.com/abhinav-TB) | 5 | [#155252](https://github.com/pytorch/pytorch/pull/155252) |
32+
|| [aagalleg](https://github.com/aagalleg) | 5 | [#155137](https://github.com/pytorch/pytorch/pull/155137) |
33+
|| [kiersten-stokes](https://github.com/kiersten-stokes) | 5 | [#155067](https://github.com/pytorch/pytorch/pull/155067) |
34+
|| [krishnakalyan3](https://github.com/krishnakalyan3) | 5 | [#3387](https://github.com/pytorch/tutorials/pull/3387) |
35+
|| [splion-360](https://github.com/splion-360) | 5 | [#3384](https://github.com/pytorch/tutorials/pull/3384) |
36+
|| [harshaljanjani](https://github.com/harshaljanjani) | 5 | [#3377](https://github.com/pytorch/tutorials/pull/3377) |
37+
|| [b-koopman](https://github.com/b-koopman) | 4 | [#155100](https://github.com/pytorch/pytorch/pull/155100), [#155889](https://github.com/pytorch/pytorch/pull/155889) |
38+
|| [thatgeeman](https://github.com/thatgeeman) | 4 | [#155404](https://github.com/pytorch/pytorch/pull/155404), [#156094](https://github.com/pytorch/pytorch/pull/156094) |
39+
|| [frost-intel](https://github.com/frost-intel) | 2 | [#3393](https://github.com/pytorch/tutorials/pull/3393) |
40+
|| [ANotFox](https://github.com/ANotFox) | 2 | [#155148](https://github.com/pytorch/pytorch/pull/155148) |
41+
|| [QasimKhan5x](https://github.com/QasimKhan5x) | 2 | [#155074](https://github.com/pytorch/pytorch/pull/155074) |
42+
|| [Ashish-Soni08](https://github.com/Ashish-Soni08) | 2 | [#3379](https://github.com/pytorch/tutorials/pull/3379) |
43+
|| [FORTFANOP](https://github.com/FORTFANOP) | 2 | [#3378](https://github.com/pytorch/tutorials/pull/3378) |
44+
|| [newtdms ](https://github.com/newtdms ) | 2 | [#155497](https://github.com/pytorch/pytorch/pull/155497) |
45+
|| [srini047](https://github.com/srini047) | 2 | [#155554](https://github.com/pytorch/pytorch/pull/155554) |
46+
47+
148
# 🎉 Docathon H1 2024 Leaderboard 🎉
249

350
This is the list of the docathon contributors that have participated and contributed to the PyTorch H1 2024 docathon.

recipes_source/recipes/profiler_recipe.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,20 @@
163163
# Note the occurrence of ``aten::convolution`` twice with different input shapes.
164164

165165
######################################################################
166-
# Profiler can also be used to analyze performance of models executed on GPUs and XPUs:
166+
# Profiler can also be used to analyze performance of models executed on GPUs:
167167
# Users could switch between cpu, cuda and xpu
168+
activities = [ProfilerActivity.CPU]
168169
if torch.cuda.is_available():
169170
device = 'cuda'
171+
activities += [ProfilerActivity.CUDA]
170172
elif torch.xpu.is_available():
171173
device = 'xpu'
174+
activities += [ProfilerActivity.XPU]
172175
else:
173176
print('Neither CUDA nor XPU devices are available to demonstrate profiling on acceleration devices')
174177
import sys
175178
sys.exit(0)
176179

177-
activities = [ProfilerActivity.CPU, ProfilerActivity.CUDA, ProfilerActivity.XPU]
178180
sort_by_keyword = device + "_time_total"
179181

180182
model = models.resnet18().to(device)
@@ -308,9 +310,17 @@
308310
# Profiling results can be outputted as a ``.json`` trace file:
309311
# Tracing CUDA or XPU kernels
310312
# Users could switch between cpu, cuda and xpu
311-
device = 'cuda'
312-
313-
activities = [ProfilerActivity.CPU, ProfilerActivity.CUDA, ProfilerActivity.XPU]
313+
activities = [ProfilerActivity.CPU]
314+
if torch.cuda.is_available():
315+
device = 'cuda'
316+
activities += [ProfilerActivity.CUDA]
317+
elif torch.xpu.is_available():
318+
device = 'xpu'
319+
activities += [ProfilerActivity.XPU]
320+
else:
321+
print('Neither CUDA nor XPU devices are available to demonstrate profiling on acceleration devices')
322+
import sys
323+
sys.exit(0)
314324

315325
model = models.resnet18().to(device)
316326
inputs = torch.randn(5, 3, 224, 224).to(device)

0 commit comments

Comments
 (0)