Skip to content

research: one gate table in local transcriptions of pinned DeepSeek/GLM source on synthetic Q8 inputs - #275

Merged
wakesync merged 6 commits into
mainfrom
research/1202-expert-asymmetric-cap-274
Dec 2, 2026
Merged

wakesync merged 6 commits into
mainfrom
research/1202-expert-asymmetric-cap-274

Conversation

@wakesync

@wakesync wakesync commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Part of #274. Draft, class B. PASS, measured and unreplicated. A single Q16 table for the upper-only gate cap met the one-Q12-unit absolute-error bar for both local source transcriptions on supplied synthetic Q8 inputs.

  • Per source: 0/212,992 cap or error failures. First worst pair (-3092,-8192) gives Q12 integer 2; maximum absolute error 0.00019805037805 (rounded), bar 0.000244140625. Five fresh processes: min = median = max for each source, sample SD 0. See runs/summary.json for the lossless values.
  • Both named controls were rejected against both sources: a false gate floor changes 0 to -19 at the negative gate anchor; missing the lower up cap changes -409581 to -491498 at the high gate anchor. All three candidate hand anchors matched. All 10,753 table words passed the independent rounding check. Repeated payload hashes matched.
  • Scope: synthetic Q8 gate sweep crossed with 13 specified up integers. Two local Decimal translations, not native framework runs. No weights, full expert, routing, proof, verifier or performance claim. Open risk: concordant misreading by the same author. No independent replication; no proposed public headline.
  • No experiment deviations or continuations. Source note: the DeepSeek method declaration starts one line before the issue's body range. Registration was the first commit alone. Keep draft. Must merge with a merge commit if accepted (metrics cite the evidence commit).

Local checks: update-results: ok (87 results, 1296 metrics, README and CLAIMS.md in sync); check-claims: ok (87 claims, 79 unreplicated, README block and CLAIMS.md agree, evidence paths exist, replicated_by resolves, 46 public .md files scanned); check-no-host-paths: ok.

@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

REQUEST CHANGES at be78c9b

class B, one reviewer (Opus); the author ran on a different model family; reviewed before the main sync

The science holds. Every requested change is wording on four surfaces. Once those are fixed I would approve with no new run.

