News for hackers. Stuff that matters.
Re:Mistral 7B, the most powerful language model for its size... by btwillard on Thursday September 28, 2023 @03:18PM (#37694342)
Our project Outlines provides JSON output in a near optimal way that also works for all types of pre-trained transformer-based LLMs: https://github.com/outlines-dev/outlines

Our approach also extends to EBNF grammars and LALR parsing. There's an example of that in the repository. It builds off of the Lark library, so you can use existing grammar specifications instead of starting from scratch.

Re:Mistral 7B, the most powerful language model for its size... by nacs on Thursday September 28, 2023 @07:21PM (#37697259)
Outlines looks like an actively maintained alternative to Guidance. Do you have any plans to support llama.cpp?
Re:Mistral 7B, the most powerful language model for its size... by btwillard on Wednesday October 04, 2023 @01:02AM (#37761020)
We've considered it, but I haven't started any work on it. Feel free to create an issue to track the status, if only to find out who else might be interested and/or working on it.