Skip to content
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] No output when providing a prefix #1358

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zw123han
Copy link

There is a bug if timestamps are enabled (without_timestamps is defaulted to False in DecodingOptions), the model will fail to generate new output. This is because the timestamp_begin token is expected after the start token in the prefix, and it's not being added back as part of the prefix.

image

This short PR will fix the issue by adding the timestamp_begin token back before the prefix and resolve the following issues raised by other users:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant