From: Radoslav Gerganov Date: Mon, 30 Mar 2026 14:05:11 +0000 (+0300) Subject: rpc : fix misleading error log (llama/21184) X-Git-Tag: upstream/1.9.2~658 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=40ddc5a5b911851f4867207c80d8db2eb238388f;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp rpc : fix misleading error log (llama/21184) When RPC is running with a remote backend which doesn't have init_tensor function (like CPU and Metal), the server log gets full with error messages saying that init_tensor is being called with null buffer which is incorrect. This patch fixes this. --- diff --git a/ggml/src/ggml-rpc/ggml-rpc.cpp b/ggml/src/ggml-rpc/ggml-rpc.cpp index 16f6abdf..1378ba9f 100644 --- a/ggml/src/ggml-rpc/ggml-rpc.cpp +++ b/ggml/src/ggml-rpc/ggml-rpc.cpp @@ -1340,7 +1340,9 @@ bool rpc_server::init_tensor(const rpc_msg_init_tensor_req & request) { if (buffer && buffer->iface.init_tensor) { buffer->iface.init_tensor(buffer, tensor); } else { - GGML_LOG_ERROR("Null buffer for tensor passed to init_tensor function\n"); + if (!buffer) { + GGML_LOG_ERROR("Tensor with null buffer passed to init_tensor function\n"); + } } if (tensor->extra != nullptr) {