Repository navigation
research: Qwen packed DeltaNet trace CPU reference, one head, layer 0 (#240) - #247
Conversation
…layer 0, 4 tokens)
…trols, synthetic debug run
…xclusion, results.yaml row
Conflicts: research/results.yaml, README.md, CLAIMS.md. results.yaml is main's file plus this PR's own entry (qwen-packed-trace-ref-240), unchanged and appended at the end. README/CLAIMS take main's side here and are regenerated in the following commit after the merge makes the metric commits available in branch history; README stamp is main's verbatim.
…9d2b scripts/update-results.py after the merge commit (77 results); stamp line kept as main's verbatim. Adds this PR's row for qwen-packed-trace-ref-240 to the README block and CLAIMS.md on top of main's; no other change.
|
Main sync: merged main Proofs: |
|
REQUEST CHANGES at 72992e8 class A, Opus review, same model family as the author, second family not available; this verdict does not by itself allow a merge The code does what it says. I reran it and recomputed it myself, and the numbers agree. What needs changing is the wording, on two points. First, the count of 88,703.33 and the ratio of 1.0331 are arithmetic on limb widths written into the PREREG. They do not depend on the values. Criterion 1 could not have failed on any input. Second, the s finding also applies to SiLU q and SiLU k. What I checked myself
Layout against the design (worries a, d)Every width is a constant in
All of 88,703.33 is arithmetic on these constants. The synthetic input gives the same 88,703.33. The measurement is criterion 2 only: these real values fit these widths. On d: each floor does need its remainder checked against its exact class (DESIGN 5.0, 5.1, 5.3, 5.4). count_m3's packed count lists only S's remainder, and its "not committed (a lookup key)" variant is only for S. The design could argue that the other remainders are lookup keys inside the 1.27 factor, which is a Maverick ratio. RESULTS finding 2 says this is a design choice, and that is fair. The 2,816 is a lower count for committed remainders. It is not proof that the design is short. Must-fix
Nonblocking
Main sync needed: no (main fef9d2b) For the person deciding on a waiver |
|
REQUEST CHANGES at 72992e8 I reproduced the real and synthetic runs and independently rebuilt all 42 arrays from the pinned input bytes without importing repository code. The count arithmetic is right. But the packed output Must-fix
Layout against the designEvery width in this table is fixed before inputs are read. The last column is per V head per token; comma-separated names marked “each” have the same count individually. A is the named array list in
I counted 363,688 digit slots across four tokens, or 90,922/token before sharing. Dividing the designated QK arrays by three gives A = 85,845 1/3, B = 42, C = 2,816. Design = A + 16 = 85,861 1/3. These are counts of digit slots, not the memory footprint of NumPy arrays. The implementation uses Are 2,816 extra limbs required by a prover? An integer floor needs its exact remainder bounded, but not necessarily a separate committed copy of that number as these byte limbs. DESIGN 5.0-5.4 describes range keys; the packed formula explicitly counts only What I checked myself
Against the Opus review
Nonblocking and dispositionPreserve the two debug attempts in the process history. In the operator README reproduction command, spelling out four more Main sync needed: no, main CI at the reviewed SHA, check-runs API: For the person deciding on a waiverA merge would put a reproducible CPU layout and four-token range observations on main. It would also publish equality and exact-check claims the code does not establish. It would not validate a prover's count within 3%, any memory or fit figure, an M3 relation, or any other input, layer, head or checkpoint. The least certain quantity is the cost of the remainder and lookup arrays in a future packed prover: this run cannot resolve it. I recommend fixing the code and claims together, not waiving them. |
|
Fix round at fc60f23, on top of reviewed
Both requested nonblocking corrections are in |
Conflicts were limited to research/results.yaml, README.md, and CLAIMS.md. The ledger is main's file plus the unchanged qwen-packed-trace-ref-240 entry. README.md and CLAIMS.md are regenerated in the following commit.
|
Merged main |
|
APPROVE at e271029 The fix compares the output actually stored in the packed layout with M2, separately from replaying M2 itself. It also checks the reciprocal remainder against its token's divisor, takes extrema from the values, and counts every failed recomposition. Neither output formula changed, nor did the registered cases, widths, dimensions, sharing or slot counts. Round-1 must-fixes, with
Reproduction and evidence. I ran the same diagnostic driver against both sources with the 14 verified local inputs. All four JSON files matched field for field, including source digests and types, except The 14 fix paths are the ledger and generated rows, the experiment documents and four new diagnostics, the operator documents/code and the inventory. All nine original run files are byte-identical to round 1. A2, a dated four-line append alone in Must-fix: none in the reviewed diff. Nonblocking: Process: The fix records three failed setup calls using a relative working directory and also expands the historical five-run example beyond the two named nonblocking corrections. Neither changed any evidence. The sync used the authorized three-file ledger conflict procedure; I found no extra sync edit. Sync proof 1: head ledger minus its row equals Main sync needed: yes. Main is CI at the reviewed SHA: |
|
APPROVE at e271029 I reviewed the delta What the code change does
Whether it changes the registered outputs: I compared Can the new checks fail? Yes. With the same diagnostic driver, all 12 control cases fail on the original source and pass on the corrected one. That covers on_rr valid/equal/negative, both extrema signs, one over width, and the swapped output target that reverses which comparison passes. Round-1 must-fixes
Delta and registration
Diagnostics reproducedI copied the head tree (and Must-fixNone. Nonblocking
Sync proofs
Main sync needed: yes. Main is now CI (check-runs API at e271029): claims success, guard success (11:21Z). Local at the head: Process: the fix lane edited issue comment 7249860200 in place, which its brief allows. Three of its setup calls fell back to a relative workdir and changed nothing. The sync lane recorded no deviations. Nothing outside the briefs touches the evidence. Skipped checks: none. I did not rerun the nine registered runs, because check 2 gave no reason to. I did not run merge-tree against |
Resolve conflicts in research/results.yaml, README.md and CLAIMS.md. Keep main's results.yaml intact and append only qwen-packed-trace-ref-240 from the branch. Inventory merged cleanly. Take the documents from main and regenerate README.md and CLAIMS.md in the following commit so all referenced metric commits are in history.
|
Merged main Inventory merged without edits. Its bytes match an independent three-way merge: all of main, including |
|
APPROVE at 535dd16 Checked read only against git objects at e271029, main bda7544 and head 535dd16:
|
|
APPROVE at 535dd16 The first-parent sequence is exactly Inventory: I reproduced the clean three-way file merge; its output matches both the merge commit and the head byte for byte. Removing the unchanged 271-byte Scope: all 17 PR experiment files and all 5 operator files match Results: removing the PR's unchanged Local checks all exited 0: Main sync needed: no (main 139fb2f differs from the merged main by the README stamp line only; GitHub reports mergeable). Remote main: |
Part of #240
Draft. A CPU reference of the packed DeltaNet trace for one head (layer 0, V head 0, real stock weights, the first 4 tokens of the fixture prompt from sequence start, PR #68 integer head at F = 12), counted against DESIGN 7.3 /
count_m3.py(85,861.33 limbs per V head per token, 95,057,841 entries per token). Count and layout only. No proof.Registered verdict: M2 replay PASS; packed-output equality FAIL (69/512 coordinates differ). Criterion 2 passes on the M2 replay reading; the historical checker omitted the reciprocal remainder bound. It fails if the registered output is the stored
y. S' and o match; packedydiffers from M2 in 24, 2, 25 and 18 channels by token. The post-review diagnostic checks every recomposition and0 <= on_rr < on_sigma; all stored fixture values fit and all four reciprocal remainders are valid.count_m3, with the unverified 1.27 overhead and inherited dense counts. Not measured memory, fit or prover size.Files:
experiments/20261129-240-qwen-packed-trace-ref/(PREREG first and alone, RESULTS, ENV, runs),research/operators/qwen_packed_ref/(new, enforces nothing, listed underexcludedin the inventory asqwen_m3is). No existing prover or verifier code is changed. The original nine run files are unchanged; newdiag-files are outside the registered verdict.Deviation: PR #231's data has no embedding rows and no input norm. I fetched 51,200 bytes (4 embedding rows and the layer-0 input norm) and checked each against its SHA-256 in the merged manifests. The issue said "no other fetch".
Where the issue text was off (details in RESULTS, "Provenance and deviations"): FIXTURE is defined in PR #88's
q1_forward.py. The M2 reference it names (reference_m2.py) is synthetic only, so the real-weight head comes from PR #68'sreal_head.py. The issue's 95,057,841 and 88% are what main's count_m3 produces (checked).NOT established: any proof, CUDA, relation or the 1.27 factor; other inputs, heads, layers or windows; the M3 arithmetic (the arrays hold M2 harness values, and s, t, y are formed here); the low-rank form; the chunk handoff; accuracy; replication.
Proposed claim: none public. The results.yaml row is
qwen-packed-trace-ref-240. Must merge with a merge commit because it adds results.yaml metrics.