Repository navigation
Moonshot P4b: void-run record; rerun with 655,360 KV tokens and a 128-admission preflight - #103
Conversation
…e the kernel steps The first run (20261001T082738Z) is void: every arm peaked at 127 running with one request queued under the pinned 360,448-token KV pool; README 2c records it without throughput numbers. For the rerun, p4_pools pins --max-total-tokens 655360 in both arms; run_p4b.sh adds a required admission preflight (each A/B arm's server takes 128 long prompts at OSL 512 and check_admission.py requires #running-req: 128), reuses the kernel checks, the tile-16 kernel bench and the FlashInfer timing from the void run (kernel-level, independent of server pools; the run stops unless the engine is still c29a91692b, and the reuse is recorded in p4b_<run id>.reused.json), and reruns the output probe and the A/B. The validator is unchanged.
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: APPROVE (provisional: Codex is running on a5422af, and I'll re-check it before merge), with one wording change to make before merge Reviewed head a5422af, committed 10:11:27 UTC, before the rerun was queued. The rerun is third in the GPU queue and has not started. What checks out
Change before merge (does not need to precede the rerun)The void-run record lists the void run's output probe as "no difference". The declaration says a void run's numbers are not reported, and the probe is rerun. Keep the statement that the kernel steps passed, since they are reused and that is their evidence. For the probe, say only that it completed and that its outcome is not reported because it is rerun. Otherwise a reader sees a result from a void run next to the rerun's. SuggestionMake "kernel scripts unchanged since e67feb1" a required check, next to the engine-commit gate ( |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a5422afe12
ℹ️ 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".
| peak = max( | ||
| (int(n) for n in RUNNING.findall(logs[0].read_text(errors='replace'))), default=0 | ||
| ) |
There was a problem hiding this comment.
Restrict the admission check to the 512-token point
When a server can admit 128 requests with short outputs but only 127 with the A/B's 512-token outputs, this whole-log peak still passes: bench.sweep first runs server_warmup() at concurrency 128 using the default --warmup-osl 128, before running the requested point at OSL 512. This is precisely the capacity-sensitive scenario the preflight is intended to catch, so inspect the concurrency-128 point's recorded log segment (or otherwise exclude the server warm-up) rather than scanning the complete server log.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 40064ea, before the rerun started. I cancelled the queued job, then pushed the fix and requeued at the same arrival. check_admission.py now takes the peak running count only over decode lines inside the measured point's AIPerf profiling phase (first request start to last request end, from profile_export_raw). Bench's server warm-up at --warmup-osl 128 no longer counts. tests/test_check_admission.py covers a warm-up at 128 with the phase at 127 (fails), the phase at 128 (passes) and a missing arm (fails). The README record no longer cites the void run's probe outcome.
|
Verdict: REQUEST CHANGES (this withdraws my provisional approval at a5422af) Codex finished on a5422af with a P2 on B1. Count only decode lines inside the measured point. Use the point's own log segment, or the AIPerf profiling phase as This has to land before the rerun starts; it is queued. My other points stand: the void-run probe wording, and the optional script-unchanged check. |
The whole-log peak included bench's server warm-up at a short output length, which a pool can admit at 128 while admitting only 127 long requests. check_admission.py now takes the peak over decode lines inside the measured point's AIPerf profiling phase; a test with a warm-up at 128 and a phase at 127 fails. README 2c drops the void run's probe outcome (only its kernel-level steps are reused) and dates this revision.
|
Verdict: APPROVE (provisional until Codex runs on 40064ea; I'll re-check before merge) Re-reviewed 40064ea, committed 10:16:29 UTC. The rerun has not started (
My earlier points on the pool change, the kernel-step reuse (scripts unchanged since e67feb1, engine gated) and the unchanged validator still hold. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
|
Codex finished on 40064ea with no comments (+1), so my provisional approval at 40064ea (#103 (comment)) now stands without conditions. The rerun started at 10:43:11 UTC on exactly this head: |
The P4b rerun amendment and the void-run record, committed before the rerun (a5422af,
10:11:27 UTC). The validator is unchanged.
Void first run (20261001T082738Z)
The validator ran once, from e37eed1 (identical to main), and stopped at
"plain+no_radix+p4_pools_r1: at most 127 requests running". No ratio was computed and no
verdict exists.
slots), and the batch peaked at 127 running with one request queued.
tokens per request and charges a shared-mamba cost per request in token units.
Rerun
p4_poolspins--max-total-tokens 655360in both arms. Running requests and mamba slotsstay at 128.
lever_sweep.pyon each A/B arm with the pinnedpools: 128 long prompts at OSL 512, so the reservation matches the A/B.
check_admission.pythen requires
#running-req: 128in each arm's log before the A/B runs.16, the tile-16 kernel bench and the FlashInfer verify timing. They are kernel-level on
synthetic inputs, so a server's pools cannot affect them. The rerun stops unless the engine
is still at c29a91692b, and it records the reuse in
p4b_<run id>.reused.json.Testing
check_admission.pywas tested on synthetic logs: peak 128 passes, 127 fails.pre-commit runpasses, and the lever, validator and probe tests pass (32 passed, 3 skipped).