Skip to content

Commit 4959b8d

Browse files
committed
remove some logspam (+1 squashed commits)
Squashed commits: [c6f32e5] remove some logspam
1 parent 2e7f67d commit 4959b8d

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎koboldcpp.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
extra_images_max = 4 # for kontext/qwen img
8282

8383
# global vars
84-
KcppVersion = "1.122"
84+
KcppVersion = "1.122.1"
8585
showdebug = True
8686
kcpp_instance = None #global running instance
8787
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_base_config":"", "last_active_timestamp":datetime.now(), "triggered_sleeping":False, "current_model":"initial_model", "base_config":"", "swapReqType": None, "loadedReqTypes": [], "autoswapmode": False}

‎src/llama-context.cpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -611,12 +611,12 @@ static int llama_graph_n_input_tensors(ggml_cgraph * gf) {
611611
LLAMA_LOG_WARN("%s: input tensor '%32s' has op %s, expected GGML_OP_NONE\n",
612612
__func__, tensor->name, ggml_op_name(tensor->op));
613613
}
614-
for (const ggml_tensor * node : nodes) {
615-
LLAMA_LOG_DEBUG("%s: input tensor '%32s' [%s, ne = { %5" PRId64 ", %5" PRId64 ", %5" PRId64 ", %5" PRId64 " }] is used by node '%s' (%s)\n",
616-
__func__, tensor->name, ggml_type_name(tensor->type),
617-
tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3],
618-
node->name, ggml_op_name(node->op));
619-
}
614+
// for (const ggml_tensor * node : nodes) {
615+
// LLAMA_LOG_DEBUG("%s: input tensor '%32s' [%s, ne = { %5" PRId64 ", %5" PRId64 ", %5" PRId64 ", %5" PRId64 " }] is used by node '%s' (%s)\n",
616+
// __func__, tensor->name, ggml_type_name(tensor->type),
617+
// tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3],
618+
// node->name, ggml_op_name(node->op));
619+
// }
620620
}
621621

622622
return (int) users.size();
@@ -653,7 +653,7 @@ void llama_context::sched_reserve() {
653653
if (memory) { //added by kcpp to reduce embeddings memory usage
654654
llama_memory_context_ptr mctx;
655655
if (memory) {
656-
LLAMA_LOG_DEBUG("%s: reserving full memory module\n", __func__);
656+
// LLAMA_LOG_DEBUG("%s: reserving full memory module\n", __func__);
657657
mctx = memory->init_full();
658658
if (!mctx) {
659659
throw std::runtime_error("failed to initialize memory module");
@@ -663,7 +663,7 @@ void llama_context::sched_reserve() {
663663
// avoid reserving graphs with zero outputs - assume one output per sequence
664664
const int n_outputs = n_seqs;
665665

666-
LLAMA_LOG_DEBUG("%s: worst-case: n_tokens = %d, n_seqs = %d, n_outputs = %d\n", __func__, n_tokens, n_seqs, n_outputs);
666+
// LLAMA_LOG_DEBUG("%s: worst-case: n_tokens = %d, n_seqs = %d, n_outputs = %d\n", __func__, n_tokens, n_seqs, n_outputs);
667667

668668
resolve_fused_ops(mctx.get(), n_seqs);
669669

0 commit comments

Comments
 (0)