-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tensor Parallelism Integration (#3269)
* v1 * add test * fix test * v1 * some lint * lint * lint and pytorch pinning * results * tweak warnings * fix lint * lint * filter * add ckpt * checkdown * fix tests * fix * fix test * fix tests * fix tests * paralleli config * fix some arg parsing * rename to parallelism config * lint * fix docs * fix edge case * lint * log * change slicing * fix patching * fix core * lint * clean up v1 * lint * shallow copy * add checks * device mesh * fix type checking * fix bugs * fix tests * rename variables and fix checkpointing * lint * lint * v1 refacotr * lint * tests * add enum * fix test * fix * fix fsdp submesh order * fix tests * change to world size * add docs v1 * fix docs * add tests * v1 of tp test * fix lint * fix arg prop * fix tests * lint * brians comments * pr review * add more gating * lint * fix * fix lint * fix lint * lint * force to run * fix assert * parallelism config * tweak some parallelism issues * remove assert --------- Co-authored-by: Your Name <[email protected]>
- Loading branch information
1 parent
47dbf9f
commit 09f14f9
Showing
32 changed files
with
1,133 additions
and
822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2022 MosaicML Composer authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
"""Distributed training.""" | ||
|
||
from composer.distributed.deepspeed import fix_batch_precision_for_deepspeed, parse_deepspeed_config | ||
from composer.distributed.dist_strategy import ( | ||
DDPSyncStrategy, | ||
ddp_sync_context, | ||
prepare_ddp_module, | ||
prepare_fsdp_module, | ||
prepare_tp_module, | ||
) | ||
from composer.distributed.mosaic_fsdp import set_fsdp_default | ||
|
||
__all__ = [ | ||
'fix_batch_precision_for_deepspeed', | ||
'parse_deepspeed_config', | ||
'DDPSyncStrategy', | ||
'ddp_sync_context', | ||
'prepare_ddp_module', | ||
'prepare_fsdp_module', | ||
'prepare_tp_module', | ||
'set_fsdp_default', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.