speculative : add grammar support

This commit is contained in:
Georgi Gerganov 2023-09-03 15:25:53 +03:00
parent 3103568144
commit 69f2fafebc
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 100 additions and 2 deletions

View file

@ -410,6 +410,8 @@ extern "C" {
LLAMA_API void llama_grammar_free(struct llama_grammar * grammar);
LLAMA_API struct llama_grammar * llama_grammar_copy(const struct llama_grammar * grammar);
//
// Sampling functions
//