-
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
add offsets calculation to MegatronGPTModel.complete method #3117
Conversation
Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
This pull request introduces 1 alert when merging 863ab71 into 663c76a - 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
This pull request introduces 1 alert when merging 060dd9b into 663c76a - view on LGTM.com new alerts:
|
@@ -33,7 +33,7 @@ def main(): | |||
parser = ArgumentParser() | |||
parser.add_argument("--model_file", type=str, default="", required=True, help="Pass path to model's .nemo file") | |||
parser.add_argument( | |||
"--prompt", type=str, default="", required=True, help="Prompt for the model (a text to complete)" | |||
"--path_to_file", type=str, default="", required=True, help="Path to file with prompts (a text to complete)" |
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.
Do we have to remove --prompt
? It's nice to be able to feed in some text from the CLI.
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.
@ericharper Should I create a separate .py
example for evaluation prompts from file?
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.
@dimapihtar let's just have both "--prompt" and "--path_to_file" options and require at least one to be specified. If both are specified, use "--prompt" and ignore "--path_to_file"
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.
There's a binary file that needs to be removed from the PR: examples/nlp/language_modeling/.megatron_gpt_eval.py.swp
This pull request introduces 1 alert when merging a81e484 into 875f544 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging c8d926a into dc9ed88 - view on LGTM.com new alerts:
|
Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
This pull request introduces 1 alert when merging 936e4f9 into dc9ed88 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 3824177 into 1106ff9 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging aadbdd1 into b7a175b - 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 44f46bc into 583aa6a - view on LGTM.com new alerts:
|
) * add offsets calculation to MegatronGPTModel.complete method Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Co-authored-by: Oleksii Kuchaiev <[email protected]> Co-authored-by: Eric Harper <[email protected]>
) * add offsets calculation to MegatronGPTModel.complete method Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Co-authored-by: Oleksii Kuchaiev <[email protected]> Co-authored-by: Eric Harper <[email protected]>
* add offsets calculation to MegatronGPTModel.complete method Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Co-authored-by: Oleksii Kuchaiev <[email protected]> Co-authored-by: Eric Harper <[email protected]>
) * add offsets calculation to MegatronGPTModel.complete method Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> * decrease MegatronGPT model evaluation time Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Co-authored-by: Oleksii Kuchaiev <[email protected]> Co-authored-by: Eric Harper <[email protected]>
Signed-off-by: dimapihtar [email protected]