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.
-n -1
1 parent 9656026 commit 3e73d31Copy full SHA for 3e73d31
examples/lookahead/lookahead.cpp
@@ -311,7 +311,7 @@ int main(int argc, char ** argv) {
311
++n_predict;
312
++n_past;
313
314
- if (n_predict > params.n_predict || has_eos) {
+ if ((params.n_predict >= 0 && n_predict > params.n_predict) || has_eos) {
315
break;
316
}
317
@@ -433,7 +433,7 @@ int main(int argc, char ** argv) {
433
434
435
436
437
438
439
0 commit comments