mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-07-16 07:38:28 +00:00
batched-bench : fix oob write
ggml-ci
This commit is contained in:
@ -130,7 +130,10 @@ int main(int argc, char ** argv) {
|
||||
common_batch_add(batch, 0, i, { j }, false);
|
||||
}
|
||||
}
|
||||
batch.logits[batch.n_tokens - 1] = true;
|
||||
|
||||
if (batch.n_tokens > 0) {
|
||||
batch.logits[batch.n_tokens - 1] = true;
|
||||
}
|
||||
|
||||
const auto t_pp_start = ggml_time_us();
|
||||
|
||||
|
Reference in New Issue
Block a user