-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Neural Machine Translation with Megatron Transformer Models (Tensor Parallel and Tarred Datasets Only) #3861
Conversation
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 1 alert when merging 9d9bd77 into c4ec081 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 1 alert when merging 8968a5b into c4ec081 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5816680 into c4ec081 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 1 alert when merging fdac001 into c4ec081 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 1 alert when merging 2dcb808 into c4ec081 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 4 alerts when merging af80f37 into c4ec081 - view on LGTM.com new alerts:
|
This pull request introduces 4 alerts when merging 6becb3c into c4ec081 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 4 alerts when merging 9e08de6 into c4ec081 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 4 alerts when merging 21f32d1 into c4ec081 - view on LGTM.com new alerts:
|
This pull request introduces 4 alerts when merging 3960a0f into 41c4ab7 - view on LGTM.com new alerts:
|
This pull request introduces 4 alerts when merging 7f805fc into 41c4ab7 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[email protected]>
Signed-off-by: MaximumEntropy <[email protected]>
This pull request introduces 2 alerts when merging 0dd0012 into 41c4ab7 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging b632b83 into 41c4ab7 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 770a7a8 into 45f8f32 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 7b0d8a5 into 45f8f32 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 0ca7883 into 92dd783 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 2268232 into 77acfee - view on LGTM.com new alerts:
|
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. Thanks!
This pull request introduces 1 alert when merging 86d7099 into 70963a2 - view on LGTM.com new alerts:
|
Signed-off-by: MaximumEntropy <[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! see minor comments
@@ -296,7 +296,12 @@ def main(): | |||
src_lines = [] | |||
for line in src_f: | |||
src_lines.append(line.strip().split('\t')) | |||
assert len(all_reverse_scores) == len(all_lm_scores) == len(all_forward_scores) == len(src_lines) | |||
assert len(all_reverse_scores) == len(all_lm_scores) == len(all_forward_scores) == len(src_lines), ( |
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.
Remove printing out or add meaningful message
This pull request introduces 1 alert when merging ea2e3a5 into 70963a2 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 0e2f636 into 679f14c - view on LGTM.com new alerts:
|
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!
What does this PR do ?
Adds support to train Neural Machine Translation models with Megatron Transformer models that support tensor parallelism.
Collection: NLP
Changelog
MegatronNMT
class that inherits fromMegatronLMEncoderDecoderModel
and overrides appropriate functions and calls classmethods fromMTEncDecModel
MTEncDecModel
to classmethods so they can be called inMegatronNMTModel
.Usage
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