Skip to content

How does set Grammar works in AutoGGUFModel? #14576

Answered by DevinTDHa
Modaffinity asked this question in Q&A

You must be logged in to vote

Hi @Modaffinity
You are right: You can specify a BNF-like grammar with setGrammar as a string, which is then passed to the model backend.

Seems like there are type annotation errors with the setters (this does not affect functionality). This will be fixed in the future release. Thanks for asking!

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by DevinTDHa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants