Repository navigation
Moonshot P4b: the served A/B rejects P4's 1.10x claim (1.0042x, 95% interval 1.0026-1.0058) - #191
Conversation
…026-1.0058) Run 20261002T084035Z of run_p4b.sh (main 14c6dd1, engine c29a91692b) passed every declared validity check: 128 running in both arms of its admission preflight, 24 decode windows at exactly 128 in every arm, pools 129 / 655,360 / 132, the dispatch line only in exact-replay logs, foreign CPU 0.19-0.26 cores. Server decode rate at 128 running: exact replay / dense = 1.0042 (1.0026-1.0058) over four A B B A pairs, so the throughput claim is rejected under the declared rule; client y 1.0014. The output probe at concurrency 1 found no difference (48/48 sequences; the dense control also 48/48). Commits the validator's verdict, per-arm and probe tables, and the reused tile-32/16 kernel checks and tile-16 bench, with the command behind each in README section 4. README 2c records the result, the derived 1.07x this context would allow from the kernel bench, and a code-reading hypothesis (host syncs in SGLang's ReplaySSM cursor bookkeeping) for why about 6.5% of the kernel saving reached the server.
|
@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. |
|
Codex Review: Didn't find any major issues. Swish! 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: REQUEST CHANGES at e6ad7c7 I reviewed e6ad7c7 in a fresh worktree against the declaration in 2c (07:12 UTC on 2026-10-01, the amendments of 08:19/08:22, 10:05, 10:11/10:16, 10:55 and 14:29, and the 21:20 preflight) and against the raw run. Everything holds except one wording point. What I checked:
Blocking:
Optional: |
…in dropped windows and diagnostic columns Reviewer 1 (#191): the ReplaySSM, FP16 and BF16 counts (22, 20, 17 of 48) are greedy-token matches; all three changed the top-20 log-probabilities. Also: each arm drops two windows at 128 (one recorded, plus the phase's first window), the arms CSV's server_* columns are bench diagnostics, and the score_* columns come from teacher-forced score mode.
|
Reviewer 1's item 1 is fixed in 223d330: the README and PR body now call the ReplaySSM, FP16 and BF16 counts (22, 20 and 17 of 48) greedy-token matches, and say all three changed the top-20 log-probabilities ( @codex review |
|
Verdict: APPROVE at 223d330 This is a delta review of e6ad7c7..223d330. The change is README-only (
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 01e7872051
ℹ️ 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".
| **Outcome.** The served test rejects P4's throughput claim. Its run, 20261002T084035Z, passed | ||
| every declared validity check. Over four dense/exact pairs at exactly 128 running requests, |
There was a problem hiding this comment.
Update the global P4 status to match the served result
This now declares that P4b produced a valid run and rejected the claim, but the repository overview still says the served A/B has no valid run and that both attempts were void (README.md:113-118), while the status tracker repeatedly says P4b is queued (TASKS.md:19, TASKS.md:47, TASKS.md:124, and TASKS.md:149). Once this commit is merged, readers and maintainers will receive mutually contradictory results and may continue scheduling an experiment that has already completed; update those project-wide status entries as part of this result commit.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in cf43f14. README.md's P4 entry now gives the P4b result (decode rate 1.0042x dense, 95% interval 1.0026-1.0058, at 128 running; claim rejected; probe found no difference; three earlier attempts void). TASKS.md's H7 row, the moonshot row, the throughput item, the P4 item (now done) and the FIFO line all say P4b ran.
Codex on #191: README.md's overview said the served A/B had no valid run, and TASKS.md said P4b was queued. Both now state the result: decode rate 1.0042x dense (95% interval 1.0026-1.0058) at 128 running, which rejects the 1.10x claim, with no output difference in the probe.
|
@codex review |
|
Verdict: APPROVE at cf43f14 Delta review of 223d330..cf43f14.
|
|
Codex Review: Didn't find any major issues. Swish! 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". |
Research notes: P4's served test rejects the 1.10x claim (fold #191)
P4's served test has run, and it rejects the throughput claim. This PR commits the evidence and records the result in
evidence/moonshot/README.md2c, with the command behind every new file in section 4.Result
Run 20261002T084035Z (2026-10-02 08:40-09:11 UTC,
run_p4b.shfrom a clean checkout of main at 14c6dd1, engine c29a91692b) compared dense decoding with exact replay at ring length 4 in four A B B A A B B A pairs. The primary metric is the server's decode rate in windows at exactly 128 running requests (declared in 2c).The interval's upper end is below 1.10, so under the declared rule the claim is rejected. The validator's verdict reads: "throughput rejected; output probe found no difference (this does not establish end-to-end exactness; bit-exactness is shown at kernel level)". All four pairs favour exact replay, by 0.31 to 0.55%.
The output probe at concurrency 1 (48 prompts, 256 greedy tokens) found exact replay identical to dense decoding in every token and top-20 log-probability, as was the dense control. SGLang's ReplaySSM kept the dense server's greedy tokens in 22 of 48 sequences, FP16 state in 20 and BF16 state in 17, and all three changed the top-20 log-probabilities (
gen_kl_meanabove 0 in each), so the probe does detect state rounding of this kind.Validity
The run is valid under every declared rule:
validate_p4_ab.pypassed every check:p4_ab_verdict.json.Measured against derived
The derived expectation before the run was about 1.08x at a 418-token context, less at 2,048.
The README gives a hypothesis for the gap, from reading the code; it is not measured. With
--enable-linear-replayssm, SGLang's stock ring-cursor bookkeeping runs before every decode-graph replay. It uses a boolean-mask selection andtorch.uniqueon GPU tensors, and both force a host-device sync, which would idle the GPU under the overlap scheduler. A trace of both arms would test this. None has been run, and the verdict does not depend on it.Files
evidence/moonshot/p4_ab_verdict.json: the validator's output, a byte-identical copy.p4_ab_arms.csv: per-arm client numbers and foreign CPU (summarise.py sweeps).p4_output_probe.csv: the probe per configuration (summarise.py quality).gdn_exact_replay_check_L4_bv32.json,_L4_bv16.jsonandgdn_exact_replay_bench_bv16.json: the reused kernel steps from run 20261001T082738Z at the same engine.evidence/moonshot/README.md: 2c (outcome, served result), section 3 row 4 and section 4 commands;experiments/moonshot/README.md: the evidence column;evidence/README.md.Raw outputs stay in
~/vp-data/moonshot/(p4_ab_20261002T084035Z,quality_exact_20261002T084035Z,p4_admission_20261002T084035Z, logp4b_129.log).Checks
pre-commit run --files <changed files>: passed.scripts/check_host_identity.shon the changed files: passed.