Skip to content

Commit

Permalink
decode : fix logits_valid for legacy API (ggerganov#4516)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre authored Dec 18, 2023
1 parent b1306c4 commit 2994f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6184,7 +6184,7 @@ static int llama_decode_internal(
logits_out.resize(n_vocab);
memcpy(logits_out.data(), (float *) ggml_get_data(res) + (n_vocab*(n_tokens - 1)), sizeof(float)*n_vocab);
#ifndef NDEBUG
logits_valid[n_tokens - 1] = true;
logits_valid[0] = true;
#endif
}
}
Expand Down

0 comments on commit 2994f0c

Please sign in to comment.