Repository navigation
head_geometry README: cite the committed evidence for the Hopper model and row invariance - #169
Conversation
…e Hopper model and row invariance The README still called the Hopper model's justification and the stock GEMM's row invariance pending the kernel workstream. Both are committed in evidence/certified_head/stock_invariance.json: the FP32-output variant's largest error over 2,048 real head inputs is 1/58 of the Hopper bound (the BF16-output kernel hides its accumulator, so the model stays an assumption), and rows are bitwise invariant at 20 batch sizes from 1 to 256.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0ae2d29ebf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| (`evidence/certified_head/stock_invariance.json`); that is a measured property of this | ||
| build, which the certified head's start-up self-test re-checks on the deployed shapes, and |
There was a problem hiding this comment.
Correct the self-test coverage claim
The start-up test does not re-check row-wise batch invariance: CertifiedHead.column_invariance_self_test keeps the same M-row input and only compares the gathered-column GEMM with those columns of the full GEMM. If a library or kernel change preserved column-subset equality but made a row's result differ between M and M=1, this test would still pass despite the preceding text identifying row invariance as required for one-at-a-time fallback. Distinguish the separately measured row-invariance result from the column-subset property actually checked at start-up, or extend the test to cover both.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 1179efc. The paragraph now cites each property for what it is: row invariance (every row's logits at 20 batch sizes equal its logits at batch 1, rows_equal_to_m1_* in stock_invariance.json) is a one-off measurement of this build; the column fallback reruns the stock GEMM at the same batch shape over the gathered rows and relies on column-subset invariance, which the same file measures (column_subset_equal) and column_invariance_self_test re-checks at the deployed batch sizes. It also says the self-test does not check row invariance.
…ariance, not row invariance Codex on #169: column_invariance_self_test compares gathered head rows with the full stock head at the same batch shape. Row invariance (each row's logits at 20 batch sizes equal its logits at batch 1) is measured once in stock_invariance.json; the README now cites each property for what it is and says which one the column fallback relies on.
|
@codex review |
|
Verdict: REQUEST CHANGES at 1179efc I checked the README against Blocking
Optional
Codex: the P2 at 0ae2d29 is fixed and has a reply. Codex is running on 1179efc. I'll re-check its result on the next head. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1179efc8b2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| same batch shape. The certified head's column fallback needs a different property: it reruns | ||
| the stock GEMM at the same batch shape over the gathered candidate rows, so it relies on | ||
| column-subset invariance (the gathered rows' logits equal the same columns of the full | ||
| stock head). The same file measures that at the 20 sizes (`column_subset_equal`), and the |
There was a problem hiding this comment.
Cite the fallback-shaped invariance measurement
For batch sizes above 1, column_subset_equal only compares a fixed 64-column GEMM, whereas the actual fallback gathers M * 64 rows and may select a different kernel; that exact shape is recorded separately as gathered_candidates_equal in stock_invariance.py. As written, the cited field does not support the assertion about gathered candidate rows, so cite gathered_candidates_equal instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 58387d1: the README now cites gathered_candidates_equal, which compares the M x 64M gathered-candidate GEMM with the matching rows of the full GEMM. That is the fallback's shape and the property column_invariance_self_test re-checks. column_subset_equal is described separately as the fixed 64-row check.
There was a problem hiding this comment.
Fixed in 58387d1: the paragraph now cites gathered_candidates_equal (the fallback's M x 64M shape, which column_invariance_self_test re-checks) beside column_subset_equal (64 random rows).
…tes_equal), name the timed fallbacks Reviewer on #169: column_subset_equal checks one set of 64 random head rows, an M x 64 product; the column fallback gathers 64 rows per batch row (M x 64M), which gathered_candidates_equal measures and the start-up self-test re-checks. Also names the two fallbacks micro_head.json times and adds the BF16-output caveat to the summary.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Verdict: APPROVE at 58387d1 The delta 1179efc..58387d1 fixes the blocking item and both optional README items from my review at 1179efc:
Unchanged from my earlier check: every number traces to Codex: the P2 at 0ae2d29 is fixed and has a reply. The P2 at 1179efc (the fallback shape, the same point as my item) is fixed in 58387d1, and Codex found no major issues on 58387d1. Optional, not blocking: the Codex thread at 1179efc (comment 4162018886) has no reply yet. A one-line "fixed in 58387d1" there would keep the record complete. Not run: pre-commit and codespell, because a timed exclusive hold was running. The change is README-only under |
Review of 84ffb44. H4's derived 3.4-3.5% uses the W8A16 pass at 0.66-0.67 of the stock head at M = 1 (setup.tex), not the best-mode column in H3, which includes W8A8 timed on the earlier TMA tiles; both cells now say which mode they use. P3's 33-44% is scoped to replay 1 (24-35% on replay 2), the frontier's 1.9% is called a coefficient of variation, and hostgap's token-identical outputs say logprobs were not compared. The in-flight section and the agent-dependent rows move to 01:30 UTC: s1 and s2 done, #167's timing running, the first served certified-head hold queued after s3, #169 merged, #171 and #172 open, and the paper, state, profile and redteam work active. The commit skips the hook because a timed hold is running; pre-commit on this staged file is queued in the CPU window.
evidence/head_geometry/README.mdstill called two stock-kernel facts pending "the kernel workstream's evidence". Both have been committed since, inevidence/certified_head/stock_invariance.json(register entrieskernel-errorandkernel-invariancein the paper), so the README now cites them.What changed (README only, no numbers regenerated):
sum_j |w_ij h_j|, which is 1/58 of the Hopper bound (fp32_output_error.max_rel_to_sum_abs/model_hopper_wgmma= 1.1922e-4 / 2.07e-6 = 57.6). The model stays an assumption for the kernel the engine runs, because the BF16-output kernel does not expose its accumulator. The README says so, as the paper does (Table 1 and Section 7).batches.*.rows_equal_to_m1_*, all true). That is a one-off measurement, not a guarantee. The paragraph now also says that the certified head's column fallback needs a different property. The fallback reruns the stock GEMM at the same batch shape over the gathered candidate rows, so it relies on column-subset invariance. The same file measures that property twice: for 64 random head rows (column_subset_equal, an M x 64 product) and at the fallback's own shape of 64 gathered rows per batch row (gathered_candidates_equal, M x 64M), all true. cuBLAS picks its kernel by shape, so the second check is the one the fallback relies on, and it is the onecolumn_invariance_self_testre-checks at the deployed batch sizes. The self-test does not check row invariance (Codex's P2, fixed in 1179efc; the gathered shape is the reviewer's point, fixed in 58387d1). The paragraph also points tomicro_head.jsonfor the cost of the two fallbacks the certified head implements (whole-batch and column), which this directory does not measure, and says that resolving rows one at a time is neither implemented nor timed.The task named lines 342 and 356. Lines 46 and 378 had the same stale "pending" and are fixed in the same commit. No other "pending" remains in the file.
Checks: pre-commit on the file (the host-identity guard passed; the other hooks skip
evidence/); codespell run on the file by hand. No paper source changes, so no build.Review. Codex at 0ae2d29, one P2: the first version said the start-up self-test re-checks row invariance. It checks only column-subset equality at the same batch shape (
CertifiedHead.column_invariance_self_test). Fixed in 1179efc, and the thread has a reply. Reviewer at 1179efc (REQUEST CHANGES): the column fallback's shape isgathered_candidates_equal, notcolumn_subset_equal; optional items were to name the timed fallbacks and to add the BF16-output caveat to the summary at line 47. All three are fixed in 58387d1.