-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[zerobubble]Support ZeroBubble Pipeline #6034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
flybird11111
merged 42 commits into
hpcaitech:feature/zerobubble
from
duanjunwen:dev/zero_bubble
Sep 10, 2024
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ee9baed
[feat] add zerobubble pp (just a frame now); add POC test for dx_dw; …
duanjunwen c18ef06
[feat] add dw test;
duanjunwen 203033e
[fix] fix weight not close;
duanjunwen 107230d
[update] update text;
duanjunwen fd5526b
Merge branch 'main' into dev/zero_bubble
duanjunwen 1d75045
[feat] add test run_fwd_bwd automatic scheduling;
duanjunwen 5e09c8b
[feat] split communication and calculation; fix pop empty send_bwd_bu…
duanjunwen f1c1a87
[feat] add test for p & p grad;
duanjunwen 1b4bb2b
[feat] add comments for ZBV func;
duanjunwen 283c9ff
[fix] rm useless assign and comments;
duanjunwen 9e0bd1a
[fix] fix ci test; add pytest;
duanjunwen 8b37323
[feat] add run_fwd_bwd_with_microbatch (replace input) & test; add p…
duanjunwen fe20916
[feat] add apply v_schedule graph; p & p.grad assert err exist;
duanjunwen 29383b2
[fix] update
duanjunwen d6e3d7d
[feat] fix ci; add assert;
duanjunwen b5f7b4d
[feat] fix poc format
duanjunwen 582ba0d
[feat] fix func name & ci; add comments;
duanjunwen b1419ef
[fix] fix poc test; add comments in poc;
duanjunwen 4c4b01b
[feat] add optim backward_b_by_grad
duanjunwen 48ba22d
[feat] fix optimizer bwd b & w; support return accum loss & output
duanjunwen 6af81d8
[feat] add fwd_bwd_step, run_fwd_only;
duanjunwen 8eb6eac
[fix] fix optim bwd; add license for v_schedule; remove redundant att…
duanjunwen a7b767b
[fix] fix communication_map;
duanjunwen 6d18d38
[feat] update test; rm comments;
duanjunwen 77fe442
[fix] rm zbv in hybridplugin
duanjunwen 591a13b
[fix] fix optim bwd;
duanjunwen a48afc4
[fix] fix optim bwd;
duanjunwen ab643c9
[fix] rm output.data after send fwd;
duanjunwen 4c1f81c
[fix] fix bwd step if condition; remove useless comments and format i…
duanjunwen b4103f1
[fix] fix detach output & release output;
duanjunwen 20503cd
[fix] rm requir_grad for output;
duanjunwen e6e1a97
[fix] fix requir grad position and detach position and input&output l…
duanjunwen 2f09c37
[feat] add memory assertation;
duanjunwen 4a35834
[fix] fix mem check;
duanjunwen 400e5e5
[fix] mem assertation'
duanjunwen 35a7b63
[fix] fix mem assertation
duanjunwen a5ec3d4
[fix] fix mem; use a new model shape; only assert mem less and equal …
duanjunwen fed8b15
[fix] fix model zoo import;
duanjunwen 7568b34
[fix] fix redundant detach & clone; add buffer assertation in the end;
duanjunwen ce58d8e
[fix] add output_obj_grad assert None at bwd b step; replace input_ob…
duanjunwen 8366a78
[fix] update optim state dict assert (include param group & state); f…
duanjunwen 6c2a120
[fix] add testcase with microbatch 4;
duanjunwen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| from .p2p import PipelineP2PCommunication | ||
| from .schedule import InterleavedSchedule, OneForwardOneBackwardSchedule, PipelineSchedule | ||
| from .schedule import InterleavedSchedule, OneForwardOneBackwardSchedule, PipelineSchedule, ZeroBubbleVPipeScheduler | ||
| from .stage_manager import PipelineStageManager | ||
|
|
||
| __all__ = [ | ||
| "PipelineSchedule", | ||
| "OneForwardOneBackwardSchedule", | ||
| "InterleavedSchedule", | ||
| "ZeroBubbleVPipeScheduler", | ||
| "PipelineP2PCommunication", | ||
| "PipelineStageManager", | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| from .base import PipelineSchedule | ||
| from .interleaved_pp import InterleavedSchedule | ||
| from .one_f_one_b import OneForwardOneBackwardSchedule | ||
| from .zero_bubble_pp import ZeroBubbleVPipeScheduler | ||
|
|
||
| __all__ = [ | ||
| "PipelineSchedule", | ||
| "OneForwardOneBackwardSchedule", | ||
| "InterleavedSchedule", | ||
| "ZeroBubbleVPipeScheduler", | ||
| ] |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.