-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Include tokens from prompt phase in counter_generation_tokens
#2802
Include tokens from prompt phase in counter_generation_tokens
#2802
Conversation
- Count generation tokens during prompt phase - Add a simple unit test to test the metric
@NikolaBorisov @rib-2 Could you please review my PR? |
Just so I am clear, the need for this comes from the fact that |
correct. |
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.
Yeah, we missed counting those. We can merge this.
@simon-mo This is safe to merge. |
@simon-mo Can we merge this. I reviewed it. It is safe and good |
I noticed that the
counter_generation_tokens
metric was missing tokens generated during the prompt phase, only counting those from the autoregressive generation phase. This PR addresses that by incorporating tokens from both phases into the counter. Also, I've added a simple unit test to verify the counter.