fix(pybind): add py::arg + defaults to corex_gdn_chunk_recurrent
Python calls: _chunk_fn(q,k,v,g,beta, initial_state=, output_final_state=, use_qk_l2norm_in_kernel=) C++ had: positional-only (query,key,value,g,beta,chunk_size,initial_state,output_final_state,use_qk_l2norm) Fix: py::arg() naming + chunk_size=64 default (matches Python fallback). Re-enable _HAS_COREX_GDN_CHUNK flag. Rebuild on real machine: VLLM_ROOT=/usr/local/corex/lib64/python3/dist-packages/vllm bash build_corex_gdn_chunk_recurrent.sh $VLLM_ROOT Then copy .so to prebuilt/
This commit is contained in:
@@ -153,11 +153,7 @@ try:
|
||||
except ImportError:
|
||||
_corex_gdn_chunk_recurrent = 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
|
||||
_HAS_COREX_GDN_CHUNK = _corex_gdn_chunk_recurrent is not None
|
||||
|
||||
from vllm.model_executor.models.interfaces import (HasInnerState, SupportsLoRA,
|
||||
SupportsMultiModal)
|
||||
|
||||
Reference in New Issue
Block a user