rust-llama.cpp icon indicating copy to clipboard operation
rust-llama.cpp copied to clipboard

Support for GBNF Grammars

Open benbot opened this issue 2 years ago • 2 comments

Llama.cpp has had support for BNF style grammars for a while, but I don't see how I can use them with these bindings.

Is there a way?

If not, is there a good starting place for hooking them up? I could take a whack at trying to get it set up, but I don't know a lot about cpp <-> rust bindings

benbot avatar Jan 05 '24 15:01 benbot

We also need this, and I have tried to add the support for it, but it is not working as expected, so maybe I am not calling it when it should be called, so probably we need someone who knows this integration better

Szetty avatar Jan 22 '24 15:01 Szetty

I would also be interested in this. Or similar way to restrict the output to a specific format using the rust bindings.

anttikallonentuni avatar May 10 '24 12:05 anttikallonentuni