MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_sampler_init_grammar_lazy

Function llama_sampler_init_grammar_lazy

smallthinker/src/llama-sampling.cpp:1579–1588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1577}
1578
1579struct llama_sampler * llama_sampler_init_grammar_lazy(
1580 const struct llama_vocab * vocab,
1581 const char * grammar_str,
1582 const char * grammar_root,
1583 const char ** trigger_words,
1584 size_t num_trigger_words,
1585 const llama_token * trigger_tokens,
1586 size_t num_trigger_tokens) {
1587 return llama_sampler_init_grammar_impl(vocab, grammar_str, grammar_root, /* lazy= */ true, trigger_words, num_trigger_words, trigger_tokens, num_trigger_tokens, nullptr, 0);
1588}
1589
1590struct llama_sampler * llama_sampler_init_grammar_lazy_patterns(
1591 const struct llama_vocab * vocab,

Callers 1

llama.hFile · 0.85

Calls 1

Tested by

no test coverage detected