-
Only local LLM can controll the structure of output? with assistant():
lm += "```python \n"+gen(name="code", stop="```",
temperature=1.0) ConstraintException: The model attempted to generate b'To convert the' after the prompt `b'... <|im_end|><|im_start|>assistant\n'`, but that does
not match the given grammar constraints! Since your model is a remote API that does not support full guidance
integration we cannot force the model to follow the grammar, only flag an error when it fails to match.
You can try to address this by improving the prompt, making your grammar more flexible, rerunning with
a non-zero temperature, or using a model that supports full guidance grammar constraints. |
Beta Was this translation helpful? Give feedback.
Answered by
hrusli
Jan 10, 2024
Replies: 1 comment 1 reply
-
I guess for now it is what it is..
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Hanochhu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess for now it is what it is..
you can try: