-
Notifications
You must be signed in to change notification settings - Fork 388
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
Print the number of tokens generated #6771
Print the number of tokens generated #6771
Conversation
This is useful for verifying the correctness of AttentionSink. Differential Revision: [D65784095](https://our.internmc.facebook.com/intern/diff/D65784095/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6771
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 63b070d with merge base 623a9a6 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D65784095 |
@@ -91,10 +91,11 @@ def main() -> None: | |||
else runner.text_completion( | |||
prompt=args.prompt, | |||
temperature=args.temperature, | |||
echo=True, |
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.
out of curiousity, what does echo=True
do?
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.
When it is true, the returned token list will include prompt tokens as well.
This is useful for verifying the correctness of AttentionSink. Differential Revision: [D65784095](https://our.internmc.facebook.com/intern/diff/D65784095/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D65784095 |
1a5180e
into
gh/helunwencser/75/base
Pull Request resolved: #6771 This is useful for verifying the correctness of AttentionSink. ghstack-source-id: 252993225 @exported-using-ghexport Differential Revision: [D65784095](https://our.internmc.facebook.com/intern/diff/D65784095/) Co-authored-by: Lunwen He <[email protected]>
Stack from ghstack (oldest at bottom):
This is useful for verifying the correctness of AttentionSink.
Differential Revision: D65784095