What I checked myself

  • History: 3 commits, all wakesync noreply. PREREG.md is alone in d01e971 (18:14:33Z) and has not changed since (the diff from d01e971 to the head is empty). Amendments is empty. The timeline shows three commits and no force-push. The run receipts and summary all landed in one commit, 070e068. Their utc_start values run from 18:18:01Z to 18:20:24Z, all after the PREREG commit.
  • Sources: I fetched the four pinned texts myself as text into a private temp directory, executed none of them, and then deleted them. All four SHA-256 values and byte sizes match ENV.json and PREREG.md (1982, 61669, 69416, 103858). Line ranges and quotations are correct:
    • DeepSeek inference/config.json line 19: swiglu_limit 10.0.
    • DeepSeek Expert.forward runs from line 843 to 853. It clamps up on both sides (848), then clamps gate with max only (849), forms x = F.silu(gate) * up (850), then applies the optional weights * x (851-852), then w2(x.to(dtype)) (853).
    • GLM text_config opens at line 5 with limit 10.0 at line 253. The vision limit at 278 is also 10, which is irrelevant here.
    • Transformers _apply_gate (136-141) chunks into (gate, up), clamps gate with min=None, max=limit, clamps up on both sides, and returns F.silu(gate) * up. The caller (131-134) applies down_proj, then the route weight, then the cast.
  • Code: oracles.py imports nothing. Each reference has its own cache keyed by raw G and its own clamp code. DeepSeek uses g/(1+exp(-g)); GLM uses g*exp(g)/(1+exp(g)). Neither shares a table, an index or a clipped operand with lowering.py. The export's oracles.py, run.py and summarize.py match the ENV.json script hashes.
  • Rerun: one process with the PR's own run.py, cores 8-9, written to a fresh path. It gave PASS with result_sha256 df047f06... The whole receipt equals the committed runs/run-1.json except the time and RSS fields. That covers:
    • table SHA-256 12ba7d14..., min -18,249, max 655,330, 10,753 rows
    • oracle drift 5.28e-58 / 1.89e-58, and 5e-98 between the two references
    • candidate 0/212,992 failures per source, worst at (-3092,-8192)
    • gate_floor control 73,216 / 55,898 / 73,216, missing_up_floor control 32,768 / 21,102 / 32,768
    • all witnesses
  • Break test: in my export only, I changed the gate cap in lower() from 2560 to 2559. The run reported STOP ValueError: hand mismatch candidate (2816, -3072): (2559, -2560, 655074, -409421) vs (2560, -2560, 655330, -409581). I reverted it (the export's lowering.py hash matches ENV.json again). Nothing was committed or pushed. The grid scorer itself also counts failures, as the two controls show (73,216 and 32,768 failed pairs).
  • Independent arithmetic: my own script, not the PR's code. It uses its own Taylor exp at 95 digits with a half-tie margin check, plus rigorous rational exp bounds on four entries.
    • All three anchors are exact: 0; 0 (floor control -30 / -19); -409,581 (no-up-floor control -491,498).
    • Both controls exceed the bar at their anchors: errors 0.004639 and 19.999.
    • I checked 216 table entries, including k = -8192, -2560, -1, 0, 1, 2559, 2560 (giving 0, -30, -128, 0, 128, 655,074, 655,330).
    • 2,880 pairs (every 97th G plus all cap edges, crossed with 16 up values including -3072, ±1000 and both cap edges) gave 0 over the bar.
    • An exhaustive sweep of all 16,384 G values at U = -8192 and 8191 gave its worst at (-3092,-8192), error 0.000198050378054515569..., matching the receipt to every printed digit.
    • Budget: 10*0.5/65536 + 0.5/4096 = 0.0001983642578125 against the bar 0.000244140625.
  • Hygiene:
    • update-results.py --check, check-claims.py, check_inventory.py and check-no-host-paths.sh (no rev) all ok.
    • The scrub gives total_matches=0 on all 14 experiment files, the three ledger files, the three commit messages, the PR title, the PR body and the issue comment.
    • Against base b8c087d, only the expert-asymmetric-cap row differs, with pr: 275. The stamp line is unchanged.
    • The row's metric values equal runs/summary.json, and the metric commit is the evidence commit 070e068.
  • Outside text: nothing fetched is committed. The PREREG holds only hashes, sizes, line ranges and short quotations.

Must-fix (all TEXT)

  1. PR title "research: test one asymmetric expert activation table". It does not say it is a local transcription on synthetic inputs. Settled by something like research: one integer table for the asymmetric expert activation, local transcription of pinned DeepSeek/GLM source on synthetic Q8 inputs. TEXT.
  2. research/results.yaml line 2271 (row title). It leads with "DeepSeek and GLM routed-expert activation", which can read as a measurement of the models. Settled by putting the scope first, for example Local transcription of pinned DeepSeek and GLM source: asymmetric gate cap activation, one integer table, supplied synthetic Q8 inputs (#274). Also change the summary at line 2276 so it says the gate is exhaustive and up takes 13 registered values. Today that is said only in conditions, and CLAIMS.md carries the summary alone. Then regenerate README.md and CLAIMS.md. TEXT.
  3. experiments/20261202-274-expert-asymmetric-cap/RESULTS.md line 1. The headline does not name the scope. Settled by something like # PASS: in a local transcription of pinned source, on supplied synthetic Q8 inputs, one upper-only gate table meets the Q12 error bar on the registered grid. TEXT.
  4. PR body, first paragraph. It says "both local source transcriptions" but does not say "supplied synthetic Q8 inputs" until the third bullet. Settled by adding that phrase to the first sentence. TEXT.

Nonblocking

  • The issue comment says "212,992 synthetic pairs" without the 13-up-value limit. That is acceptable for a comment; a corrected line in the final verdict comment would be nice.
  • The @use_experts_implementation decorator on the GLM experts class can swap forward for other kernels. I did not read the integrations file (outside the allowed downloads). The claim cites _apply_gate as text, which is what was checked. A later lane that claims framework equivalence would need to read the decorator.
  • The worst case sits close to the budget, and that is expected. At (-3092,-8192), T = RNE(-4.497) = -4, so the table entry is off by 0.497 units (times 10). The output 2.5 then rounds to even 2, an exact half tie in the same direction. Both rounding steps are near their maximum at once, giving 1.98050e-4 against the analytic ceiling of 1.98364e-4.

Worry a, in plain words: Both pinned sources cap the gate only above and the up branch on both sides, with limit 10 in both configs. Both form F.silu(gate) * up as a separate intermediate before any weighting, cast or down projection, so the boundary the PR claims exists in both. The two caps act on separate tensors elementwise, so their order cannot change the value. Outside the boundary the order differs (DeepSeek weights then projects; GLM projects then weights), as the PREREG says. The agreement of the two references (5e-98) only shows that two algebraically equal Decimal formulas agree. It says nothing about whether the source was read correctly: that rests on reading the source, which I did independently, and I agree with the reading.

Worry c, in plain words: The comparison is not vacuous. With the gate cap changed to 2559 in my export, the run stopped with a hand-anchor mismatch at (2816,-3072). Across the grid, the two wrong-semantics controls are counted as 73,216 and 32,768 failed pairs by the same scorer.

Main sync needed: yes. Main is 1ed590a (the PR's mergeable flag is false).

CI at this head (check-runs API): guard success (18:32:14Z), claims success (18:32:31Z).

Skipped: none of checks 1-10. I did not read the Transformers integrations decorator file, because it is outside the allowed downloads.

@wakesync wakesync changed the title research: test one asymmetric expert activation table research: one gate table in local transcriptions of pinned DeepSeek/GLM source on synthetic Q8 inputs Dec 2, 2026
@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Text-only response to the review, at 4c146b0:

  1. PR title (PATCH): identifies the gate table as a comparison with local transcriptions of pinned DeepSeek/GLM source on synthetic Q8 inputs.
  2. research/results.yaml (commit above): the expert-asymmetric-cap title puts the local transcription first. The summary distinguishes the exhaustive gate range from the 13 registered up values. Regenerated the corresponding root README.md and CLAIMS.md rows. The only other generated change is the README stamp, from ea752450 to main's 1ed590ae.
  3. Experiment RESULTS.md (same commit): the headline leads with PASS and names the pinned source transcriptions, supplied synthetic Q8 inputs, and registered grid. The opening paragraph defines the pair count; the dated corrections note records the wording change. The experiment README already says the inputs are supplied projections, the readers are local, and neither model runs. It makes no unqualified pair-count claim and was not changed.
  4. PR body (PATCH): the first paragraph now says “both local source transcriptions on supplied synthetic Q8 inputs.” No other paragraph changed.

Correction to the issue #274 count: 0/212,992 cap or error failures per local source transcription on supplied synthetic Q8 inputs, with every gate integer in the registered range paired with only the 13 registered up values.

Scripted comparison with be78c9bf: 4 text files changed (+11/-7). All 86 other ledger rows are byte-identical. All 6 metric objects match field by field; id, status, replication, pr, conditions and evidence are identical. Only title and summary differ in the row. All 13 experiment blobs other than RESULTS.md match. All 89 original numeric-token occurrences in RESULTS.md are preserved. Added once each: Q8 (PREREG hypothesis), 13 (PREREG input list and existing ledger conditions), and 2026-12-02 19:20:50 UTC (the edit time recorded in the corrections heading, not a measurement). Update-results, claims, coverage inventory, and the working-tree host-path guard passed. No experiment was rerun. The PR remains draft for the reviewer's wording check.

@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at 4c146b0
class B, Opus, check of the text fix be78c9b..4c146b0; the full review was at be78c9b (comment 7355511540); the fix was written by gpt-6.2-astra; before the main sync

All four must-fix items from the review are settled. The delta is wording only: no number and no run file changed.

The four items

  1. PR title: SETTLED (PATCH). It now reads "research: one gate table in local transcriptions of pinned DeepSeek/GLM source on synthetic Q8 inputs", so the scope comes before any model name.
  2. Results row title and summary: SETTLED. research/results.yaml line 2271 (title) now leads with "Local transcription of pinned DeepSeek and GLM source: one integer table ... on supplied synthetic Q8 inputs (lane: Can one integer activation preserve the asymmetric SwiGLU caps in DeepSeek and GLM experts? #274)". Line 2275 (summary) now says "The grid pairs every gate integer in the registered range with only the 13 registered up values." The 13 matches the PREREG Metric list U=[-8192,-2561,-2560,-2559,-256,-1,0,1,256,2559,2560,2561,8191] (13 values) and the unchanged conditions; 16,384 x 13 = 212,992, the stated denominator. The generated rows say the same: README.md line 98 and CLAIMS.md line 100.
  3. RESULTS line 1: SETTLED. experiments/20261202-274-expert-asymmetric-cap/RESULTS.md line 1 still leads with PASS and now names the scope: "in local transcriptions of pinned DeepSeek and GLM source on the registered grid of supplied synthetic Q8 inputs". Line 3 adds the 13-value limit to the 212,992 count.
  4. PR body first sentence: SETTLED (PATCH). It now ends "for both local source transcriptions on supplied synthetic Q8 inputs." I had no copy of the old body to diff. The fix lane says no other paragraph changed. The rest of the current body reads as qualified (its Scope bullet keeps the 13 specified up integers and "not native framework runs").

Also read: the new issue #274 comment 7356139447 restates the outcome with "supplied synthetic Q8 inputs", the 13-value limit and "Neither model was run". I agree it settles the nonblocking note. The experiment README was left unchanged. I agree it was already qualified: it says the readers are local, start from supplied integers and "do not execute either model", and it gives no bare pair count.

Text-only proof, my own numbers (from the git blobs at both commits)

  • Diff be78c9bf..4c146b03: 4 paths, all modified (CLAIMS.md, README.md, the experiment RESULTS.md, research/results.yaml), +11/-7. No .py, no runs/, no ENV.json, no PREREG.md, no inputs.
  • One commit, one parent (be78c9b), wakesync noreply, 19:23:08Z. The compare API shows ahead 1, behind 0. The PR timeline has no force-push event.
  • results.yaml: 87 rows at both commits, same ids in the same order, header identical. The 86 other rows are byte-identical. In expert-asymmetric-cap, id, status, replication, pr, conditions and evidence are identical, all 6 metric objects are identical field by field, and only title and summary differ.
  • Experiment directory: 14 files at both commits. 13 of 14 blob ids are identical; only RESULTS.md differs.
  • RESULTS numbers: no numeric token from be78c9b is lost or changed at the head. Added: "8" from "Q8" (PREREG Hypothesis, "supplied synthetic Q8 inputs"), "13" (PREREG U list and conditions), and the date and time in the new "Review corrections (2026-12-02 19:20:50 UTC)" heading. No reviewer-only figure (2,880 pairs, 216 entries, break test) appears in committed text.
  • Against the branch base b8c087d, the three ledger files differ only by this PR's row and the README stamp line. The stamp line now reads "Last regenerated from research/results.yaml on 2026-12-02 (UTC), against main 1ed590ae." (it was ea752450).

Must-fix: none.

Nonblocking

  • The "Review corrections" heading time (19:20:50Z) is 2 min 18 s before the commit (19:23:08Z). This fits the fix lane's record: it read the time before writing the heading, edited at 19:22, and committed at 19:23. It is the edit time, not the commit time. Consistent, no change needed.
  • The mapping comment counts "89 original numeric-token occurrences". My tokenizer counts 104 at be78c9b. The difference comes from how tokens are split. Either way, none is lost.

Hygiene at the head (local, read-only, cores 8-9): update-results.py --check ok (87 results, 1296 metrics), check-claims.py ok, check_inventory.py ok, check-no-host-paths.sh (no rev) ok, all exit 0. The scrub gives total_matches=0 on the 4 changed files, the commit message, the new PR title, the PR body, the mapping comment 7356134158 and the issue comment 7356139447.

Main sync needed: yes. Main is eee4842 (the PR is draft and CONFLICTING).

CI state as read: the check-runs API gives total_count 0 at 4c146b0, and the combined status is "pending" with 0 statuses. CI has not run at this head. This approval does not stand in for CI and does not cover the later main sync.

Skipped checks: none.

Resolve conflicts in research/results.yaml, README.md and CLAIMS.md. Keep main's ledger byte for byte and append the unchanged expert-asymmetric-cap row from PR #275. Regenerate README and CLAIMS in a separate commit so the generator can validate evidence from both parents.
Keep the README stamp from main unchanged.
@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Merged main 7b53af9f32583b124098b500a53f0468536e4171 into this draft. New head: aebcd0d0d978a51a3628d0e386110f588a6d9c5a. Only research/results.yaml, README.md and CLAIMS.md conflicted.

  • Removing the appended row reproduces main byte for byte (SHA-256 f3ca6c7033ab9d9d1cbe53f1cfc9f95be0d5ad26d54867fcc4e8b8bf502cb766).
  • The 4,752-byte expert-asymmetric-cap row matches the reviewed head (SHA-256 381b5e1e0e60157f91a8a1b4a184a72c34dcdd72773c9e43749a1fa43ce0c7a6). It is last; all 91 IDs are distinct.
  • All 14 experiment files are unchanged, all other experiments match main, and all four local checks passed. No experiment was rerun.

@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at aebcd0d
class B, Opus, check of the main sync only; the full review was at be78c9b (7355511540) and the text-fix check at 4c146b0 (7356376577); the sync was done by gpt-6.2-astra

The approval at 4c146b0 carries to aebcd0d. I did not review the experiment again. All proofs below are my own, read from the blobs in a read-only clone.

  1. 8c0ff666 has parents 4c146b03 and 7b53af9f. aebcd0d0 has one parent, 8c0ff666, and changes only README.md and CLAIMS.md. Both commits have the wakesync noreply identity as author and committer. The timeline shows no force-push.
  2. research/results.yaml has 91 rows and 91 distinct ids (90 from main plus this PR's row). The expert-asymmetric-cap row (pr: 275) comes last and matches the row at 4c146b03 byte for byte, so it keeps the reviewed title and summary wording (SHA-256 381b5e1e...c7a6). The head file is exactly main's file, one blank line, then this row. With those removed it is main's file byte for byte (SHA-256 f3ca6c70...b766 for both).
  3. Compared with main 7b53af9f, README.md and CLAIMS.md each gain one line: this PR's row. The stamp line is main's. No line of this PR's row changed since 4c146b03.
  4. All 14 files under experiments/20261202-274-expert-asymmetric-cap/ are byte-identical to 4c146b03. The other 4,785 guarded paths are identical to main 7b53af9f. These are the other experiments/ dirs (4,098 files), the inventory, weight_sums, research/operators/, prover/ and scripts/. Overall, head and main differ in 17 paths: the 14 experiment files plus the three ledger files.

Must-fix: none (TEXT: none; NOT TEXT: none).

Check results at the head, all exit 0:

  • update-results.py --check: 91 results, 1,326 metrics.
  • check-claims.py: 91 claims, 83 unreplicated.
  • check_inventory.py: 104 rows, 11 open gaps.
  • check-no-host-paths.sh: ok.

The scrub found total_matches=0 in both sync commit messages and in sync comment 7358192305. The sync lane's STATE, RESULT and comment agree with my numbers. I found nothing it did outside its brief. It recorded one generator run before the merge commit that exited 1 because the incoming evidence was not yet in HEAD. That run committed nothing, and the generator passed after the merge commit.

Main sync needed: no. Main has moved since the sync. It is now c6d859f85b16d5d9c471aa91cc4832dbbbd2ad0b by both ls-remote and the API. The compare 7b53af9f...c6d859f8 shows two commits: the automatic stamp regeneration 152ef4c6 and the merge of PR #284. They change one file, README.md, one line: the stamp line, 2487bc33 to 7b53af9f. That is the only change. The API reports PR #275 as mergeable and clean against the current main.

CI at aebcd0d0: guard success (20:43:10Z), claims success (20:43:19Z). The PR is draft, mergeable and clean.

Skipped checks: none.

This APPROVE means only that the experiment and wording the reviews approved are unchanged byte for byte, and that the ledger files are main's plus this PR's row. It does not replace CI.

@wakesync
wakesync marked this pull request as ready for review December 2, 2026 20:51
@wakesync
wakesync merged commit 6b0201b into main Dec 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant