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

Make assistant tokenization error message more specific #4

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

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Apr 21, 2024

Most tokenizer exception arguably come from the message being empty. Currently this gives the following error message:

'Invalid assistant message: '

which looks a bit incomplete. I think it'd be better to throw:

'Empty assistant message.'

@patrickvonplaten patrickvonplaten changed the title Update sentencepiece.py Make assistant tokenization error message more specific Apr 21, 2024
@patrickvonplaten patrickvonplaten requested a review from Bam4d April 21, 2024 12:17
@patrickvonplaten patrickvonplaten requested review from jean-malo and removed request for jean-malo August 4, 2024 17:04
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.

2 participants