batch : fix uninitialized has_cpl flag (#14733)

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-07-17 09:45:54 +03:00 committed by GitHub
parent 1ba45d4982
commit ad57d3edd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -157,6 +157,8 @@ bool llama_batch_allocr::init(
n_outputs += batch.logits[i] != 0;
}
has_cpl = false;
// determine coupled sequences
// these are pairs of sequences that have at least one token in the input batch that is assigned to both of them
for (int32_t i = 0; i < batch.n_tokens; ++i) {