From 1d9b620416a29bd700bac058682dea3c43c373a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 14 Aug 2026 01:36:14 +0000 Subject: [PATCH] =?UTF-8?q?fix(crash):=20disable=20corex=5Fgdn=5Fchunk=5Fr?= =?UTF-8?q?ecurrent=20=E2=80=94=20pybind=20signature=20mismatch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The .so's torch_chunk_gated_delta_rule() only accepts positional args: (Tensor, Tensor, Tensor, Tensor, Tensor, int, Optional[Tensor], bool, bool) But Python calls it with keyword args: (q, k, v, g, beta, initial_state=, output_final_state=, use_qk_l2norm_in_kernel=) This causes 'incompatible function arguments' crash during profiling (determine_num_available_blocks), killing the engine before it starts. Fix: _HAS_COREX_GDN_CHUNK = False, forcing Python _torch_chunk_gated_delta_rule. This is what a3c45d3b effectively did (its .so wasn't compiled), explaining why a3c45d3b works but aa4b4992 crashes. --- qwen3_6_scripts/qwen3_5.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qwen3_6_scripts/qwen3_5.py b/qwen3_6_scripts/qwen3_5.py index 8103948e..9e07cc0f 100644 --- a/qwen3_6_scripts/qwen3_5.py +++ b/qwen3_6_scripts/qwen3_5.py @@ -153,7 +153,11 @@ try: except ImportError: _corex_gdn_chunk_recurrent = None -_HAS_COREX_GDN_CHUNK = _corex_gdn_chunk_recurrent is not None +# DISABLED: corex_gdn_chunk_recurrent.so pybind uses positional args only, +# but the call site passes keyword args (initial_state=, output_final_state=). +# This causes "incompatible function arguments" crash during profiling. +# Force Python fallback until .so signature is fixed. +_HAS_COREX_GDN_CHUNK = False from vllm.model_executor.models.interfaces import (HasInnerState, SupportsLoRA, SupportsMultiModal)