]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
graph : Pass the graph placeholder message in debug mode (#14748)
authorNexes the Elder <redacted>
Fri, 18 Jul 2025 04:25:54 +0000 (06:25 +0200)
committerGitHub <redacted>
Fri, 18 Jul 2025 04:25:54 +0000 (07:25 +0300)
Without that condition, this debug log clutters the screen every batch treated in the prompt processing, or every token generated in Kobold.cpp.

src/llama-graph.cpp

index f47538ef0737a60e17120fa17971f67d12c301ab..e27f78c2a6811235af6474da03deae4e87615a09 100644 (file)
@@ -467,7 +467,9 @@ bool llm_graph_result::can_reuse(const llm_graph_params & params) {
     for (auto & input : inputs) {
         const bool cur = input->can_reuse(params);
 
-        LLAMA_LOG_DEBUG("  %s: can_reuse = %d\n", "placeholder", cur);
+        if (debug > 1) {
+            LLAMA_LOG_DEBUG("%s: can_reuse = %d\n", "placeholder", cur);
+        }
 
         res = res && cur;
     }