瀏覽代碼

llama : print max tensor size to stderr (#2336)

Christian Demsar 2 年之前
父節點
當前提交
a940458e48
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      llama.cpp

+ 1 - 1
llama.cpp

@@ -2795,7 +2795,7 @@ struct llama_context * llama_new_context_with_model(
 
         const size_t max_size = ggml_get_max_tensor_size(ctx->model.ctx);
 
-        printf("%s: max tensor size = %8.2f MB\n", __func__, max_size/1024.0/1024.0);
+        fprintf(stderr, "%s: max tensor size = %8.2f MB\n", __func__, max_size/1024.0/1024.0);
 
 #define LLAMA_METAL_CHECK_BUF(result)                                          \
     if (!(result)) {                                                           \