From b4ee41e14ea23363eb8da27ba118a0401f272013 Mon Sep 17 00:00:00 2001 From: Robert Karl Date: Sun, 11 Oct 2026 14:21:16 -0700 Subject: [PATCH] [shared] verify: the commit captures skip the indexer tail without an indexer Both commit graphs restored every attention layer's indexer key tail and re-appended the accepted keys, which needs blk.N.indexer.k_norm.weight: the first Qwen3.6 window on the real pack stopped there ("blk.3.indexer.k_norm.weight is missing") after the window itself had run. A dense model has no tail to restore; its K/V cells past the accepted prefix are overwritten when those positions run again, as the header says. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr --- src/core/verify.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/verify.cpp b/src/core/verify.cpp index 8a15986..4a144c3 100644 --- a/src/core/verify.cpp +++ b/src/core/verify.cpp @@ -1399,6 +1399,10 @@ bool Verifier::capture_commit(std::string& err) { beta_L_ + (size_t) gdn_index * MT * HV, z_, (const float*) wnm->data, EPS, g.gdn_gate(), y_dummy_, (int) g.ssm_k_heads, (int) HV, (int) MT, commit_, cs_, (int) MT); ++gdn_index; + } else if (!g.has_indexer()) { + // dense attention (Qwen3.6): no indexer key tail to restore; the K/V cells past the accepted prefix + // are overwritten when those positions are processed again (the header's STATE paragraph) + ++qsa_index; } else { const QsaState& st = ss.qsa_states[qsa_index]; const WeightRef* wikn = need(v, "indexer.k_norm.weight", err); @@ -1953,6 +1957,8 @@ bool Verifier::capture_commit_batch(const int* rows, int S, int hbase, std::stri (int) g.ssm_k_heads, (int) HV, 1, keep, cs_); } ++gdn_index; + } else if (!g.has_indexer()) { + ++qsa_index; // dense attention: no indexer tail (as in capture_commit) } else { const WeightRef* wikn = need(v, "indexer.k_norm.weight", err); if (!wikn) { ok = false; break; }