Gbnf checker + validator #9825
-
Hi there, Currently I'm using a gbnf file I've generated myself and the only way I currently have to test it is to ask the LLM to mirror what I say and then see if it emits the same content. Fairly flaky at best. I'd like to (a) validate my gbnf by running some command (rather than wait for and try to spot a stderr message on the console) I've been through https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md which isn't entirely clear on some aspects of character escaping (I found the answer in the parser code), Any help or pointers would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is called |
Beta Was this translation helpful? Give feedback.
It is called
llama-gbnf-validator
, and you don't need to build it separately.