Add Sharding V1 broadcast and V2 allgather overlap optimize#8499
Merged
Conversation
|
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8499 +/- ##
===========================================
- Coverage 54.25% 53.97% -0.29%
===========================================
Files 617 618 +1
Lines 96368 96825 +457
===========================================
- Hits 52288 52259 -29
- Misses 44080 44566 +486 ☔ View full report in Codecov by Sentry. |
update use_casual_mask env
… into sharding_overlap
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
Performance optimization
PR changes
Others
Description
1、sharding 支持 broadcast overlap forward, allgather overlap forward
2、同时为sharding stage1 overlap优化添加一些约束项
allgather优化只针对stage1 v2
broadcast overlap优化只针对stage1 v1
logging_step必须大于1
使用Use_Casual_mask环境变量避免DToH的sync