Repository navigation
Drafter: card gate, P6 support screen, panel-v2 baselines and output equality - #51
Conversation
…runs serve_run.py samples CPU use by processes outside the run while its clients run (bench.server.foreign_cpu) and writes cpu_load.json, flagged when the mean exceeds two cores; servers start with --stream-interval 4, the team default for served comparisons.
A selector over the public drafter's frozen top-16 candidates could at most raise tokens per verify cycle from 6.20 to 10.14 on the panel (chat 3.99 to 7.17; top-2 alone 7.51 and 4.92). serve_run.py records foreign CPU load with bench.hostload.HostLoadSampler (bench.server.foreign_cpu was removed).
The trainers print 'final step reached' and their peak allocated GPU memory at the end of a segment; run_train_segments.sh keeps one segment log per run directory (so two arms can train at once) and can keep its first segment's queue place when restarted.
…st plain decoding Every divergence of DFlash (3.06 per 1,000 tokens) and MTP (2.50) from plain decoding at concurrency 1 is at an exact BF16 tie or a top-2 gap of at most 0.25 nats, the same noise floor as plain decoding at two batch sizes.
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. |
train_selector.py --objectives prefix,vat keeps one selector and optimizer per objective, identically initialized, and feeds every arm the same sequences, anchors and top-K candidates (computed once), which halves the target and drafter work and makes the objective comparison matched by construction.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a7c72f5dd
ℹ️ 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".
| `support/zlab_b16_panel_v1_summary.json`, `support/zlab_b16_panel_v1_survival.csv`: for each of | ||
| the 21,067 verify cycles of the block-16 panel-v1 trace, the drafter's block at that cycle's |
There was a problem hiding this comment.
Account for the selector-screen cycles that were omitted
The block-16 panel-v1 trace contains 21,274 cycles according to evidence/drafter/acceptance_summary.csv, but this report covers only 21,067 because support_screen.py drops cycles without 15 remaining realized tokens via prefix_len + block - 1 < len(sequence). Those 207 terminal cycles are therefore absent from every reported bound, and the resulting subset's engine rate (6.204) already differs from the full trace's pooled 6.184; presenting the result as covering the trace can overstate the selector bound unless terminal cycles are incorporated or the exclusion and its bias are explicitly reported.
Useful? React with 👍 / 👎.
| PYTHONPATH=~/vp-data/drafter/pylib:~/vp-data/drafter/src/SpecForge \ | ||
| scripts/gpu_lock.sh -s python experiments/drafter/support_screen.py \ |
There was a problem hiding this comment.
Source the SGLang environment before the GPU command
When this reproduction command is run from a fresh shell, its python is not guaranteed to be the pinned SGLang virtualenv and it lacks the CUDA 13 compatibility-library settings exported by scripts/sglang_env.sh, so the support screen can fail during imports or CUDA initialization. Source that script before invoking gpu_lock.sh, as required for every GPU/SGLang command on this host.
AGENTS.md reference: AGENTS.md:L7-L10
Useful? React with 👍 / 👎.
|
Verdict: REQUEST CHANGES Reviewed head 0d9b75c (59 behind main; a trial merge into main is clean and pre-commit passes). The gate and the screen are sound. The equality classification does not yet use the state workstream's margin convention, and two sentences claim more than the data show. BlockingB1. The equality classes use a different margin convention from #37's noise floor, and two DFlash divergences have no measured margin (
B2. The mechanism sentence goes beyond the evidence (README: "speculative verification computes the target at a different batch shape, and near-ties flip").
B3. The support screen's bound needs its scope (README and PR body: "the bound is 7.51 with the top 2 and 10.14 with the top 16").
Checked and correct
Suggestions (not blocking)
|
|
Verdict: REQUEST CHANGES Addendum: Codex finished after my review and left two comments. I agree with both, so they are blocking alongside B1-B3. B4 (Codex P2, README:82). The support screen drops the 207 terminal cycles without saying so.
B5 (Codex P1, README:94). The support-screen reproduction command does not source the SGLang environment.
|
…bound compare_outputs.py reuses experiments/state_safety/compare.py: both runs' margins between the two competing tokens (tie, one_ulp, near, large) when both recorded logprobs, otherwise a one-sided class from the reference run and 'unknown' when the test token is outside its top-k. The panel-v2 equality files are reclassified (DFlash: 47 ties and 28 within one BF16 spacing on the plain side, 2 unknown); the probe now records top-5 logprobs and run_equality.sh records them on every run for a two-sided rerun. The README states that U_K is an oracle bound per cycle on the stock trajectory, states the 207 excluded terminal cycles and the direction of their bias, and adds the environment setup to the support-screen command.
|
Verdict: APPROVE This re-review covers head 02a5d3b (with main merged in). B1-B5, including both Codex comments, are fixed.
Everything verified in my first review still holds: the card gate, the screen numbers, the panel-v2 baselines and disjointness, and the trainer. |
ca59ab7 to
02a5d3b
Compare
The card-reproduction gate (5.73 per request, 95% interval 5.36-6.13, against the card's 5.93), the second panel's DFlash and MTP acceptance, one-sided output-equality margins for both drafters, and the P6 support screen (oracle bound 10.14 against 6.20 tokens per cycle) become register entries; the pending list keeps the cycle split, two-sided margins with a kernel trace, and the matched-objective comparison.
Drafter results since #40: both gates before training (the card-reproduction check and the P6 support screen), baselines on the evaluation panel, and output equality. Also the serving and trainer housekeeping they needed. No trained drafter yet: the training data is still waiting in the GPU queue.
Results (all correctness runs, no timing claims)
Card-reproduction gate (
evidence/drafter/card_gate_mtbench.json). The 80 MT-Bench first turns with the model card's settings (block 16, greedy, thinking on, up to 4,096 tokens, concurrency 1) give a mean accept length of 5.73 per request (bootstrap 95% interval 5.36-6.13; pooled 5.25). The card reports 5.93 on B200, so serving on sm_90 reproduces it. The panel's low chat acceptance comes from OASST1 prompts (4.06 per request), not MT-Bench (5.70).P6 support screen (
evidence/drafter/support/). At each block-16 verify cycle of the panel-v1 trace (21,067 of 21,274; the 207 cycles whose block runs past the output's end are excluded, which biases the kept subset's rates slightly upward: engine 6.204 kept vs 6.184 all), the drafter's top-K candidates are recomputed offline. U_K, the longest realized greedy prefix inside them, bounds any selector over the frozen candidates at that state. Averaged over the stock trajectory's cycles, tokens per cycle are 6.20 measured, 7.51 for U_2 and 10.14 for U_16; on chat, 3.99 measured and 7.17 for U_16. This is an oracle bound per cycle on the stock trajectory, not a bound on another selector's tokens per cycle. The offline recomputation matches the engine's drafted token at 97.4% of positions, with the same unary acceptance (6.200 vs 6.204).Panel-v2 baselines and equality (
evidence/drafter/panel_v2/). Tokens per cycle per request: public DFlash at block 16 6.81, native MTP (3 steps) 3.38. MTP accepts more at positions 1-3 (0.90, 0.86, 0.86 against 0.86, 0.79, 0.81). First divergences from plain decoding are classified with #37's convention (experiments/state_safety/compare.py). Only the plain run recorded logprobs, so the classes are one-sided: DFlash 3.06 per 1,000 compared tokens, 47 exact ties and 28 within one BF16 spacing on the plain side, 2 unknown (the speculative token is outside the plain top-2); MTP 2.50 per 1,000, 40 ties and 37 within one spacing. Plain at batch 1 vs 32 gives 3.42 per 1,000 (PR #37). A rerun with top-5 logprobs on every run, for both margins, is queued.Code
serve_run.py: records foreign CPU load withbench.hostload(cpu_load.json) and starts servers with--stream-interval 4.run_train_segments.shkeeps one segment log per run and can keep its queue place when restarted.run_gen_segment.sh: concurrency 160 atmem-fraction-static 0.25.The evaluation panel measures acceptance only and contains benchmark test problems; it is never used for quality claims.