Repository navigation
Sensitivity workload: dated rule refinement, arm list derived from results - #70
Conversation
bench.sensitivity_arms applies the declared rule to the confirmation frontier.csv (best mean y per family at c=32 and 128, invalid points excluded, both arms within 2%, matched plain baselines) and writes plan.txt and selection.json; sensitivity.sh runs that plan. The README declaration records the rule's refinement in 6b25b9f (03:47 UTC), before any sensitivity run.
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. |
|
Verdict: REQUEST CHANGES Reviewed head 2a7cb38, one commit on main. Both #66 follow-ups are present. The selection script does not yet restrict itself to the three confirmation sessions, and the run script checks that a plan exists but not that it is committed. Checked and correct
BlockingB1. The ranking is not restricted to the three confirmation sessions (
B2.
|
Address #70 review. bench.sensitivity_arms averages y from points.csv over confirm-r0, -r1 and -r2 and requires a valid point in each, so an arm run only in the supplementary hold, or with an invalid point in any session, is listed as ineligible instead of competing on fewer runs; selection.json records the sessions and the ineligible arms. sensitivity.sh refuses a plan or selection record that is untracked or differs from HEAD.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a7cb386d1
ℹ️ 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 label in known and int(row['n']) > 0 and math.isfinite(y): | ||
| means[(label, c)] = y |
There was a problem hiding this comment.
Exclude arms not attempted in all three sessions
When the confirmation evidence includes mtp-stockverify from bench/campaigns/confirm_supplementary.sh, that arm has only one attempted session, yet this predicate admits any row with one valid point. A sufficiently high single-run mean can therefore beat arms measured in all three confirm-r* sessions and determine the committed sensitivity workload, contrary to the declared three-session selection rule. Use n + n_invalid to require three attempted sessions while still excluding invalid points from the mean, or otherwise restrict candidates to the three-session campaign.
Useful? React with 👍 / 👎.
|
Verdict: APPROVE Re-reviewed head 7f92add (one commit on 2a7cb38). Both blocking items are fixed. The declaration is unchanged, so the fallback arm is not eligible.
|
Two changes requested before the first natural-length sensitivity run. No sensitivity run exists yet.
Rule refinement, dated. The declaration in
bench/README.md(b028c6c, 03:40 UTC) now notes the refinement made in 6b25b9f at 03:47 UTC, still before any sensitivity run:Arm list from the results, not by hand.
bench.sensitivity_armsreads the confirmationpoints.csv. It averages y over sessions confirm-r0, -r1 and -r2 only, and requires a valid point in each of the three. An arm run only in the supplementary hold (mtp-stockverify), or with an invalid point in any session, is therefore listed as ineligible rather than competing on fewer runs.For each family (MTP, DFlash) at c=32 and 128 it picks the arm or arms and adds the matched plain baseline at the same concurrency:
plain-tunedfor FlashInfer,plain-tuned-tritonfor Triton. It writes two files, both committed with the sensitivity evidence:plan.txt, onearm c [c ...]line per arm;selection.json, with the sessions, the per-family rankings, the choices and the ineligible arms.campaigns/sensitivity.sh <session> [plan]refuses aplan.txtorselection.jsonthat is untracked or differs from HEAD. Otherwise it runs the plan, reversed in odd sessions. The script fails if:Checks:
pytest tests/test_bench_harness.py(34 passed; the rule's test covers a tie, an arm with one invalid session, a supplementary-only arm and both backends), pre-commit clean.python -m bench.sensitivity_arms evidence/bench/confirm/points.csv --out evidence/bench/sensitivity scripts/gpu_lock.sh -x bench/campaigns/natural_lengths_confirm.sh scripts/gpu_lock.sh -x bench/campaigns/sensitivity.sh 0 # then 1, 2