n_session_consumed should just be size_t, but the cache code casts to (int)
This commit is contained in:
parent
573b690e16
commit
6d47258e41
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ int main(int argc, char ** argv) {
|
|||
}
|
||||
if (i > 0) {
|
||||
// check if we've used up all the prompt but not all cached tokens
|
||||
if (embd.size() == i && n_session_consumed < session_tokens.size()) {
|
||||
if (embd.size() == i && n_session_consumed < (int) session_tokens.size()) {
|
||||
// force revaluation of the last token to recalculate logits
|
||||
i--;
|
||||
n_past--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue