-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Assertion error in _cleanup_tokens while using Select #555
Comments
Thanks! This was due to what seems like a bug in the hugging face tokenizers where the tokenizers add an extra space at the beginning of the prompt if you decode then encode then decode. I pushed a hack patch that address this specific issue in guidance for now. |
Ran into this issue on
|
The bug
I get assertion error when am I trying to use
Select
from a list. Interestingly, the error disappears when I change one of the candidates in the list.To Reproduce
I get the following error:
But when I change the
candidates
tocandidates = ["iphone", "nike shoes"]
, the error disappears.System info (please complete the following information):
The text was updated successfully, but these errors were encountered: