Commit dff186c
feat: Ported back new grammar changes from C++ to Python implementation (#1637)
* Backported . (any chat) from llama.cpp
* unfinished {count,optionalmax)
* implemented slice function in std:vector
* fixed mistake done while reading
* ported ggml-org/llama.cpp#7194
* multiple fixes, var copy
* Rewrite LlamaGrammar internals in python style
* bugfix
---------
Co-authored-by: Andrei <abetlen@gmail.com>1 parent 5575fed commit dff186c
2 files changed
+682
-972
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3002 | 3002 | | |
3003 | 3003 | | |
3004 | 3004 | | |
3005 | | - | |
| 3005 | + | |
3006 | 3006 | | |
3007 | 3007 | | |
3008 | 3008 | | |
| |||
0 commit comments