From 1d9d2b7f1b3f850147c84c4923948205fbfae545 Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Tue, 12 May 2026 06:56:15 +0000 Subject: [PATCH] Fix GLM-4.5 MTP loading --- src/llama-load-tensors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-load-tensors.cpp b/src/llama-load-tensors.cpp index 4f4edae4..b1dd9b50 100644 --- a/src/llama-load-tensors.cpp +++ b/src/llama-load-tensors.cpp @@ -2776,7 +2776,7 @@ bool create_tensors_helper::create_glm4_moe_tensors(const LLM_TN & tn) { tn(LLM_TENSOR_NEXTN_HNORM, "weight", final_layer), { n_embd }, flags); - layer.nextn.shared_head_head = create_tensor(nextn_host_ctx, + layer.nextn.shared_head_head = create_tensor(nextn_ctx, tn(LLM_TENSOR_NEXTN_SHARED_HEAD_HEAD, "weight", final_layer), { n_embd, n_vocab }, flags | llama_model_loader::TENSOR_NOT_REQUIRED);