You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a17cfb
Browse filesBrowse the repository at this point in the historyBrowse files
Make paged-attention typed refusals honest: direct declared-field access, real qk-norm gate
No-BC cleanup of the eligibility validator (no compat shims). Every field the
rejection probes is a declared ArchitectureConfig field, so replace the
defensive getattr(...) with direct attribute access (use_dsa, indexer_types,
compress_ratios, o_lora_rank, o_groups, hc_mult, num_nextn_predict_layers,
sliding_window) and the export_paged_attention reads in deepseek.py/glm_moe_dsa.py.
Behavior is identical: each getattr default matched the declared default.
Correctness fix (mandatory typed refusal): per-head QK-norm is consumed into
the canonical attn_qk_norm / attn_qk_norm_full fields at config-extraction time
(the HF use_qk_norm / qk_layernorm passthrough is not an ArchitectureConfig
field, so the old check was always False and unreachable). Reject on the real
fields instead — a qk-norm MLA would need the operator's q_norm/k_norm inputs,
which this slice does not claim. DeepSeek-V2/V3 and GLM full-attention leave
both False, so the targets are unaffected. The refusal is now reachable and
tested at both component and model level.
Remove the provably-dead head_sink / attention_sink branch: neither is an
ArchitectureConfig field, so the guard was always False. Coverage is subsumed —
the only sink-bearing MLA family (DeepSeek-V4) is already rejected by its
CSA/HCA fields, a non-MLA sink model (gpt-oss) is rejected by the MLA-geometry
check, and PagedLatentMLA structurally never emits a head_sink input. Documented
in place; no silent-miscompute path is introduced.
Tests: add component test_qk_norm_rejected (attn_qk_norm / attn_qk_norm_full)
and test_window_rejected; add a model-level qk-norm typed-reject case. Full
paged/GLM/DeepSeek/V4/tasks/CLI suites pass; ruff 0.16.2 clean.
Co-authored-by: Copilot <[email protected]>
0 commit comments