|
239 | 239 | # LLAMA_VOCAB_PRE_TYPE_DEEPSEEK3_LLM = 28,
|
240 | 240 | # LLAMA_VOCAB_PRE_TYPE_GPT4O = 29,
|
241 | 241 | # LLAMA_VOCAB_PRE_TYPE_SUPERBPE = 30,
|
| 242 | +# LLAMA_VOCAB_PRE_TYPE_TRILLION = 31, |
| 243 | +# LLAMA_VOCAB_PRE_TYPE_BAILINGMOE = 32, |
242 | 244 | # };
|
243 | 245 | LLAMA_VOCAB_PRE_TYPE_DEFAULT = 0
|
244 | 246 | LLAMA_VOCAB_PRE_TYPE_LLAMA3 = 1
|
|
271 | 273 | LLAMA_VOCAB_PRE_TYPE_DEEPSEEK3_LLM = 28
|
272 | 274 | LLAMA_VOCAB_PRE_TYPE_GPT4O = 29
|
273 | 275 | LLAMA_VOCAB_PRE_TYPE_SUPERBPE = 30
|
| 276 | +LLAMA_VOCAB_PRE_TYPE_TRILLION = 31 |
| 277 | +LLAMA_VOCAB_PRE_TYPE_BAILINGMOE = 32 |
274 | 278 |
|
275 | 279 |
|
276 | 280 | # // note: these values should be synchronized with ggml_rope
|
@@ -3906,6 +3910,10 @@ def llama_sampler_init_mirostat_v2(
|
3906 | 3910 | ...
|
3907 | 3911 |
|
3908 | 3912 |
|
| 3913 | +# /// @details Intializes a GBNF grammar, see grammars/README.md for details. |
| 3914 | +# /// @param vocab The vocabulary that this grammar will be used with. |
| 3915 | +# /// @param grammar_str The production rules for the grammar, encoded as a string. Returns an empty grammar if empty. Returns NULL if parsing of grammar_str fails. |
| 3916 | +# /// @param grammar_root The name of the start symbol for the grammar. |
3909 | 3917 | # LLAMA_API struct llama_sampler * llama_sampler_init_grammar(
|
3910 | 3918 | # const struct llama_vocab * vocab,
|
3911 | 3919 | # const char * grammar_str,
|
|
0 commit comments