-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "enable loss parallel in SP"
In this PR, loss parallel is enabled by default when sequence parallel is enabled. Below are some empirical results when training for 10 steps, with `sequence_parallel_degree = 4`. debug_model, with loss parallel disabled ``` Average iter time: 0.1862 seconds Peak Memory: Reserved 12.9%, Alloc 9.97%, Active: 10.31% ``` debug_model, with loss parallel enabled ``` Average iter time: 0.1055 seconds Peak Memory: Reserved 3.64%, Alloc 3.18%, Active: 3.25% ``` llama 7B, with loss parallel disabled ``` Average iter time: 6.4379 seconds Peak Memory: Reserved 34.24%, Alloc 23.64%, Active: 25.89% ``` llama 7B, with loss parallel enabled ``` Average iter time: 6.4778 seconds Peak Memory: Reserved 27.11%, Alloc 20.51%, Active: 20.51% ``` [ghstack-poisoned]
- Loading branch information
Showing
5 changed files
with
39 additions
and
20 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
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