Skip to content

Commit 1e2b93d

Browse files
committed
Automated tutorials push
1 parent a9739c6 commit 1e2b93d

File tree

203 files changed

+18009
-16649
lines changed

Some content is hidden

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

203 files changed

+18009
-16649
lines changed

_downloads/3195443a0ced3cabc0ad643537bdb5cd/introyt1_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "f93222ca",
37+
"id": "6a684e1b",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "5d9dfe2a",
53+
"id": "87e9ac7b",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/4355e2cef7d17548f1e25f97a62828c4/template_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{
3232
"cell_type": "code",
3333
"execution_count": null,
34-
"id": "2b41f878",
34+
"id": "86475651",
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "markdown",
50-
"id": "0ca8d09a",
50+
"id": "635d0831",
5151
"metadata": {},
5252
"source": [
5353
"\n",

_downloads/57114670a041b4c96ed6eb9fc17a6b3f/transformer_building_blocks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
"""
2+
.. meta::
3+
:description: Learn how to optimize transformer models by replacing nn.Transformer with Nested Tensors and torch.compile() for significant performance gains in PyTorch.
4+
25
Accelerating PyTorch Transformers by replacing ``nn.Transformer`` with Nested Tensors and ``torch.compile()``
36
=============================================================================================================
47
**Author:** `Mikayla Gawarecki <https://github.com/mikaylagawarecki>`_

_downloads/63a0f0fc7b3ffb15d3a5ac8db3d521ee/tensors_deeper_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "66d15d76",
37+
"id": "02fd62c5",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "3402a303",
53+
"id": "44437ff8",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/770632dd3941d2a51b831c52ded57aa2/trainingyt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "6660a7b4",
38+
"id": "e11681ba",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "b1058cad",
54+
"id": "a10d4513",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_downloads/c28f42852d456daf9af72da6c6909556/captumyt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"id": "f0f86bc0",
40+
"id": "eb22ee32",
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "markdown",
56-
"id": "c0c48c20",
56+
"id": "072a548b",
5757
"metadata": {},
5858
"source": [
5959
"\n",

_downloads/c64acc5fdbf3a35d59b5e6c99e984337/nestedtensor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,8 @@ def benchmark(func, *args, **kwargs):
369369
# how implement multi-head attention for transformers in a way that avoids computation on padding.
370370
# For more information, check out the docs for the
371371
# `torch.nested <https://pytorch.org/docs/stable/nested.html>`__ namespace.
372+
#
373+
# See Also
374+
# --------
375+
#
376+
# * `Accelerating PyTorch Transformers by replacing nn.Transformer with Nested Tensors and torch.compile() <https://docs.pytorch.org/tutorials/intermediate/transformer_building_blocks.html`__

_downloads/db9e0933e73063322e250e5d0cec413d/nestedtensor.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,14 @@
669669
"nested tensors and how implement multi-head attention for transformers\n",
670670
"in a way that avoids computation on padding. For more information, check\n",
671671
"out the docs for the\n",
672-
"[torch.nested](https://pytorch.org/docs/stable/nested.html) namespace.\n"
672+
"[torch.nested](https://pytorch.org/docs/stable/nested.html) namespace.\n",
673+
"\n",
674+
"See Also\n",
675+
"========\n",
676+
"\n",
677+
"- [Accelerating PyTorch Transformers by replacing nn.Transformer with\n",
678+
" Nested Tensors and torch.compile()\n",
679+
" \\<https://docs.pytorch.org/tutorials/intermediate/transformer\\_building\\_blocks.html]{.title-ref}\\_\\_\n"
673680
]
674681
}
675682
],

_downloads/e201125c39959609ca168c306995205c/transformer_building_blocks.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"cell_type": "markdown",
1818
"metadata": {},
1919
"source": [
20+
"::: {.meta description=\"Learn how to optimize transformer models by replacing nn.Transformer with Nested Tensors and torch.compile() for significant performance gains in PyTorch.\"}\n",
21+
":::\n",
22+
"\n",
2023
"Accelerating PyTorch Transformers by replacing `nn.Transformer` with Nested Tensors and `torch.compile()`\n",
2124
"=========================================================================================================\n",
2225
"\n",

_downloads/e2e556f6b4693c2cef716dd7f40caaf6/tensorboardyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "fa642d58",
38+
"id": "bbb98c4c",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "4ccddece",
54+
"id": "d51e9f58",
5555
"metadata": {},
5656
"source": [
5757
"\n",

0 commit comments

Comments
 (0)