- 05 May, 2021 2 commits
-
-
anj-s authored
Co-authored-by:Anjali Sridhar <anj@devfair0443.h2.fair>
-
Min Xu authored
* [fix] add clear_autocast_cache flag - when training in AMP model with weight dtype32, FSDP may need to optionally clear the autocast cache to avoid GPU OOM - this flag is default false, automatically doing it is a future TODO - also added a verbose flag to make print(fsdp_model) a bit shorter - updated the memory test to cover those new code - added a couple of useful functions in parallel.py and testing.py * minor * address comments * format * improve the test Co-authored-by:Min Xu <min.xu@acm.org>
-
- 04 May, 2021 1 commit
-
-
tmarkstrum authored
* dynamic loss scaler * isort * black * flake8 * comments * added the test to ci file, added a line to catch the overflow error, fixed some formatting errors * adding type annotation * added todo for adding more test cases for handling Nan gradients * fix some doc string and comments, add more tods * fix two doc strings
-
- 03 May, 2021 2 commits
-
-
Benjamin Lefaudeux authored
* fix + unit test * changelog update
-
Min Xu authored
* [minor] not creating a temp file on import * address review * Revert "address review" This reverts commit f65eb9bc7f7ea8829b1ac0a369ef9a3e6b56420a. Co-authored-by:Min Xu <min.xu@acm.org>
-
- 30 Apr, 2021 1 commit
-
-
msbaines authored
-
- 29 Apr, 2021 2 commits
-
-
Benjamin Lefaudeux authored
-
Benjamin Lefaudeux authored
* Improving test coverage on SDP * using pytest exception catcher
-
- 28 Apr, 2021 4 commits
-
-
Min Xu authored
* [test] improve BN test coverage - Added sync_bn on/off cases - Added conv and linear bias on/off cases - clarified when sync_bn is off, when is BN wrapping needed with the test * adding a comment Co-authored-by:Min Xu <min.xu@acm.org>
-
Mehdi Mirzazadeh authored
* adding auto graph generation for distributed pipeline * ignore trace.py for my for now, since it needs pytorch 1.8 * fixing tests * simplifying graph api * remove unused debug utilities * use inspect to find argument lists * use sharded linear layer * flkae8 * comment * polishing * polishing
-
msbaines authored
-
Min Xu authored
* [feat] save memory by using bucket buffer only in backward - this fixes bug #627 - added documentation to clarify the buffer's cost and speed/memory tradeoff - added setup/teardown calls so that the buffer is only allocated during the backward pass, saving more memory for forward and stepping so that they can be used for things like activations. - added a unit test that assert the memory is in range. Comparing with DDP: 1. buffer size scales with # of FSDP not model size 2. buffer is only allocated during backward 3. buffer is used for small tensors only to reduce overhead 4. overlapping of compute-reduction is very different * add PR number to changelog * filled in with memory number on 1.9 * addressed comments * update comments * fix for 1.6 * add a todo Co-authored-by:Min Xu <min.xu@acm.org>
-
- 27 Apr, 2021 1 commit
-
-
Benjamin Lefaudeux authored
-
- 26 Apr, 2021 4 commits
-
-
Benjamin Lefaudeux authored
* adding the labels * longer labels, following aten::
-
Benjamin Lefaudeux authored
-
Min Xu authored
* [chore] 0.3.6 release * try redo the caches Co-authored-by:Min Xu <min.xu@acm.org>
-
Min Xu authored
* [fix]: let FSDP handle model with multiple forward pass and checkpoint * try CI again * save * save * fixed case with bn * minor * add the new file * minor * added test of a single case, runtime is about 50s * enable all 8 test cases * cleanup * cleanup * skip flatten case with 1.6 and 1.7 * minor Co-authored-by:Min Xu <min.xu@acm.org>
-
- 23 Apr, 2021 2 commits
-
-
Min Xu authored
- this function is being removed in pytorch - we only need to call it in case we are working with older pytorch Co-authored-by:Min Xu <min.xu@acm.org>
-
shuyingsunshine21 authored
* relax checking root condition * formatting * add unittest * add unittest to ci test list * isort for import of unittest * format black . * move test to list 1 * add skip no cuda * black and isort
-
- 22 Apr, 2021 3 commits
-
-
Min Xu authored
* [fix] mypy and flaky test - CI didn't seem to catch this or maybe I merged incorrectly yesterday - this should fix the mypy error on master - also updated a test that seems to be flaky due to tcp port conflict * another flaky test, hopefully more determinism helps * CR * skip 1.6 * fix * minor Co-authored-by:Min Xu <min.xu@acm.org>
-
Benjamin Lefaudeux authored
-
girifb authored
* Changing FSDP init to by pass pg validation for freshly minted pgs inside of init. * Addressing Min's review comments. * Changing logging in init to debug from info * Changing logging in init to debug from info Co-authored-by:Giri Anantharaman <giriman@devfair0439.h2.fair>
-
- 21 Apr, 2021 2 commits
-
-
girifb authored
* Changing FSDP init to by pass pg validation for freshly minted pgs inside of init. * Addressing Min's review comments. Co-authored-by:Giri Anantharaman <giriman@devfair0439.h2.fair>
-
Benjamin Lefaudeux authored
-
- 20 Apr, 2021 1 commit
-
-
Sam Shleifer authored
-
- 19 Apr, 2021 2 commits
-
-
Min Xu authored
* [chore] 0.3.5 release * address comment Co-authored-by:Min Xu <min.xu@acm.org>
-
Min Xu authored
* FSDP: fixing training with freezing weights - an assert is changed to catch this case correctly - unit test added (based on Quentin's test code) for this case and compare DDP and FSDP fixes: #610 * added test file to list 1 * Use better and simpler code as suggested by Myle * testing both methods of freezing as well Co-authored-by:Min Xu <min.xu@acm.org>
-
- 15 Apr, 2021 3 commits
-
-
Benjamin Lefaudeux authored
-
anj-s authored
[fix] Revert change that removed the option to run OffloadModel with out activation checkpointing. (#608) * revert change made * add tests and revert sync shard changes * add tests * remove file checked in by error * inine var * fix lint errors * add checkpoint activation * fix mypy * use a bigger model * modify tests for now * resolve conflicts Co-authored-by:Anjali Sridhar <anj@devfair0443.h2.fair>
-
anj-s authored
* modify doc string * add offload docs * add tutorial * remove print * remove print statement * modify import * modify constants * modify README and add Offload symbol * fix lint * smaller mods * lint errors * Update README.md added the references at the bottom of the readme * address comments * doc changes * add blank line Co-authored-by:
Anjali Sridhar <anj@devfair0443.h2.fair> Co-authored-by:
Vittorio Caggiano <caggiano@gmail.com>
-
- 14 Apr, 2021 1 commit
-
-
Myle Ott authored
-
- 13 Apr, 2021 4 commits
-
-
Benjamin Lefaudeux authored
-
Sam Shleifer authored
-
Mehdi Mirzazadeh authored
replacing multip-process pipe implementation with more flexible one Initial implementation of proposal pytorch/pytorch#55256
-
Benjamin Lefaudeux authored
* Adding a unit test which checks for multiple FW passes on the same block * Adding an embedding table, but still no problem to show for it
-
- 09 Apr, 2021 1 commit
-
-
msbaines authored
-
- 08 Apr, 2021 1 commit
-
-
Sam Shleifer authored
-
- 07 Apr, 2021 3 commits
-
-
Benjamin Lefaudeux authored
* Properly handle .train() and .eval() modes * showing that the unit test works, now fixed * code review
-
anj-s authored
* debugging * debugging activation issue * fix activation loading * remove changes used for testing * remove comment
-
Myle Ott authored
-