Frequent error I'm getting: "Could not format the output of the model into a dictionary or a Pydantic model" #526
aalyousfi
started this conversation in
Weird model output
Replies: 1 comment 4 replies
-
This may be a problem due to tokenization. Could you run the example with |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm getting this error frequenlty with Outlines:
I specified maximum length for all items in my schema and I set the max generated tokens to something like 2048, so I don't think the context length is the problem. And I've encoutered the error with many models, both transformers and AWQ. And I don't think resources is an issue because I've ~90GB VRAM and ~180GB RAM.
And the most frustrating part is that the error is unpredictable, sometimes it happens, sometimes not. I couldn't determine what causes it to happen But I provide below an example code that just produced the error.
Please help me with this issue as it's the main problem I'm facing with Outlines and it's preventing me from having a robust system.
Here is the full error trace:
And here is an example code that produced this error:
Beta Was this translation helpful? Give feedback.
All reactions