zero logits vector before writing new data
This commit is contained in:
parent
5284e72aa6
commit
9f8e60f0ee
1 changed files with 2 additions and 0 deletions
|
@ -5617,6 +5617,8 @@ static int llama_decode_internal(
|
||||||
auto & logits_valid = lctx.logits_valid;
|
auto & logits_valid = lctx.logits_valid;
|
||||||
logits_valid.clear();
|
logits_valid.clear();
|
||||||
logits_valid.resize(n_tokens);
|
logits_valid.resize(n_tokens);
|
||||||
|
|
||||||
|
logits_out.clear();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (batch.logits) {
|
if (batch.logits) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue