]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : print max tensor size to stderr (#2336)
authorChristian Demsar <redacted>
Sun, 23 Jul 2023 11:56:34 +0000 (07:56 -0400)
committerGitHub <redacted>
Sun, 23 Jul 2023 11:56:34 +0000 (14:56 +0300)
llama.cpp

index 135aa9fef7c1a026d2c99772675121e771d57728..0731c75ad2699a87da1d4369b4fcc3a5887d24bf 100644 (file)
--- a/llama.cpp
+++ b/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)) {                                                           \