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

    Draft PR: #247

    PASS on both registered criteria. Measured, unreplicated. Scope: one head (layer 0, V head 0), real stock weights, 4 tokens of the fixture prompt. No proof.

    • Count: 88,703.33 byte limbs per V head per token, against the 85,861.33 in DESIGN 7.3 / count_m3. Ratio 1.0331, inside the 10% bar. The design's own arrays come to 85,845.33. The extra 3.3% is floor remainders the 7.3 count leaves out (2,816 limbs) plus 26 more scalar limbs.
    • Classes: every limb is in its class, every remainder is in its exact class, and every value recomposes exactly. The 5 runs are identical.
    • Full model with the built head in place (counted, not built; 1.27 factor and dense parts unchanged): 97.8M entries per token instead of 95.1M.
    • Finding: the design gives s = SiLU(z) 2 limbs, which top out at 32,639. The pinned table's maximum is 32,741, so 2 limbs are too narrow. s stayed in class on this input but went out of class on the synthetic debug input.

    Not established: any proof, CUDA or relation; other inputs, heads, layers or windows; the M3 arithmetic (the arrays hold M2 harness values); the low-rank form; the chunk handoff; accuracy.

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