From 0ab9bdf793772952a24c1a819433c90d5aa32aca Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Sun, 17 May 2026 17:14:47 +0300 Subject: [PATCH] Fix Qwen3.5/3.6 MTP and -muge (#1816) --- src/llama.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/llama.cpp b/src/llama.cpp index 2eca5226..2850fa52 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -6013,6 +6013,9 @@ void llama_free_model(struct llama_model * model) { } static void llama_repack_up_gate_exps(llama_context & lctx) { + if (lctx.cparams.mtp_op_type != MTP_OP_NONE) { + return; + } auto & model = lctx.model; bool needs_repack = false; for (auto & l : model.layers) {