From 7d11d2946cd10bf19816dd41196f38dace73affe Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Tue, 3 Dec 2024 22:09:26 +0800 Subject: [PATCH] only show warning if more than 1 moved tensor --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index 45d5deb14..6ad91ced0 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -9292,7 +9292,7 @@ static bool llm_load_tensors( throw std::runtime_error("unknown architecture"); } - if (n_moved_tensors > 0) { + if (n_moved_tensors > 1) { //only warn if more than 1 moved tensor LLAMA_LOG_DEBUG("%s: tensor '%s' (%s) (and %d others) cannot be used with preferred buffer type %s, using %s instead\n", __func__, first_moved_tensor->name, ggml_type_name(first_moved_tensor->type), n_moved_tensors - 1, ggml_backend_buft_name(first_moved_from_buft), ggml_backend_buft_name(first_moved_to_buft));