RGPalgrave commited on
Commit
04a0448
·
verified ·
1 Parent(s): c78e43f

Ship the checkpoint/code compatibility table with the weights

Browse files
Files changed (1) hide show
  1. COMPATIBILITY.md +32 -0
COMPATIBILITY.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Checkpoint ↔ code compatibility
2
+
3
+ **A representation change breaks old checkpoints. This file records which code loads which arm.**
4
+
5
+ | arms | conditioning | `PER_SITE_DIM` | `COND_DIM` | load with |
6
+ |---|---|---|---|---|
7
+ | `A_*`, `B_*`, `C_*`, `D_*`, `E_long*`, `F_scout`, `G_100*` | pre-WP-018 | 62 | 948 | commit **`203c036`** or earlier |
8
+ | `H_pq*` and later | WP-018 (+ per-shell SPECIFIED bit) | 68 | 1020 | commit **`74dae8f`** or later |
9
+
10
+ Loading a pre-WP-018 checkpoint with current code raises:
11
+
12
+ ```
13
+ size mismatch for site_proj.0.weight: copying a param with shape torch.Size([256, 62])
14
+ from checkpoint, the shape in current model is torch.Size([256, 68])
15
+ ```
16
+
17
+ That is the correct, loud failure — not a corrupted download.
18
+
19
+ ## How this happened, and the rule it earns
20
+
21
+ WP-018 added a **SPECIFIED bit per shell** so a user could ask for fewer than six shells. That is a
22
+ change to the *input representation*, and it silently invalidated **16 of 19 trained arms** for
23
+ inference. It surfaced only when a control experiment tried to feed a shallow query to a
24
+ full-query model and torch raised a size mismatch.
25
+
26
+ > **RULE: a change to the conditioning or token representation is a BREAKING change. It must (a) be
27
+ > recorded in the checkpoint's own metadata, (b) be checked on load with a message that names the
28
+ > commit to use, and (c) appear in this table before the change is committed.**
29
+
30
+ ⚠ `arm_meta.json` records `tokenizer_version` and `vocab_hash` but **not** a conditioning version —
31
+ which is why nothing caught this at load time. Adding one is the fix; until then, this table is the
32
+ source of truth.