]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ngram : reduce noisy logs (#23185)
authorddh0 <redacted>
Sun, 17 May 2026 06:38:17 +0000 (01:38 -0500)
committerGitHub <redacted>
Sun, 17 May 2026 06:38:17 +0000 (09:38 +0300)
* ngram : reduce noisy logs

* ngram : reduce noisy logs

common/ngram-map.cpp

index 8e3978f7ed029fadd73e0e2433a9c6de91027fc5..02bc482fe8489109e14b4f368d0baa277e51efc1 100644 (file)
@@ -471,7 +471,7 @@ void common_ngram_map_draft(common_ngram_map & map,
         sum_occur += curr_occur;
     }
 
-    LOG_INF("%s: key_offset = %zu, max_occur = %d, sum_occur = %d, slot_max = %d [%zu/%d, %zu/%d, %zu/%d, %zu/%d]\n", __func__,
+    LOG_DBG("%s: key_offset = %zu, max_occur = %d, sum_occur = %d, slot_max = %d [%zu/%d, %zu/%d, %zu/%d, %zu/%d]\n", __func__,
             key_offset,
             max_occur, sum_occur, slot_max,
             curr_key.values[0].value_idx, curr_key.values[0].value_num,
@@ -482,7 +482,7 @@ void common_ngram_map_draft(common_ngram_map & map,
     // Print the tokens of the four values (if idx != 0), use LOG_INF
     for (int v = 0; v < COMMON_NGRAM_MAX_VALUES; ++v) {
         if (curr_key.values[v].value_idx != 0) {
-            LOG_INF("%s: value[%d] = %s\n", __func__, v, common_tokens_to_str(inp, curr_key.values[v].value_idx, m).c_str());
+            LOG_DBG("%s: value[%d] = %s\n", __func__, v, common_tokens_to_str(inp, curr_key.values[v].value_idx, m).c_str());
         }
     }