[Dev] Changes to support multimodule pipelining#2092
[Dev] Changes to support multimodule pipelining#2092yashaswikarnati wants to merge 17 commits intoNVIDIA:devfrom
Conversation
|
Please add label "expert review" when this PR is ready, or the reviewers won't get notifications. |
|
Hi @yashaswikarnati, please include the main PR link in the desc. |
#2031 (this needs to go in first) @yanring we cant yet create an MR to main as the one before this is not merged to main yet. Could we continue with the review and in the meanwhile we can create an MR to main |
|
Hi, @yashaswikarnati, could you please add some documentation to this PR? |
| return [_ensure_3d_tensor(t) for t in tensor] | ||
| if isinstance(tensor, torch.Tensor) and tensor.ndim == 2: | ||
| return tensor.unsqueeze(-1) | ||
| return tensor |
There was a problem hiding this comment.
Are we sure that the tensor must be 2D or 3D? Should we catch some exception here?
| return input_tensor_grad | ||
|
|
||
|
|
||
| def _backward_step_dict( |
There was a problem hiding this comment.
Can we move the logic of parsing input and output dict outside of the backward_step()?
|
@yashaswikarnati Could you add a brief description of the overall roadmap? I think this is a big feature that contains several MRs, so which one has been merged and which one is WIP? What's the role of the current PR in the whole feature? |
|
Please ensure we have a passing functional test pipeline on GitLab before merging. |
What does this PR do ?
Changes in 1F1B schedule to support multi module pipeline communication and unit tests
Contribution process
flowchart LR A[Pre-checks] --> B[PR Tests] subgraph Code Review/Approval C1[Expert Review] --> C2[Final Review] end B --> C1 C2 --> D[Merge]Pre-checks
Core 0.8)Code review
The following process is enforced via the CODEOWNERS file for changes into
megatron/core. For changes outside ofmegatron/core, it is up to the PR author whether or not to tag the Final Reviewer team.For MRs into `main` branch
(Step 1): Add PR label
Expert Review(Step 2): Collect the expert reviewers reviews
Expert Reviewlabel when your PR is ready for review.Final Review might get declined if these requirements are not fulfilled.
(Step 3): Final Review
Final Reviewlabel(Optional Step 4): Cherry-pick into release branch
If this PR also needs to be merged into
core_r*release branches, after this PR has been merged, selectCherry-pickto open a new PR into the release branch.For MRs into `dev` branch
The proposed review process for `dev` branch is under active discussion.MRs are mergable after one approval by either
eharper@nvidia.comorzijiey@nvidia.com.Merging your PR
Any member of core-adlr and
core-nemowill be able to merge your PR.