-
Notifications
You must be signed in to change notification settings - Fork 712
Runner logs #15279
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
Runner logs #15279
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,9 +128,13 @@ class ET_EXPERIMENTAL TextTokenGenerator { | |
| if (eos_ids_->find(cur_token) != eos_ids_->end()) { | ||
| printf("\n"); | ||
| ET_LOG(Info, "\nReached to the end of generation"); | ||
| break; | ||
| return pos - start_pos; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you put this in a variable and share it
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh its in the loop. Nvm I guess
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving as-is, because one is inside a while loop and another is not. |
||
| } | ||
| } | ||
| ET_LOG( | ||
| Info, | ||
| "\nFinished generation. Generated %" PRIi32 " tokens.", | ||
| start_pos + max_new_tokens); | ||
| return pos - start_pos; | ||
| } | ||
|
|
||
|
|
||
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.
not your change but weird we have a printf