From e094f324670349a5a21a332fc30007ffa2b8b435 Mon Sep 17 00:00:00 2001 From: Iwan Kawrakow Date: Thu, 11 Dec 2025 13:26:41 +0000 Subject: [PATCH] Fix #1055 --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index e75194aa..8b25cc7b 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -5733,10 +5733,10 @@ struct llama_data_read { std::vector aux; for (int id = 0; id < extra->n_device; ++id) { auto split = extra->splits[id]; - GGML_ASSERT(split->type == tensor->type); auto kv_split = kv_extra->splits[id]; GGML_ASSERT((split && kv_split) || (!split && !kv_split)); if (!split) continue; + GGML_ASSERT(split->type == tensor->type); auto split_row_size = ggml_row_size(tensor->type, kv_split->ne[1]); aux.resize(split_row_size*nrows); auto src = data + sum_split_row_size;