From de5bf44e8c4c12382d5677191018267fd3e61b79 Mon Sep 17 00:00:00 2001 From: yurko Date: Sat, 7 Feb 2026 13:45:37 -0800 Subject: [PATCH] qwen3next: drop redundant cont before recurrent state flatten --- src/llama-build-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-build-context.cpp b/src/llama-build-context.cpp index 2f7ff44f..b55795e9 100644 --- a/src/llama-build-context.cpp +++ b/src/llama-build-context.cpp @@ -4751,7 +4751,7 @@ ggml_cgraph * llm_build_context::build_qwen3next() { hparams.ssm_d_conv * ggml_element_size(conv_output_raw), (1 + conv_dim * n_tok) * ggml_element_size(conv_output_raw)); ggml_tensor * new_conv_flat = ggml_reshape_2d(ctx0, ggml_cont(ctx0, new_conv_states), conv_state_dim, 1); - ggml_tensor * new_ssm_flat = ggml_reshape_2d(ctx0, ggml_cont(ctx0, new_state), ssm_state_dim, 1); + ggml_tensor * new_ssm_flat = ggml_reshape_2d(ctx0, new_state, ssm_state_dim, 1); ggml_tensor * new_state_flat = ggml_concat(ctx0, new_conv_flat, new_ssm_flat, 0); ggml_tensor * state_update = new_state_flat;