-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't save fp8 weight tensors if
is_first_microbatch
is None (#244)
* extend fp8 weight placeholders logic for Linear, LNLinear, LNMLP Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/base.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/base.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/base.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/base.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/base.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/layernorm_linear.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/layernorm_mlp.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update transformer_engine/pytorch/module/linear.py Co-authored-by: Kirthi Shankar Sivamani <[email protected]> Signed-off-by: Sudhakar Singh <[email protected]> * Update linear.py Signed-off-by: Sudhakar Singh <[email protected]> * Update layernorm_linear.py Signed-off-by: Sudhakar Singh <[email protected]> * Update layernorm_mlp.py Signed-off-by: Sudhakar Singh <[email protected]> * lint Signed-off-by: Kirthi Shankar Sivamani <[email protected]> --------- Signed-off-by: Sudhakar Singh <[email protected]> Signed-off-by: Kirthi Shankar Sivamani <[email protected]> Co-authored-by: Kirthi Shankar Sivamani <[email protected]>
- Loading branch information
1 parent
5495883
commit 80825fd
Showing
4 changed files
with
149 additions
and
12 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