DeepSpeed
c526daf6 - fix: strided decode_attn query + transformers 5.19 GDN scan fallback

Commit
34 days ago
fix: strided decode_attn query + transformers 5.19 GDN scan fallback Qwen3.5's q_proj emits [query|gate] per head, so the chunked view the decode path reshapes is strided (head stride 2*head_dim); the kernel indexes packed memory, so heads > 0 read gate-half values — greedy output diverged from HF within 1-8 tokens (external bench report). Materialize q with .contiguous() at both call sites and reject non-contiguous q in the kernel wrapper. transformers 5.19 no longer binds chunk_/recurrent_gated_delta_rule onto each GDN layer; fall back to the model module's torch_* reference implementations (found via the parent class's module, version-agnostic). Signed-off-by: Guokai Ma <guokai.ma@intel.com>
Author
Parents
Loading