-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Romeyn/sampler #10525
Romeyn/sampler #10525
Conversation
|
||
Returns: | ||
MegatronStep: The potentially modified MegatronStep object. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
|
||
Args: | ||
step (MegatronStep): The MegatronStep object representing the current step. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
step (MegatronStep): The MegatronStep object representing the current step. | ||
batch (DataT): The current microbatch of data being processed. | ||
forward_callback (MegatronLossReduction): The callback for loss reduction. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
batch (DataT): The microbatch of data that was processed. | ||
forward_callback (MegatronLossReduction): The callback for loss reduction. | ||
output (Any): The output from the forward pass for this microbatch. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
Args: | ||
step (MegatronStep): The MegatronStep object representing the current step. | ||
microbatch_outputs (List[Any]): A list of outputs from all processed microbatches. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
Args: | ||
step (MegatronStep): The MegatronStep object representing the current step. | ||
microbatch_outputs (List[Any]): A list of outputs from all processed microbatches. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
microbatch_outputs (List[Any]): A list of outputs from all processed microbatches. | ||
loss_reduction (MegatronLossReduction): The object used for loss reduction. | ||
reduced (Union[torch.Tensor, Dict[str, torch.Tensor]]): The final reduced output. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
microbatch_outputs (List[Any]): A list of outputs from all processed microbatches. | ||
reduced (Optional[Union[torch.Tensor, Dict[str, torch.Tensor]]]): The final reduced | ||
output, if available. This may be None for certain configurations or pipeline stages. | ||
""" |
Check notice
Code scanning / CodeQL
Statement has no effect Note
024c52e
to
109d1ef
Compare
107e0bb
to
0b31b9c
Compare
390f454
to
a0776e2
Compare
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Signed-off-by: Alexandros Koumparoulis <[email protected]>
d0b7732
to
85c3b1c
Compare
Signed-off-by: akoumpa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
* Introducing MegatronStep to make things more extensible Signed-off-by: Alexandros Koumparoulis <[email protected]> * Improve megatron callbacks Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Some small fixes Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * remove debg code Signed-off-by: Alexandros Koumparoulis <[email protected]> * add forward_only to forward backward func Signed-off-by: Alexandros Koumparoulis <[email protected]> * add global-batch-sampler support to MegatronStep Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> --------- Signed-off-by: Alexandros Koumparoulis <[email protected]> Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: akoumpa <[email protected]> Co-authored-by: Marc Romeijn <[email protected]> Co-authored-by: akoumpa <[email protected]> Co-authored-by: sichu <[email protected]>
* Introducing MegatronStep to make things more extensible Signed-off-by: Alexandros Koumparoulis <[email protected]> * Improve megatron callbacks Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Some small fixes Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * remove debg code Signed-off-by: Alexandros Koumparoulis <[email protected]> * add forward_only to forward backward func Signed-off-by: Alexandros Koumparoulis <[email protected]> * add global-batch-sampler support to MegatronStep Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> --------- Signed-off-by: Alexandros Koumparoulis <[email protected]> Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: akoumpa <[email protected]> Co-authored-by: Marc Romeijn <[email protected]> Co-authored-by: akoumpa <[email protected]> Co-authored-by: sichu <[email protected]>
* Introducing MegatronStep to make things more extensible Signed-off-by: Alexandros Koumparoulis <[email protected]> * Improve megatron callbacks Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Some small fixes Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * remove debg code Signed-off-by: Alexandros Koumparoulis <[email protected]> * add forward_only to forward backward func Signed-off-by: Alexandros Koumparoulis <[email protected]> * add global-batch-sampler support to MegatronStep Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> --------- Signed-off-by: Alexandros Koumparoulis <[email protected]> Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: akoumpa <[email protected]> Co-authored-by: Marc Romeijn <[email protected]> Co-authored-by: akoumpa <[email protected]> Co-authored-by: sichu <[email protected]>
* Introducing MegatronStep to make things more extensible Signed-off-by: Alexandros Koumparoulis <[email protected]> * Improve megatron callbacks Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Some small fixes Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * remove debg code Signed-off-by: Alexandros Koumparoulis <[email protected]> * add forward_only to forward backward func Signed-off-by: Alexandros Koumparoulis <[email protected]> * add global-batch-sampler support to MegatronStep Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> --------- Signed-off-by: Alexandros Koumparoulis <[email protected]> Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: akoumpa <[email protected]> Co-authored-by: Marc Romeijn <[email protected]> Co-authored-by: akoumpa <[email protected]> Co-authored-by: sichu <[email protected]> Signed-off-by: Lifu Zhang <[email protected]>
* Introducing MegatronStep to make things more extensible Signed-off-by: Alexandros Koumparoulis <[email protected]> * Improve megatron callbacks Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Some small fixes Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * remove debg code Signed-off-by: Alexandros Koumparoulis <[email protected]> * add forward_only to forward backward func Signed-off-by: Alexandros Koumparoulis <[email protected]> * add global-batch-sampler support to MegatronStep Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> --------- Signed-off-by: Alexandros Koumparoulis <[email protected]> Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: akoumpa <[email protected]> Co-authored-by: Marc Romeijn <[email protected]> Co-authored-by: akoumpa <[email protected]> Co-authored-by: sichu <[email protected]> Signed-off-by: Lifu Zhang <[email protected]>
* Introducing MegatronStep to make things more extensible Signed-off-by: Alexandros Koumparoulis <[email protected]> * Improve megatron callbacks Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Some small fixes Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> Signed-off-by: Alexandros Koumparoulis <[email protected]> * remove debg code Signed-off-by: Alexandros Koumparoulis <[email protected]> * add forward_only to forward backward func Signed-off-by: Alexandros Koumparoulis <[email protected]> * add global-batch-sampler support to MegatronStep Signed-off-by: Alexandros Koumparoulis <[email protected]> * Apply isort and black reformatting Signed-off-by: akoumpa <[email protected]> --------- Signed-off-by: Alexandros Koumparoulis <[email protected]> Signed-off-by: Marc Romeijn <[email protected]> Signed-off-by: akoumpa <[email protected]> Co-authored-by: Marc Romeijn <[email protected]> Co-authored-by: akoumpa <[email protected]> Co-authored-by: sichu <[email protected]> Signed-off-by: Hainan Xu <[email protected]>
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use this
GitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information