null terminated seq_id list
This commit is contained in:
parent
734f9e29de
commit
7264596a5c
1 changed files with 2 additions and 1 deletions
|
@ -21199,7 +21199,8 @@ struct llama_batch_allocr {
|
|||
batch.n_seq_id = n_seq_id.data();
|
||||
}
|
||||
if (!batch.seq_id) {
|
||||
seq_id.resize(batch.n_tokens);
|
||||
seq_id.resize(batch.n_tokens + 1);
|
||||
seq_id[batch.n_tokens] = NULL;
|
||||
for (int32_t i = 0; i < batch.n_tokens; i++) {
|
||||
seq_id[i] = seq_id_0.data();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue