speculative : add grammar support

This commit is contained in:
Georgi Gerganov
2023-09-03 15:25:53 +03:00
parent 3103568144
commit 69f2fafebc
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
//