[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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
This commit is contained in:
Robert KarlandClaude Fable 5.1 committed 2026-10-12 18:30:29 -07:00
1 parent 1f5ef7daf6
commit b4ee41e14e
1 file changed
+6
+6
View File
@@ -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; }