forked from mosaicml/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tensor Parallelism v2 (mosaicml#3335)
* Revert "Revert TP integration (mosaicml#3328)" This reverts commit f154ea6. * fix device mesh * fix backcompat * lint * fix * elif * fix test * fix error * lit * filter warnings * add filter * link issue * lint * make version --------- Co-authored-by: Your Name <[email protected]>
- Loading branch information
1 parent
54c2f88
commit c9a51d4
Showing
32 changed files
with
1,220 additions
and
850 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
File renamed without changes.
Oops, something went wrong.