-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement align_module * add docs * move to modeling utils, integrate into existing source code * update source, expose through utils * Suggested docstring Co-authored-by: Zach Mueller <[email protected]> * Rewrite for readability, add try finally Co-authored-by: Zach Mueller <[email protected]> * Use try-finally when aligning with hook Co-authored-by: Zach Mueller <[email protected]> * apply style * improve get_state_dict_from_offload readability * Update docstring Co-authored-by: Benjamin Bossan <[email protected]> * rename to align_module_device, update docstring --------- Co-authored-by: Zach Mueller <[email protected]> Co-authored-by: Benjamin Bossan <[email protected]>
- Loading branch information
1 parent
a4a44ac
commit bf4572b
Showing
4 changed files
with
105 additions
and
32 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
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