From: Johannes Gäßler Date: Sun, 21 Dec 2025 18:33:08 +0000 (+0100) Subject: llama: fix RPC for -fit on (llama/18233) X-Git-Tag: v0.9.5~45 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=68eab95c65563399ae90aafc04a33b78d6fa40a8;p=pkg%2Fggml%2Fsources%2Fggml llama: fix RPC for -fit on (llama/18233) --- diff --git a/src/ggml-rpc/ggml-rpc.cpp b/src/ggml-rpc/ggml-rpc.cpp index 18a45d2d..13cf1f5f 100644 --- a/src/ggml-rpc/ggml-rpc.cpp +++ b/src/ggml-rpc/ggml-rpc.cpp @@ -583,7 +583,7 @@ static rpc_tensor serialize_tensor(const ggml_tensor * tensor) { if (tensor->buffer) { ggml_backend_buffer_t buffer = tensor->buffer; ggml_backend_rpc_buffer_context * ctx = (ggml_backend_rpc_buffer_context *)buffer->context; - result.buffer = ctx->remote_ptr; + result.buffer = ctx != nullptr ? ctx->remote_ptr : 0; } else { result.buffer = 0; }