10000 llama : move vocab, grammar and sampling into separate files by ggerganov · Pull Request #8508 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

llama : move vocab, grammar and sampling into separate files #8508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 23, 2024
Prev Previous commit
Next Next commit
llama : deprecate llama_sample_grammar
  • Loading branch information
ggerganov committed Jul 22, 2024
commit e7dffa6bc74c49ba0eaad52848fde8abf9a9d9cd
5 changes: 5 additions & 0 deletions include/llama.h
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,11 @@ extern "C" {
struct llama_context * ctx,
llama_token_data_array * candidates,
const struct llama_grammar * grammar);
LLAMA_API DEPRECATED(bool llama_sample_grammar(
struct llama_context * ctx,
llama_token_data_array * candidates,
const struct llama_grammar * grammar),
"use llama_grammar_sample instead");

/// @details Accepts the sampled token into the grammar
LLAMA_API void llama_grammar_accept_token(
Expand Down
0