We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a63caa commit ecd5d6bCopy full SHA for ecd5d6b
src/llama.cpp
@@ -3056,18 +3056,14 @@ struct llama_sbatch {
3056
} else {
3057
// simple split
3058
if (batch->n_seq_id) {
3059
- for (size_t i = 0; i < length; ++i) {
3060
- ubatch.n_seq_id = batch->n_seq_id + seq.offset;
3061
- }
+ ubatch.n_seq_id = batch->n_seq_id + seq.offset;
3062
3063
for (size_t i = 0; i < length; ++i) {
3064
ubatch.n_seq_id[ubatch.n_seqs + i] = 1;
3065
}
3066
3067
if (batch->seq_id) {
3068
3069
- ubatch.seq_id = batch->seq_id + seq.offset;
3070
+ ubatch.seq_id = batch->seq_id + seq.offset;
3071
3072
3073
ubatch.seq_id[ubatch.n_seqs + i] = &seq.all_seq_id;
0 commit comments