]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cli : change log to warning to explain reason for stopping (#15604)
authorJoshua Cogliati <redacted>
Thu, 28 Aug 2025 07:48:20 +0000 (01:48 -0600)
committerGitHub <redacted>
Thu, 28 Aug 2025 07:48:20 +0000 (10:48 +0300)
* Change to warn instead of debug, to explain reason for stopping.

* Update tools/main/main.cpp

Fix printing --2

Co-authored-by: Georgi Gerganov <redacted>
---------

Co-authored-by: Georgi Gerganov <redacted>
tools/main/main.cpp

index dc776f59e90a461485fb35968458e7ac9e9e4c05..865ea4a2f724c6bb8b73525c0cd20252d277285a 100644 (file)
@@ -587,12 +587,12 @@ int main(int argc, char ** argv) {
 
                 if (n_past + (int) embd.size() >= n_ctx) {
                     if (!params.ctx_shift){
-                        LOG_DBG("\n\n%s: context full and context shift is disabled => stopping\n", __func__);
+                        LOG_WRN("\n\n%s: context full and context shift is disabled => stopping\n", __func__);
                         break;
                     }
 
                     if (params.n_predict == -2) {
-                        LOG_DBG("\n\n%s: context full and n_predict == -%d => stopping\n", __func__, params.n_predict);
+                        LOG_WRN("\n\n%s: context full and n_predict == %d => stopping\n", __func__, params.n_predict);
                         break;
                     }