Skip to content

Commit d35a1e8

Browse files
jrincaycggerganov
andauthored
cli : change log to warning to explain reason for stopping (#15604)
* Change to warn instead of debug, to explain reason for stopping. * Update tools/main/main.cpp Fix printing --2 Co-authored-by: Georgi Gerganov <[email protected]> --------- Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 46d9caa commit d35a1e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/main/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,12 @@ int main(int argc, char ** argv) {
587587

588588
if (n_past + (int) embd.size() >= n_ctx) {
589589
if (!params.ctx_shift){
590-
LOG_DBG("\n\n%s: context full and context shift is disabled => stopping\n", __func__);
590+
LOG_WRN("\n\n%s: context full and context shift is disabled => stopping\n", __func__);
591591
break;
592592
}
593593

594594
if (params.n_predict == -2) {
595-
LOG_DBG("\n\n%s: context full and n_predict == -%d => stopping\n", __func__, params.n_predict);
595+
LOG_WRN("\n\n%s: context full and n_predict == %d => stopping\n", __func__, params.n_predict);
596596
break;
597597
}
598598

0 commit comments

Comments
 (0)