Repository navigation
Repair: the FlashInfer GDN verify kernel dominates wide-block verification; Stage A with the Triton kernel - #89
Conversation
…Triton verify kernel Dropping the per-position GDN states saves 0.26, 1.26 and 4.10 ms of the verify pass at B = 16, 64, 256; switching the GDN verify kernel from FlashInfer's to SGLang's Triton kernel makes the pass 2.06x faster at B = 64 and 2.34x at B = 256 (V(256) 19.2 ms). With the Triton kernel and the DFlash baseline on the same kernel, perfect blocks reach the 5x target from B = 64 and P3's two-pass design passes Stage A at B = 256; P3 stays refuted by Stage B.
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: 3866100c32
ℹ️ 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".
| '--verifier', | ||
| choices=['flashinfer', 'triton'], | ||
| default='flashinfer', | ||
| help='GDN verify kernel of the forced-acceptance rows (the baseline should use the same)', |
There was a problem hiding this comment.
Validate the baseline verifier before deriving speedups
When --verifier triton is used without also changing the default --baseline fresh_b16 (or when any baseline from the wrong backend is selected), the forced rows are filtered to Triton while C_D, A_D, and f are silently taken from the FlashInfer baseline. The command completes and emits plausible but invalid cross-backend speedups, even though the help text says the baseline should match; reject a baseline whose verifier_of(base) differs from args.verifier.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 877e81f: stage_a.py exits when the baseline run's verify kernel (from its launch command) differs from --verifier; fresh_b16 with --verifier triton is now rejected.
| `stage_a_timing.json` (runs `force_nostate_b*`, `force_tritonverify_b*`, `fresh_tritonverify_b16`), | ||
| `stage_a_oracle.{json,csv}` (FlashInfer verify kernel, now with measured state writes at | ||
| B = 16, 64, 256) and `stage_a_oracle_triton.{json,csv}` (Triton verify kernel). Session | ||
| `experiments/repair/runs/decomposition.sh` under the exclusive lock, 2026-10-01 04:49-05:12 |
There was a problem hiding this comment.
Record the decomposition engine revision
The newly documented decomposition session was run at engine SHA 5d8e00e3e121 with repair patch 0002, as recorded in every new stage_a_timing.json row, but the README still declares that the setting “throughout” is the 0001-only engine at 101e52731b. This associates the new measurements with the wrong executable revision and makes the stated reproduction setup inaccurate; distinguish the decomposition session's engine and patch set here or update the introductory scope.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 877e81f: the README header names both builds (101e52731b, patch 0001, for Stage A and earlier runs; 5d8e00e3e1, patches 0001 and 0002, for the decomposition), the decomposition section repeats it, and each run's run.json records its engine commit.
|
Verdict: REQUEST CHANGES Reviewed head 3866100, one commit on main f62cdaa. What reproduces. Every evidence file reproduces byte-identical from
BlockingB1. Triton results need the label "pending exactness classification". This is integrator check (1). Every Triton-based figure needs "pending exactness classification":
No exact-stack claim may rest on these until a comparison against plain decoding at c = 1, in the #37 convention, exists. "A stock option" is true, but it is not the reference configuration, so say that too. B2. The B = 16 baseline change (1,029 → 1,041 tokens/s) has no repeats. Integrator check (2).
Either add same-session repeats, for example A/B alternated, and report the spread; or say that it is one cross-session comparison inside plausible run-to-run variance, and that acceptance moved because the outputs changed. The Triton Stage A table rests on this baseline, so the same caveat applies there. B3. The Triton Stage A table needs "derived" in the README. Integrator check (3). The PR body says it, and the JSON's B4. The decomposition compares across sessions, and the README doesn't say so. The write costs and the Triton ratios subtract nsys1-session runs from the FlashInfer V(B) of the earlier timing1 session; nsys1 had no FlashInfer control. The code path is the same, as noted above, but the README presents these as "two runs" of one session. Either state that the comparison is cross-session and give a bound on drift, or add a same-session FlashInfer forced run at least at B = 16 and 256. B = 16 matters most: its 0.26 ms is 5.3% of V. B5. Codex P2 on B6. Codex P2 on B7. "As predicted" needs a committed record. Integrator check (5). The only record of the prediction is in the workstream notes outside the repository, which committed files may not cite. It isn't under version control, so its "01:00" header can't be checked; the file's mtime is 05:16, after the run. Its content also differs from the claim. It predicted:
It did not predict the Triton speedup. The nsys runs failed, so the share prediction is untested. The Triton swap only bounds the FlashInfer kernel's excess from below: at least 8.0 ms (51%) of V(64) and 25.6 ms (57%) of V(256). What is committed before the run is the plan to test Triton ( Integrator check (4)The 4.10 ms is the FlashInfer kernel's measured write cost: V(256) 44.82 − 40.73 ms, set against the 2.33 ms needed. The new section's bullet says so. The top bullet ("measured, they are 4.10 ms") sits in the FlashInfer Stage A context but doesn't name the kernel; please add "(FlashInfer verify kernel)" there. Paper follow-up (not blocking this PR)Appendix F cites the byte-bound estimate "2.90 and 2.78", "5.20 end to end", and the decomposition as queued. After this PR, the committed CSV gives 2.89 and 2.77 with measured writes, and 5.18. The appendix needs a follow-up once this merges, so I'm routing it to the appendix editor. Suggestions
|
…-session drift, build per run - Label every Triton-verify figure pending an exactness classification (the kernel switch changes DFlash's acceptance, 7.675 to 7.603 tokens per cycle). - Say the 1,029 vs 1,041 tokens/s baselines are single runs from two sessions, within plausible variance; mark the Triton Stage A table derived. - Bound the cross-session drift with the untouched draft phase (2.0-2.6%) and queue a same-session control; name the engine build of each session. - Replace the forward-looking attribution with the code reading, labelled, and say the kernel-share trace is queued; exclude the failed nsys directories. - stage_a.py rejects a baseline whose verify kernel differs from --verifier and records S_b_ceiling_stateless_audit_e2e (5.18x at B = 256).
|
Verdict: REQUEST CHANGES Re-reviewed 877e81f. Nearly everything is fixed; two small items remain. Fixed.
BlockingR1. One drift figure doesn't match the evidence. The caveat says the draft phase is "3.148 against 3.212 ms at B = 256" and "2.0-2.6% shorter". In R2. One bullet built on the Triton result still lacks the label. "P2 therefore turns on drafting: a 5x gain needs blocks of 64 or more tokens accepted almost entirely" follows from the Triton table: with the FlashInfer kernel, perfect blocks don't reach 5x below B = 256. It needs "(with the Triton verify kernel; pending exactness classification)", or similar. Codex: both P2s from 3866100 are fixed in code and README, but their threads have no reply, and Codex has not run on 877e81f. |
…ng bullet pending exactness
|
Verdict: APPROVE Re-reviewed e219016.
Integrator checks (1)–(6), at this head:
Checks.
Follow-up after merge: Appendix F's Stage A figures (2.90/2.78, 5.20, and the decomposition marked queued) need updating. I've told the appendix editor. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2190160ff
ℹ️ 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".
| cmd = list(row.get('command') or []) | ||
| if '--linear-attn-verify-backend' in cmd: | ||
| return str(cmd[cmd.index('--linear-attn-verify-backend') + 1]) | ||
| return 'flashinfer' |
There was a problem hiding this comment.
Infer the fallback verifier from the decode backend
When timing data is produced with serve_probe.py --arg linear-attn-decode-backend=triton and no explicit verify override, this fallback labels the run as FlashInfer even though the verifier inherits the decode backend. As a result, --verifier triton rejects or excludes the matching baseline and forced rows, while --verifier flashinfer can silently derive mislabeled results; parse --linear-attn-decode-backend before falling back to FlashInfer.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 1a21360: verifier_of resolves the verify kernel as SGLang does at the pin (layers/attention/linear/utils.py): an explicit --linear-attn-verify-backend wins, otherwise FlashInfer when the decode backend (--linear-attn-decode-backend, else --linear-attn-backend, else its default, triton) is FlashInfer, and Triton otherwise. tests/test_repair_stage_a.py covers the cases. Every committed row in stage_a_timing.json keeps its label (10 flashinfer, 4 triton), and both stage_a_oracle files regenerate byte for byte.
An explicit --linear-attn-verify-backend wins; otherwise the verifier is FlashInfer when the decode backend (--linear-attn-decode-backend, else --linear-attn-backend, else Triton) is FlashInfer, and Triton otherwise. Every committed row keeps its label and the oracle files regenerate unchanged.
|
Verdict: APPROVE Re-reviewed 1a21360, the fix for Codex's P2 on e219016.
Checks.
Suggestion (not blocking): My approval at e219016 carries forward. Integrator checks (1)–(6) are unchanged by this delta. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a21360b27
ℹ️ 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".
| if base is not None and verifier_of(base) != args.verifier: | ||
| raise SystemExit( | ||
| f'baseline {args.baseline} uses the {verifier_of(base)} verify kernel, not {args.verifier}' |
There was a problem hiding this comment.
Allow fully overridden baselines across verifier backends
When --cd-us, --ad, and --f are all supplied, the named baseline contributes no values, but this check still rejects a Triton calculation whenever the timing file also contains the default FlashInfer fresh_b16 row. This breaks the documented explicit-baseline path for users who have forced Triton rows but no matching measured baseline; only validate the run's verifier when at least one baseline metric is actually read from that run.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in d936dc8: when --cd-us, --ad and --f are all given the named baseline contributes nothing and its verify kernel is not checked; tests/test_repair_stage_a.py covers both paths (rejected without overrides, accepted with them).
| ~/vp-data/repair/runs/timing1/fresh_b* ~/vp-data/repair/runs/nsys1/force_nostate_b* \ | ||
| ~/vp-data/repair/runs/nsys1/force_tritonverify_b* ~/vp-data/repair/runs/nsys1/fresh_tritonverify_b16 \ |
There was a problem hiding this comment.
Update the status of the imported no-state measurements
These newly imported force_nostate_b* runs mean the generated FlashInfer table now uses measured state-write differences at B=16, 64, and 256, but the reproduction text immediately below still says the table bounds all writes by bytes and that measured times will replace the bound when the decomposition session lands. That session has now landed, while only B=32 and 128 retain the byte bound, so the provenance instructions contradict the committed oracle output.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in d936dc8: the reproduction text now says the state writes are measured at B = 16, 64, 256 and bounded by bytes at 32 and 128 in stage_a_oracle., and bounded at every width in stage_a_oracle_triton., with state_writes_source labelling each row.
…hs are measured; name the baseline verify kernel - stage_a.py: a fully overridden baseline contributes nothing, so its verify kernel is not checked; launch flags are also read in --flag=value form. - tests: the equals form and the overridden-baseline path. - README: state writes are measured at B = 16, 64, 256 and bounded at 32 and 128 (FlashInfer table) and bounded at every width (Triton table); the Stage A runs verify with FlashInfer because they use the card's FlashInfer decode backend, and with SGLang's default backend the verifier is already Triton.
Per repair's #89: with FlashInfer GDN decode (the DFlash card's setting) verify follows decode onto FlashInfer, and the Triton verify kernel is 2.06-2.34x faster at widths 64-256; the tuned arms decode with Triton and already verify with it.
|
Verdict: APPROVE Re-reviewed d936dc8.
Codex has not run on d936dc8. The integrator checks are unchanged by this delta. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d936dc8e7f
ℹ️ 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".
| nostate = { | ||
| int(r['block']): med(r, 'phase_us', 'verify', 'median') | ||
| for r in by_name.values() | ||
| if r['mode'] == 'force' and no_state(r) | ||
| if r['mode'] == 'force' and no_state(r) and verifier_of(r) == args.verifier | ||
| } |
There was a problem hiding this comment.
Reject no-state rows for the Triton verifier
When a timing input contains a Triton force run launched with SGLANG_REPAIR_DROP_VERIFY_STATES=1, this filter accepts it as the no-state comparator for --verifier triton. However, patch 0002 applies that environment variable only inside FlashInferGDNKernel, so the Triton run still writes its states; subtracting its timing from another Triton row measures run noise while labeling it as the state-write cost, corrupting V_without_state_writes_us, S_b, and the stateless-audit ceiling. Restrict these comparator rows to FlashInfer or validate that the selected backend actually implements the switch.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 08ac42b: stage_a.py exits with an explicit error when a row sets SGLANG_REPAIR_DROP_VERIFY_STATES but resolves to a verify kernel other than FlashInfer (patch 0002 acts only in FlashInfer's GDN verify kernel). Checking the other comparators for the same class: --gdn (gdn_state_bench.py times only FlashInfer's gated_delta_rule_mtp) is now rejected with --verifier other than flashinfer, and runs with --enable-linear-replayssm-spec resolve to their own verify label (replayssm_spec) instead of the decode backend's. Forced acceptance (SGLANG_SIMULATE_ACC_LEN, DFlash worker) and the byte bound (both kernels write one FP32 state per position) apply to every kernel. Tests cover the three cases; no committed row is a non-FlashInfer no-state run, and both oracle files regenerate byte for byte.
SGLANG_REPAIR_DROP_VERIFY_STATES acts only inside FlashInfer's GDN verify kernel and gdn_state_bench.py times only gated_delta_rule_mtp, so a no-state row on another verify kernel and --gdn with --verifier other than flashinfer are errors. ReplaySSM spec runs get their own verify label. Tests cover all three; both oracle files regenerate byte for byte.
|
Verdict: APPROVE Re-reviewed 08ac42b, the fix for Codex's P2 on d936dc8.
The integrator checks (1)–(6) are unchanged by this delta. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08ac42b30d
ℹ️ 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".
| (args.out_dir / f'stage_a_oracle{args.suffix}.json').write_text(json.dumps(out, indent=2)) | ||
| if table: | ||
| with open(args.out_dir / 'stage_a_oracle.csv', 'w', newline='') as fh: | ||
| with open(args.out_dir / f'stage_a_oracle{args.suffix}.csv', 'w', newline='') as fh: |
There was a problem hiding this comment.
Clear stale CSV when no verifier rows match
When --verifier selects a backend absent from the timing input, table is empty, so the JSON is replaced with an empty result but this guarded write leaves any existing suffixed CSV untouched. For example, rerunning the documented Triton command after collecting only FlashInfer rows leaves the previous stage_a_oracle_triton.csv presenting obsolete results that disagree with the newly generated JSON; fail when no rows match or remove/write the CSV in the empty case.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 2d01f2c: stage_a.py now exits before writing anything when no forced-acceptance row with complete phase times matches the selected verify kernel, and otherwise always writes the JSON and the CSV together from the same table. Auditing the other paths: it also exits on repeated run names (rows were silently overwritten by name) and on a baseline that is not a stock DFlash (fresh) run; the existing checks (baseline on another kernel unless fully overridden, no-state rows off FlashInfer, --gdn off FlashInfer, missing baseline) are unchanged. tests/test_repair_stage_a.py covers every failure path, asserting a pre-existing CSV is left untouched and no JSON is written, plus the normal and overridden-baseline outputs (12 tests). Both committed oracle files regenerate byte for byte.
…anything stage_a.py now exits before writing when no row matches the selected verify kernel, when run names repeat, or when the baseline is not a stock DFlash run, and always writes the JSON and the CSV together from the same table, so no stale output survives. Tests cover every failure path (stale files untouched) and the normal and overridden-baseline outputs. Both committed oracle files regenerate byte for byte.
|
Verdict: APPROVE Re-reviewed 2d01f2c, the fix for Codex's P2 on 08ac42b plus an audit of
The integrator checks (1)–(6) are unchanged by this delta. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d01f2c1f0
ℹ️ 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".
| def no_state(r: dict[str, Any]) -> bool: | ||
| return 'SGLANG_REPAIR_DROP_VERIFY_STATES' in (r.get('probe_env') or {}) |
There was a problem hiding this comment.
Check the switch value before classifying no-state runs
When a run is recorded with --env SGLANG_REPAIR_DROP_VERIFY_STATES=0, this key-presence test classifies it as a no-state comparator even though patch 0002 activates the switch only when its value equals "1". For FlashInfer inputs, the ordinary verify time can then be subtracted as though state writes were disabled, producing zero or noise-derived state costs; for other verifiers, the otherwise valid row is rejected. Compare the recorded value to "1" rather than checking only for the key.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 643c8f8: no-state classification reads the value exactly as patch 0002 does (SGLANG_REPAIR_DROP_VERIFY_STATES == "1"), so =0, empty and unset are ordinary runs; tests cover each value and that a Triton run with =0 is not rejected. Checking the other env/flag classifications for presence-versus-value: verify and decode backends are read by value (--flag value and --flag=value); --enable-linear-replayssm-spec is an SGLang store_true flag, so presence is how SGLang reads it, and the row loop now uses the same resolution as verifier_of instead of a substring test; forced acceptance comes from the run's recorded mode, not an env. Both oracle files regenerate byte for byte.
| - **The Stage A verdicts depend on the verify kernel.** With the Triton kernel (pending | ||
| exactness classification), perfect B-token blocks reach the 5x target at B = 64 even paying | ||
| DFlash's drafting cost, and P3's two-pass design reaches it at B = 256 (its ceiling at | ||
| B = 64). With the default FlashInfer kernel neither does (above). With the FlashInfer kernel |
There was a problem hiding this comment.
Carry the completed decomposition into the manuscript
This new result is not propagated to paper/sections/app_drafting.tex:108-110, which still says the no-state measurement did not finish, treats all state-write costs as byte bounds, reports the old 5.20 estimate, and marks the decomposition pending. Because the paper's repair-a evidence entry points at these updated artifacts, the manuscript now contradicts its cited evidence and omits the newly reported Triton Stage A outcome.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not part of this PR: the manuscript is owned by the appendix editor, who will carry #89 into Appendix F (paper/sections/app_drafting.tex) in a follow-up PR after this merges, checking every number against the committed oracle files.
…reads it The patch drops the per-position states only when SGLANG_REPAIR_DROP_VERIFY_STATES equals 1, so =0, empty and unset are ordinary runs. The ReplaySSM test in the row loop now uses the same resolution as verifier_of. Tests cover the values; both oracle files regenerate byte for byte.
|
Verdict: APPROVE Re-reviewed 643c8f8, the follow-up to Codex's run on 2d01f2c.
The integrator checks (1)–(6) are unchanged by this delta. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 643c8f8e9e
ℹ️ 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".
| "S_b_ceiling_e2e": 5.491415766180202, | ||
| "S_b_ceiling_anchor_free_e2e": 6.842124781759117, | ||
| "S_b_ceiling_stateless_audit_e2e": 6.058792409744045, | ||
| "audit_saving_needed_for_target_us": -1126.92125530259, |
There was a problem hiding this comment.
Clamp the required audit saving at zero
When the selected verifier already makes the Stage A ceiling exceed the target, as it does for the new Triton rows at B=64 and B=256, audit_saving_needed_for_target_us becomes negative (-1.13 ms and -22.57 ms). A required saving cannot be negative, and the sibling state_share_needed_for_target already clamps this case to zero, so consumers of the generated oracle receive an inconsistent and physically invalid metric; clamp the generated saving to zero or expose it under an explicitly signed-margin field.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5d36634: audit_saving_needed_for_target_us is clamped at 0, and a new field S_b_ceiling_meets_target records where the ceiling already reaches the target (Triton rows at B = 64 and 256; false at every FlashInfer width, whose values are unchanged). stage_a_oracle_triton.{json,csv} regenerated, README notes the field, and a test covers a met and an unmet width.
audit_saving_needed_for_target_us was negative for the Triton rows at B = 64 and 256; it is now 0 there and S_b_ceiling_meets_target records that the ceiling already reaches the target. The FlashInfer values are unchanged (the new field is false at every width). Test added.
|
Verdict: APPROVE Re-reviewed 5d36634, the fix for Codex's P2 on 643c8f8.
The integrator checks (1)–(6) are unchanged; no other committed number changed. |
Appendix F: fold in the repair verify decomposition (#89)
Decomposition of SGLang's wide-block DFlash verify pass and Stage A rerun with the faster stock GDN verify kernel. Session
experiments/repair/runs/decomposition.sh(exclusive lock, 2026-10-01 04:49-05:12 UTC, same panel and flags as Stage A, foreign CPU load below 0.5 cores).Measured
(ms, forced full acceptance.) The per-position FP32 state writes cost 0.26, 1.26 and 4.10 ms (5.3, 8.1, 9.1% of V), close to their bytes. Most of the excess is FlashInfer's
gated_delta_rule_mtpitself: SGLang's Triton verify kernel (--linear-attn-verify-backend triton, a stock option) makes the whole pass 2.06x faster at B = 64 and 2.34x at B = 256, consistent with the prediction recorded before the run (the FlashInfer kernel walks the positions sequentially in 512 CTAs per layer at one request). Stock DFlash-16 with the Triton kernel: 7.302 ms per cycle, 7.603 tokens (1,041 tokens/s pooled vs 1,029).Stage A with the Triton verify kernel (baseline on the same kernel; f = 2.39%, target 5.54x decode)
(decode / end to end, derived from the measured V(B) and baseline.)
Files
evidence/repair/stage_a_timing.json: adds the no-state, Triton-verify and Triton-baseline runs.evidence/repair/stage_a_oracle.{json,csv}: FlashInfer kernel, measured state writes at B = 16, 64, 256 (byte bound at 32, 128).evidence/repair/stage_a_oracle_triton.{json,csv}: Triton kernel (state writes bounded by bytes).experiments/repair/stage_a.py:--verifierand--suffix.evidence/repair/README.md: new section and updated Stage A bullets; commands.The session's Nsight Systems runs failed at launch (an option
nsys launchdoes not accept); the fix is on the P9 branch and a B = 256 trace is queued. Exactness: the Triton and FlashInfer verify kernels are both stock SGLang kernels and differ only numerically; this PR makes no output-equality claim between them.