From: Joshua Cogliati Date: Thu, 28 Aug 2025 07:48:20 +0000 (-0600) Subject: cli : change log to warning to explain reason for stopping (#15604) X-Git-Tag: upstream/0.0.6527~222 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d35a1e8c41f747548775225973a99507896a8c61;p=pkg%2Fggml%2Fsources%2Fllama.cpp 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 --------- Co-authored-by: Georgi Gerganov --- diff --git a/tools/main/main.cpp b/tools/main/main.cpp index dc776f59..865ea4a2 100644 --- a/tools/main/main.cpp +++ b/tools/main/main.cpp @@ -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; }