-
Notifications
You must be signed in to change notification settings - Fork 511
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
JSON generation example failed with "gpt2"
#223
Comments
I got another strange json output with "meta-llama/Llama-2-13b-chat-hf"
It's valid json but did not stick to schema Not sure if caused by the same thing |
@mondaychen I couldn't reproduce this locally. How do you set the seed? As @mondaychen mentionned offline there is currently an issue with @mondaychen Could this be an issue with decoding the token ids? If you put a breakpoint right before the model decodes what do you get? |
Same here:
|
Thanks for the great work.
I tried the example -
Efficient JSON generation following a Pydantic model
inREADME.md
. However, it failed with an error:I also tried it with
model = models.transformers("gpt2-medium")
and it worked. All the seed I used is42
. Any idea?I used
Python 3.11.4
and here is thepip list
:The text was updated successfully, but these errors were encountered: