mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-26 08:44:27 +00:00
llama-batch: fix allowed decreasing pos in a seq (#25449)
This commit is contained in:
parent
0bbc87b163
commit
1ee093937f
1 changed files with 2 additions and 0 deletions
|
|
@ -379,6 +379,8 @@ bool llama_batch_allocr::init(
|
|||
LLAMA_LOG_ERROR("%s: sequence %d positions are decreasing (not allowed)\n", __func__, seq_id);
|
||||
return false;
|
||||
}
|
||||
|
||||
cur_seq_pos[seq_id] = pos;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue