Skip to content

Commit 54f2bd4

Browse files
committed
kv-cache : more consistent debug logs [no ci]
1 parent f5adaab commit 54f2bd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/llama-kv-cache.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ llama_kv_cache_unified::llama_kv_cache_unified(
9393
dev_name = ggml_backend_dev_name(dev);
9494
}
9595

96-
LLAMA_LOG_DEBUG("layer %3d: dev = %s\n", i, dev_name);
96+
LLAMA_LOG_DEBUG("%s: layer %3d: dev = %s\n", __func__, i, dev_name);
9797

9898
ggml_context * ctx = ctx_for_buft(buft);
9999
if (!ctx) {
@@ -992,9 +992,9 @@ bool llama_kv_cache_unified::defrag_prepare(int32_t n_max_nodes) {
992992
return false;
993993
}
994994

995-
LLAMA_LOG_DEBUG("(tmp log) KV defrag cell moves: %u\n", n_moves);
995+
LLAMA_LOG_DEBUG("%s: (tmp log) KV defrag cell moves: %u\n", __func__, n_moves);
996996

997-
LLAMA_LOG_DEBUG("expected gf nodes: %u\n", 6*n_moves*n_layer);
997+
LLAMA_LOG_DEBUG("%s: expected gf nodes: %u\n", __func__, 6*n_moves*n_layer);
998998

999999
return true;
10001000
}
@@ -1438,7 +1438,7 @@ llama_kv_cache_recurrent::llama_kv_cache_recurrent(
14381438
dev_name = ggml_backend_dev_name(dev);
14391439
}
14401440

1441-
LLAMA_LOG_DEBUG("layer %3d: dev = %s\n", i, dev_name);
1441+
LLAMA_LOG_DEBUG("%s, layer %3d: dev = %s\n", __func__, i, dev_name);
14421442

14431443
ggml_context * ctx = ctx_for_buft(buft);
14441444
if (!ctx) {

0 commit comments

Comments
 (0)