grammars: remove todo
This commit is contained in:
parent
a4556f0f2d
commit
fbe6bc5c99
1 changed files with 0 additions and 1 deletions
|
@ -288,7 +288,6 @@ static llama_token_data_array llama_sampling_prepare_impl(
|
|||
if (ctx_sampling->grammar != NULL && !apply_grammar) {
|
||||
GGML_ASSERT(original_logits != NULL);
|
||||
// Only make a copy of the original logits if we are not applying grammar checks, not sure if I actually have to do this.
|
||||
// TODO: if idx >= 0 then use ctx->output_ids.size() as upper bound?
|
||||
*original_logits = {logits, logits + llama_n_vocab(llama_get_model(ctx_main))};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue