mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-11 21:39:52 +00:00
grammar : fix unnecessarily retained pointer to rules (#6003)
This commit is contained in:
parent
44ca159faf
commit
5cdb371731
@ -10538,7 +10538,7 @@ struct llama_grammar * llama_grammar_init(
|
||||
|
||||
// loop over alternates of start rule to build initial stacks
|
||||
std::vector<std::vector<const llama_grammar_element *>> stacks;
|
||||
pos = rules[start_rule_index];
|
||||
pos = vec_rules[start_rule_index].data();
|
||||
do {
|
||||
std::vector<const llama_grammar_element *> stack;
|
||||
if (!llama_grammar_is_end_of_sequence(pos)) {
|
||||
|
Loading…
Reference in New Issue
Block a user