Merge 63978cb6dc
into 855cd0734a
This commit is contained in:
commit
4306c3615f
1 changed files with 2 additions and 0 deletions
|
@ -1318,6 +1318,8 @@ struct server_slot {
|
|||
|
||||
if (params.n_predict != -1) {
|
||||
n_remaining = params.n_predict - n_decoded;
|
||||
} else if (global_params.n_predict == -2) {
|
||||
n_remaining = n_ctx - n_past;
|
||||
} else if (global_params.n_predict != -1) {
|
||||
n_remaining = global_params.n_predict - n_decoded;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue