by parthsareen · 1y ago · 0 comments
Hopefully with those changes we might also enable general structure generation not only limited to JSON.
The current implementation uses llama.cpp GBNF grammars. The more recent research (Outlines, XGrammar) points to potentially speeding up the sampling process through FSTs and GPU parallelism.
[0] https://github.com/guidance-ai/llguidance [1] https://github.com/guidance-ai/llguidance/blob/main/parser/s... [2] https://github.com/ggerganov/llama.cpp/pull/10224 [3] https://github.com/guidance-ai/llgtrt
I really want to see support for additional grammar engines merged into llama.cpp, and I'm a big fan of the work you did on this.