-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
[Bugfix] Fixes prefix-repetition benchmark script #26828
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
[Bugfix] Fixes prefix-repetition benchmark script #26828
Conversation
Signed-off-by: Kourosh Hakhamaneshi <[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.
Code Review
This pull request addresses a bug in the prefix-repetition benchmark script where the return value of _generate_exact_length_tokens was not being handled correctly. The function returns both tokens and a mismatch count, but the original code failed to unpack this tuple for prefix tokens, leading to incorrect behavior. This change correctly unpacks the tuple for both prefix and suffix tokens and accumulates the mismatch counts. The fix also corrects a typo in a variable name (token_mistmatch to suffix_mismatch), improving code clarity. The changes are correct and effectively resolve the bug.
Signed-off-by: Kourosh Hakhamaneshi <[email protected]> Signed-off-by: bbartels <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]> Signed-off-by: 0xrushi <[email protected]>
Signed-off-by: Kourosh Hakhamaneshi <[email protected]> Signed-off-by: 0xrushi <[email protected]>
_generate_exact_length_tokensreturns both tokens and mismatch number. The benchmark script has not been update to conform to this change.