Skip to content

Commit 60745ac

Browse files
author
ochafik
committed
grammars: remove early exit --> ggml-org#7370
1 parent 939e143 commit 60745ac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llama.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13043,10 +13043,6 @@ static std::vector<llama_grammar_candidate> llama_grammar_reject_candidates_for_
1304313043
}
1304413044
}
1304513045

13046-
if (next_candidates.empty()) {
13047-
return rejects;
13048-
}
13049-
1305013046
const auto * stack_pos_after = llama_grammar_match_char(stack_pos, 0).second;
1305113047

1305213048
// update top of stack to next element, if any

0 commit comments

Comments
 (0)