From 8337e4cd3861406fc04e0854b1409cd1b027fbc9 Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Sat, 15 Aug 2026 19:35:03 +0200 Subject: [PATCH] Fix Qwen35+ MTP (#2322) --- src/graphs/build_qwen35.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/graphs/build_qwen35.cpp b/src/graphs/build_qwen35.cpp index b08ad9f5..d14153ce 100644 --- a/src/graphs/build_qwen35.cpp +++ b/src/graphs/build_qwen35.cpp @@ -64,12 +64,6 @@ ggml_cgraph * llm_build_context::build_qwen35moe() { inpL = cur; } - if (lctx.cparams.mtp) { - ggml_tensor * mtp_embd = inpL->type == GGML_TYPE_F32 ? inpL : ggml_cast(ctx0, inpL, GGML_TYPE_F32); - cb(mtp_embd, "result_mtp_embd", -1); - ggml_set_output(mtp_embd); - } - cur = build_output(lctx, ctx0, inpL, model.output, model.output_norm, cb); cb(cur, "result_output", -1); } @@ -136,12 +130,6 @@ ggml_cgraph * llm_build_context::build_qwen35() { inpL = cur; } - if (lctx.cparams.mtp) { - ggml_tensor * mtp_embd = inpL->type == GGML_TYPE_F32 ? inpL : ggml_cast(ctx0, inpL, GGML_TYPE_F32); - cb(mtp_embd, "result_mtp_embd", -1); - ggml_set_output(mtp_embd); - } - cur = build_output(lctx, ctx0, inpL, model.output, model.output_norm, cb); cb(cur, "result_output", -1); }