Skip to content

Commit

Permalink
grammars: remove early exit --> ggerganov#7370
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed May 18, 2024
1 parent 939e143 commit 60745ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13043,10 +13043,6 @@ static std::vector<llama_grammar_candidate> llama_grammar_reject_candidates_for_
}
}

if (next_candidates.empty()) {
return rejects;
}

const auto * stack_pos_after = llama_grammar_match_char(stack_pos, 0).second;

// update top of stack to next element, if any
Expand Down

0 comments on commit 60745ac

Please sign in to comment.