Skip to content

Commit 74eaeb8

Browse files
committed
src: reduce the logging
1 parent d3bd719 commit 74eaeb8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/llama-kv-cache.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ bool llama_kv_cache_unified::init(
8686
buft = ggml_backend_cpu_buffer_type();
8787
}
8888

89+
/*
8990
LLAMA_LOG_DEBUG("%s: layer %3d: n_embd_k_gqa = %d, n_embd_v_gqa = %d, dev = %s\n", __func__,
9091
i, n_embd_k_gqa, n_embd_v_gqa, dev_name);
92+
*/
9193

9294
ggml_context * ctx = ctx_for_buft(buft);
9395
if (!ctx) {

src/llama-model-loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ llama_model_loader::llama_model_loader(
668668
}
669669
replace_all(value, "\n", "\\n");
670670

671-
LLAMA_LOG_INFO("%s: - kv %3d: %42s %-16s = %s\n", __func__, i, name, type_name.c_str(), value.c_str());
671+
//LLAMA_LOG_INFO("%s: - kv %3d: %42s %-16s = %s\n", __func__, i, name, type_name.c_str(), value.c_str());
672672
}
673673

674674
// print type counts

src/llama-vocab.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,8 +1974,8 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
19741974
} else {
19751975
// token is control, but not marked as EOG -> print a debug log
19761976
if (id_to_token[t.second].attr & LLAMA_TOKEN_ATTR_CONTROL && special_eog_ids.count(t.second) == 0) {
1977-
LLAMA_LOG_DEBUG("%s: control token: %6d '%s' is not marked as EOG\n",
1978-
__func__, t.second, t.first.c_str());
1977+
//LLAMA_LOG_DEBUG("%s: control token: %6d '%s' is not marked as EOG\n",
1978+
// __func__, t.second, t.first.c_str());
19791979
}
19801980
}
19811981
}

0 commit comments

Comments
 (0)