Repository navigation
Moonshot: Codex follow-ups (exact-replay dispatch guard, TTFT aggregation, overlapped ceiling) - #44
Conversation
…on, overlapped ceiling - Codex P1 on patch 0007 (replayssm_beta never reaching the layer cache): checked on bd66ce343e, not reproduced. MambaPool.State declares replayssm_beta with a None default, the pool passes the local into both State constructors, and at_layer_idx slices every field; a test now pins this. Patch 0008 makes SGLANG_GDN_EXACT_REPLAY fail loudly when the ring is missing and logs the dispatch, so no run can use another kernel silently. - summarise.py reported TTFT from the last repeat only; it now averages the per-run medians. - ceilings.py labels its additive floor as the layer-serial model of the current engine and adds the overlapped hard roofline max((W + B s)/BW, B F/P) to ceilings.json and ceilings.csv.
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 30b4588 (4 behind main, no conflicts in the files it touches). The non-reproduction of Codex's P1 holds, the ceilings regenerate byte for byte, and Codex finished with no findings. One wording item blocks, because it reintroduces the claim that #36 removed from the paper. BlockingB1. The overlapped model is called a "hard roofline", but its compute-bound rows depend on the assumed tensor-core rate.
Checked and correct
Suggestions (not blocking)
|
…d BW Its compute-bound rows inherit the assumed tensor-core rate and BW is still an assumption, so it is not a hard bound. ceilings.json also records its B -> infinity limit min(BW/s, P/F) per stack (33.3k tok/s for plain FP32).
|
Verdict: APPROVE This re-review covers head 18f60f7. B1 is fixed.
Everything verified in my first review still holds: the non-reproduction of Codex's P1 at the pin, the 8-patch tree, the tests and the TTFT aggregation. |
…nel contract The paper now argues in dependency order: setting and what the stock engine computes, the five contracts and the R-stock gap and interval theorems, the certified low-precision head with its measured candidate sets and fallback shares, sampled decisions, transport and its measured failure, exactness under speculation, the stack, drafting and repair hypotheses, the serving protocol, related work, and a discussion that merges the hypothesis and failure tables. Secondary derivations, untested mechanisms, engine notes, CPU evidence, reproduction and attribution move to appendices. Evidence paths, pull request numbers and pending work move to an evidence register and a development record (Appendix A); the text cites [En] for committed evidence and [pending Dn] for designed work, with the scientific status in the prose. Integrates merged evidence: H2 on DFlash-4B (#35) and MTP-4B (#47), the overlapped roofline (#44), the frontend diagnosis (#46), the fifth contract witness (#41) and the precision counts after #43. Folds in the Codex items on #21 (quantiles over all rows), #32 (pooled tau, GSM8K series) and #36. Typography: Charter text, a plain title block with the repository URL, greyscale-safe figures, a new mechanism figure (Figure 1) replacing three overlapping flowcharts, a drift figure and transport table, two-panel candidate and acceptance figures, and tables reorganized instead of shrunk.
Follow-up to #27 addressing the Codex review comments and the reviewer's ceilings note.
How each comment was handled
replayssm_betaallocated as a local, never reaching the layercache; AttributeError in ordinary GDN serving). Checked on
bd66ce343ewith the seriesapplied; not reproduced.
MambaPool.Statealready declaresreplayssm_betawith aNonedefault (it existed for KDA speculative replay), the pool passes the local intoboth
StateandSpeculativeStateconstructors, andat_layer_idxslices every field.Ordinary serving with 0007 applied already ran (the plain arm in
evidence/moonshot/lever_sweeps_quick.csv, SGLang head233fe67ede). The comment doespoint at a real weakness: with the flag on but no ring, the old code fell through to
another kernel silently. New patch 0008 raises in that case and logs the first
exact-replay dispatch, and
tests/test_moonshot_levers.pypins the field and its slicing.No P4 result exists yet (the job is queued), so none ran without the exact kernel.
summarise.py: TTFT from the last repeat only. It now averages the per-runmedians across repeats.
max(W/BW, BF/P) + Bs/BWis now labelledas the layer-serial model of the current engine (not a hardware bound), and the overlapped
hard roofline
max((W + Bs)/BW, BF/P)is added toceilings.json,ceilings.csv, thedocstring and README 1.4 (plain FP32 32.1k tok/s and the full lossy stack 141.2k at
B = 2,048, against 23.7k and 78.9k layer-serial).
Testing
pre-commit runon the changed files passes.pytest tests/test_moonshot_levers.py: 2 passed, 3 skipped in the repo venv; 5 passed inthe SGLang venv with the engine/moonshot worktree on
PYTHONPATH.git amonbd66ce343eand reproduces the branch tree.python experiments/moonshot/ceilings.pyregenerates the committed JSON and CSV.