Skip to content

lane: CPU reference of the packed DeltaNet trace (byte limbs) for one real head and 4 tokens, checked against the harness head and the design's packed count (CPU) #240

Backlog

Description

@wakesync

Question. Every full-model memory and cost figure for Qwen rests on the design's packed DeltaNet count (95,057,841 committed entries per token, 88% of the model, experiments/20261109-32-qwen-m3-design/RESULTS.md), which no code has ever produced. Does a CPU reference that actually lays out one head's trace as the packed design says (state in three signed-byte limbs, and the other arrays of DESIGN 7.3) produce that count, with every limb inside its class on real layer-0 inputs?

Why it is on the shortest path. DESIGN section 9 puts this row before any CUDA: "count off by more than 10%: recount 7.3 before any CUDA". The next GPU steps (M3b-1, and any Modal run that sizes a DeltaNet segment) are planned from this count, and the Q3 cost model inherits it. It needs no GPU and no new arithmetic, only a faithful layout of a design that exists.

Milestone (one lane, about 2.5 hours).

  1. PREREG first, alone: the packed layout read from DESIGN 7.3 and research/operators/qwen_m3/count_m3.py (array by array: name, shape per head per token, limb count, class), the input (layer 0, V head 0, real weights; 4 tokens of PR research: end-to-end token agreement of XS18/XS20 DeltaNet lowering, stock and abliterated (#8) #124's fixture prompt; the head's integer inputs from the M2 reference), PASS = count within 10% and every limb in class.
  2. New directory research/operators/qwen_packed_ref/: numpy, exact integers. For each token: produce every packed array from the harness head's integer values (research/operators/qwen_deltanet_m2_build/reference_m2.py or the M2 reference it names), recompose each value from its limbs and compare with the harness value exactly, count entries.
  3. Report the per-array count next to the design's, the ratio, and max |limb| per array.

Out of scope. Any proof, CUDA or relation; the low-rank form (not established); the chunk-boundary handoff; other heads or layers; accuracy.

Negative result. The ratio is off by more than 10%, or some limb leaves its class on real inputs: recount DESIGN 7.3 before anything is planned on a GPU, and every Qwen memory figure that used 95.1M is suspect by that ratio.

Estimate. CPU minutes, under 2 GB. Layer-0 head-0 weights only (reuse PR #231's data, about 232 MB, SHA-256 checked); no other fetch.

Activity

  1. added
    loop:active
    P2
    gate:0
    on Nov 29, 2026
  2. added 5 commits that reference this issue on Nov 29, 2026
  3. wakesync commented on Nov 29, 2026

    @wakesync
    OwnerAuthor

    Correction to the original verdict for draft PR #247.

    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; packed y differs from M2 in 24, 2, 25 and 18 channels by token. The post-review diagnostic checks every recomposition and 0 <= on_rr < on_sigma; all stored fixture values fit and all four reciprocal remainders are valid.

    • Count: 88,703 1/3 limbs per V head per token; ratio 1.033099882. Both follow from preassigned widths, dimensions and sharing, including 42 scalar limbs and the choice to store 2,816 additional remainder limbs. Computable before any run; synthetic input gives the same count. Criterion 1 cannot fail here. Only criterion 2 measures values. Five identical runs test determinism on one input, not replication.
    • Full model: 97.8M entries/token substitutes the fixed count into count_m3, with the unverified 1.27 overhead and inherited dense counts. Not measured memory, fit or prover size.
    • Merged M3 design erratum: s, SiLU q and SiLU k all have two limbs. Their fixture maxima (20,264, 7,319, 10,639) fit; the pinned table maximum does not (32,741 > 32,639). Widening all three would cost +213 1/3 limbs/head/token (+0.25% of the design count, about +0.21M modeled entries/token). The synthetic maximum 48,986 is unclamped, not a table output. The erratum needs its own issue. Widths and registered counts are unchanged.

    The original nine files are unchanged. See RESULTS for source digests, the 18 corrected real minima, the synthetic recomposition correction and the separate diagnostic receipts. No proof, GPU measurement or replication.

  4. added a commit that references this issue on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2gate:0loop:active

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions