-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
json_func_calls_with_inner_thoughts string broken? #748
Comments
FYI this was with NexusRaven-V2-13B. |
can u give the adjusted .gbnf file i would like to test it |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Describe the bug
Perhaps I am mistaken, but it seems to me that the
string
production rule in json_func_calls_with_inner_thoughts.gbnf is not able to represent strings that contain quote " characters, square bracket characters [] or braces {}.The
string
production rule in json.gbnf is complex because it encodes the true requirements for strings in JSON. The simplerstring
production rule in json_func_calls_with_inner_thoughts.gbnf excludes large classes of legal strings. I think this means that functions such as conversation_search cannot be legal grammar when conversation includes code snippets with braces (e.g. C++ code).Likewise, I think the simplified
ws
production rule is also a problem. Thews
in json.gbnf is a rule that matches white space, but the production rule in json_func_calls_with_inner_thoughts.gbnf actually only matches the empty string.Please correct me if I am wrong.
Please describe your setup
N/A
Screenshots
N/A
Additional context
N/A
If you're not using OpenAI, please provide additional information on your local LLM setup:
Local LLM details
If you are trying to run MemGPT with local LLMs, please provide the following information:
dolphin-2.1-mistral-7b.Q6_K.gguf
)The text was updated successfully, but these errors were encountered: