Skip to content

Commit

Permalink
FSDP tutorial (pytorch#1861)
Browse files Browse the repository at this point in the history
* adding FSDP tutorial

* adding DDP peak memory usage gif

* adding FSDP auto wrap  peak memory usage gif

* adding FSDP peak memory usage gif

* adding FSDP workflow image

* adding FSDP tutorial

* correct github handles

* correct the save model mode and adding comments on availability of it in Nighlties.

* correct the save model mode and adding comments on availability of it in Nighlties.

* adding the image for FSDP thumbnail

* adding FSDP thumbnail

* correct the min parameter and model strucutre on auto _wrap

* addressing comments on FSDP memory, timing and State_dict
  • Loading branch information
HamidShojanazeri authored Mar 17, 2022
1 parent 07483e0 commit fe5674f
Show file tree
Hide file tree
Showing 7 changed files with 430 additions and 0 deletions.
Binary file added _static/img/distributed/DDP_memory.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/distributed/FSDP_autowrap.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/distributed/FSDP_memory.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/distributed/fsdp_workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,13 @@ Welcome to PyTorch Tutorials
:link: advanced/ddp_pipeline.html
:tags: Parallel-and-Distributed-Training

.. customcarditem::
:header: Getting Started with Fully Sharded Data Parallel(FSDP)
:card_description: Learn how to train models with Fully Sharded Data Parallel package.
:image: _static/img/thumbnails/cropped/Getting Started with FSDP.png
:link: intermediate/FSDP_tutorial.html
:tags: Parallel-and-Distributed-Training

.. Mobile
.. customcarditem::
Expand Down
423 changes: 423 additions & 0 deletions intermediate_source/FSDP_tutorial.rst

Large diffs are not rendered by default.

0 comments on commit fe5674f

Please sign in to comment.