mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-10-29 22:20:15 +01:00
server: handle n_predict==2 error
This commit is contained in:
parent
87421a23e8
commit
63978cb6dc
@ -243,6 +243,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…
Reference in New Issue
Block a user