mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
update pytorch 2 tutorial + extras image
This commit is contained in:
1 parent
4db7d3cc5c
commit
e84234201b
2 files changed
+8
-3
No files matched your search
@@ -122,7 +122,9 @@
|
||||
"\n",
|
||||
"Or 38% on timm, 76% on TorchBench and 52% on Hugging Face Transformers.\n",
|
||||
"\n",
|
||||
"TK - image of speedups"
|
||||
"<img src=\"https://raw.githubusercontent.com/mrdbourke/pytorch-deep-learning/main/images/extras-pytorch-2-speedups.png\" alt=\"speedups for PyTorch 2.0 across various model resources\" width=650/>\n",
|
||||
"\n",
|
||||
"*PyTorch 2.0 speedups across various models from different locations. **Source:** [PyTorch 2.0 announcement post](https://pytorch.org/get-started/pytorch-2.0/).*"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -167,7 +169,7 @@
|
||||
"\n",
|
||||
"And feed the data hungry GPUs with as much data as possible.\n",
|
||||
"\n",
|
||||
"TK - image of fusion\n",
|
||||
"<img src=\"https://raw.githubusercontent.com/mrdbourke/pytorch-deep-learning/main/images/extras-memory-bandwidth-output-small.gif\" alt=\"example of memory bandwidth costs transferring data on and off the GPU\" width=950/>\n",
|
||||
"\n",
|
||||
"So instead of performing an operation on a piece of data and then saving the result to memory (increased bandwidth costs), you chain together as many operations as possible via fusion.\n",
|
||||
"\n",
|
||||
@@ -209,7 +211,9 @@
|
||||
"\n",
|
||||
"It does this quickly but there’s still non-zero overhead.\n",
|
||||
"\n",
|
||||
"TK - image of graph capture\n",
|
||||
"<img src=\"https://raw.githubusercontent.com/mrdbourke/pytorch-deep-learning/main/images/extras-graph-capture.gif\" alt=\"Graph capture\" width=\"950\"/>\n",
|
||||
"\n",
|
||||
"*Example of graph capture, mapping out the steps in a neural network and then capturing every operation that needs to happen ahead of time.*\n",
|
||||
"\n",
|
||||
"Computing **with graph capture** is like driving through your own neighbourhood.\n",
|
||||
"\n",
|
||||
@@ -239,6 +243,7 @@
|
||||
"\n",
|
||||
"One of the main ones being with exporting models.\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"TK - image of where it doesn't work\n",
|
||||
"\n",
|
||||
"However, these will likely be fixed in future releases.\n",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 388 KiB |
Reference in new issue
Block a user