Skip to content

Commit dff3cf8

Browse files
authored
Merge branch 'main' into mlazos/log-recipe
2 parents 789aa89 + 9654fcc commit dff3cf8

File tree

97 files changed

+1777
-118
lines changed

Some content is hidden

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

97 files changed

+1777
-118
lines changed

.pyspelling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ matrix:
100100
content: '''''*'
101101
close: '$'
102102
# Ignore reStructuredText block directives
103-
- open: '\.\. (code-block|math)::.*$\n*'
103+
- open: '\.\. (code-block|math|table)::.*$\n*'
104104
content: '(?P<first>(^(?P<indent>[ ]+).*$\n))(?P<other>(^([ \t]+.*|[ \t]*)$\n)*)'
105105
close: '(^(?![ \t]+.*$))'
106106
- open: '\.\. (raw)::.*$\n*'

README.md

Lines changed: 3 additions & 3 deletions

_static/css/custom2.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Survey banner .css */
2+
3+
.survey-banner {
4+
margin-top: 10px;
5+
background-color: #f3f4f7;
6+
padding-top: 15px;
7+
padding-left: 10px;
8+
padding-bottom: 1px;
9+
}
10+
11+
@media screen and (max-width: 600px) {
12+
.survey-banner {
13+
padding-top: 5px;
14+
padding-left: 5px;
15+
padding-bottom: -1px;
16+
font-size: 12px;
17+
margin-bottom: 5px;
18+
}
19+
}

_static/img/hta/comm_across_ranks.png

46.2 KB

_static/img/hta/counts_diff.png

54.1 KB
90.8 KB
26.9 KB

_static/img/hta/duration_diff.png

80.1 KB

_static/img/hta/idle_time.png

42.4 KB

_static/img/hta/idle_time_summary.png

76.2 KB

_static/img/hta/kernel_metrics_df.png

84.3 KB
43.5 KB
35 KB
102 KB

_static/img/hta/overlap_df.png

36.3 KB

_static/img/hta/overlap_plot.png

44.9 KB

_static/img/hta/pie_charts.png

76.4 KB
48.1 KB

_static/img/hta/runtime_outliers.png

31.9 KB

_static/img/hta/short_gpu_kernels.png

38.3 KB
114 KB
46.9 KB
Binary file not shown.

_static/tiatoolbox_tutorial.ipynb

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

_templates/layout.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{% extends "!layout.html" %}
22

3-
43
{%- block content %}
54
{{ super() }}
65
<script>

advanced_source/ddp_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def evaluate(eval_model, data_source):
439439

440440
######################################################################
441441
# Evaluate the model with the test dataset
442-
# -------------------------------------
442+
# ----------------------------------------
443443
#
444444
# Apply the best model to check the result with the test dataset.
445445

advanced_source/dispatcher.rst

Lines changed: 1 addition & 1 deletion

advanced_source/static_quantization_tutorial.rst

Lines changed: 3 additions & 0 deletions

advanced_source/usb_semisup_learn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157

158158
######################################################################
159159
# Use USB to Train ``SoftMatch`` with specific imbalanced algorithm on imbalanced CIFAR-10
160-
# ------------------------------------------------------------------------------------
160+
# ----------------------------------------------------------------------------------------
161161
#
162162
# Now let's say we have imbalanced labeled set and unlabeled set of CIFAR-10,
163163
# and we want to train a ``SoftMatch`` model on it.

beginner_source/basics/autogradqs_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
`Save & Load Model <saveloadrun_tutorial.html>`_
1111
1212
Automatic Differentiation with ``torch.autograd``
13-
=======================================
13+
=================================================
1414
1515
When training neural networks, the most frequently used algorithm is
1616
**back propagation**. In this algorithm, parameters (model weights) are
@@ -170,7 +170,7 @@
170170

171171
######################################################################
172172
# Optional Reading: Tensor Gradients and Jacobian Products
173-
# --------------------------------------
173+
# --------------------------------------------------------
174174
#
175175
# In many cases, we have a scalar loss function, and we need to compute
176176
# the gradient with respect to some parameters. However, there are cases

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
`Save & Load Model <saveloadrun_tutorial.html>`_
1111
1212
Build the Neural Network
13-
===================
13+
========================
1414
1515
Neural networks comprise of layers/modules that perform operations on data.
1616
The `torch.nn <https://pytorch.org/docs/stable/nn.html>`_ namespace provides all the building blocks you need to
@@ -197,5 +197,5 @@ def forward(self, x):
197197

198198
#################################################################
199199
# Further Reading
200-
# --------------
200+
# -----------------
201201
# - `torch.nn API <https://pytorch.org/docs/stable/nn.html>`_

beginner_source/basics/data_tutorial.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
`Save & Load Model <saveloadrun_tutorial.html>`_
1111
1212
Datasets & DataLoaders
13-
===================
13+
======================
1414
1515
"""
1616

@@ -69,7 +69,7 @@
6969

7070
#################################################################
7171
# Iterating and Visualizing the Dataset
72-
# -----------------
72+
# -------------------------------------
7373
#
7474
# We can index ``Datasets`` manually like a list: ``training_data[index]``.
7575
# We use ``matplotlib`` to visualize some samples in our training data.
@@ -144,7 +144,7 @@ def __getitem__(self, idx):
144144

145145

146146
#################################################################
147-
# __init__
147+
# ``__init__``
148148
# ^^^^^^^^^^^^^^^^^^^^
149149
#
150150
# The __init__ function is run once when instantiating the Dataset object. We initialize
@@ -167,7 +167,7 @@ def __init__(self, annotations_file, img_dir, transform=None, target_transform=N
167167

168168

169169
#################################################################
170-
# __len__
170+
# ``__len__``
171171
# ^^^^^^^^^^^^^^^^^^^^
172172
#
173173
# The __len__ function returns the number of samples in our dataset.
@@ -180,7 +180,7 @@ def __len__(self):
180180

181181

182182
#################################################################
183-
# __getitem__
183+
# ``__getitem__``
184184
# ^^^^^^^^^^^^^^^^^^^^
185185
#
186186
# The __getitem__ function loads and returns a sample from the dataset at the given index ``idx``.
@@ -220,7 +220,7 @@ def __getitem__(self, idx):
220220

221221
###########################
222222
# Iterate through the DataLoader
223-
# --------------------------
223+
# -------------------------------
224224
#
225225
# We have loaded that dataset into the ``DataLoader`` and can iterate through the dataset as needed.
226226
# Each iteration below returns a batch of ``train_features`` and ``train_labels`` (containing ``batch_size=64`` features and labels respectively).
@@ -243,5 +243,5 @@ def __getitem__(self, idx):
243243

244244
#################################################################
245245
# Further Reading
246-
# --------------
246+
# ----------------
247247
# - `torch.utils.data API <https://pytorch.org/docs/stable/data.html>`_

beginner_source/basics/intro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
3232
3333
Running the Tutorial Code
34-
------------------
34+
-------------------------
3535
You can run this tutorial in a couple of ways:
3636
3737
- **In the cloud**: This is the easiest way to get started! Each section has a "Run in Microsoft Learn" and "Run in Google Colab" link at the top, which opens an integrated notebook in Microsoft Learn or Google Colab, respectively, with the code in a fully-hosted environment.
3838
- **Locally**: This option requires you to setup PyTorch and TorchVision first on your local machine (`installation instructions <https://pytorch.org/get-started/locally/>`_). Download the notebook or copy the code into your favorite IDE.
3939
4040
4141
How to Use this Guide
42-
-----------------
42+
---------------------
4343
If you're familiar with other deep learning frameworks, check out the `0. Quickstart <quickstart_tutorial.html>`_ first
4444
to quickly familiarize yourself with PyTorch's API.
4545

beginner_source/basics/tensorqs_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
######################################################################
8282
# Attributes of a Tensor
83-
# ~~~~~~~~~~~~~~~~~
83+
# ~~~~~~~~~~~~~~~~~~~~~~
8484
#
8585
# Tensor attributes describe their shape, datatype, and the device on which they are stored.
8686

@@ -97,7 +97,7 @@
9797

9898
######################################################################
9999
# Operations on Tensors
100-
# ~~~~~~~~~~~~~~~~~
100+
# ~~~~~~~~~~~~~~~~~~~~~~~
101101
#
102102
# Over 100 tensor operations, including arithmetic, linear algebra, matrix manipulation (transposing,
103103
# indexing, slicing), sampling and more are

beginner_source/blitz/autograd_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
"""
33
A Gentle Introduction to ``torch.autograd``
4-
---------------------------------
4+
===========================================
55
66
``torch.autograd`` is PyTorch’s automatic differentiation engine that powers
77
neural network training. In this section, you will get a conceptual
@@ -149,7 +149,7 @@
149149

150150
######################################################################
151151
# Optional Reading - Vector Calculus using ``autograd``
152-
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152+
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153153
#
154154
# Mathematically, if you have a vector valued function
155155
# :math:`\vec{y}=f(\vec{x})`, then the gradient of :math:`\vec{y}` with

beginner_source/blitz/cifar10_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def imshow(img):
115115

116116
########################################################################
117117
# 2. Define a Convolutional Neural Network
118-
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118+
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119119
# Copy the neural network from the Neural Networks section before and modify it to
120120
# take 3-channel images (instead of 1-channel images as it was defined).
121121

beginner_source/blitz/tensor_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Tensors
3-
--------------------------------------------
3+
========
44
55
Tensors are a specialized data structure that are very similar to arrays
66
and matrices. In PyTorch, we use tensors to encode the inputs and

beginner_source/ddp_series_fault_tolerance.rst

Lines changed: 0 additions & 4 deletions

beginner_source/ddp_series_multigpu.rst

Lines changed: 0 additions & 1 deletion

beginner_source/dist_overview.rst

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)