-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document FSDP, add tests with act checkpointing
- Loading branch information
Showing
6 changed files
with
208 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
``distributed.fsdp`` | ||
==================== | ||
|
||
.. automodule:: olmo_core.distributed.fsdp | ||
:members: FSDP, FSDPPrecision | ||
:member-order: bysource |
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
utils.rst | ||
io.rst | ||
distributed/checkpoint.rst | ||
distributed/fsdp.rst | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
""" | ||
This is a light-weight rewrite of PyTorch's :class:`~torch.distributed.fsdp.FullyShardedDataParallel` | ||
with a few of improvements, including: | ||
- Well-defined "hands off" handling of buffers. FSDP never shards buffers, they are left as-is. | ||
- Well-defined handling of frozen params. You can mix and match within an FSDP instance as long | ||
as the frozen/non-frozen params are consistent across the process group. | ||
API Reference | ||
------------- | ||
""" | ||
|
||
from .fsdp import FSDP, FSDPDebugConfig, FSDPPrecision | ||
|
||
__all__ = ["FSDP", "FSDPDebugConfig", "FSDPPrecision"] |
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