Skip to content

Commit 09651d0

Browse files
authored
graph : Pass the graph placeholder message in debug mode (ggml-org#14748)
Without that condition, this debug log clutters the screen every batch treated in the prompt processing, or every token generated in Kobold.cpp.
1 parent 349ea79 commit 09651d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/llama-graph.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ bool llm_graph_result::can_reuse(const llm_graph_params & params) {
467467
for (auto & input : inputs) {
468468
const bool cur = input->can_reuse(params);
469469

470-
LLAMA_LOG_DEBUG(" %s: can_reuse = %d\n", "placeholder", cur);
470+
if (debug > 1) {
471+
LLAMA_LOG_DEBUG("%s: can_reuse = %d\n", "placeholder", cur);
472+
}
471473

472474
res = res && cur;
473475
}

0 commit comments

Comments
 (0)