Skip to content

Paper milestone 4: moonshot ceilings and first lever runs; P6 citation fixes - #36

Merged
SamMausberg merged 3 commits into
mainfrom
paper/results-3
Sep 30, 2026
Merged

SamMausberg merged 3 commits into
mainfrom
paper/results-3

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

This milestone adds the moonshot Phase 1 evidence (#27, evidence/moonshot/) to Section 10, and fixes two of P6's citations in Section 8.

Section 10: what changed

New Table 10: derived large-batch throughput ceilings per lever stack, from ceilings.json.

  • Plain decoding with FP32 state: 23.7k tokens/s.
  • With 16-bit state: 34.6k.
  • With replay, int8 state and FP8 weights, KV and head: 78.9k.
  • MTP with stock verification: 19.5k; with replayed verification: 34.3k.

The text marks the ceilings as derived. Two inputs are not measurements:

The text explains why no stack reaches 10x: 8.4 GFLOP per token caps an FP8 engine near 140k tokens/s.

New Figure 10. It shows the derived ceilings against batch size for four stacks (read from ceilings.csv), overlaid with served throughput from the single benchmark runs for plain decoding and FP16 state (read from lever_sweeps_quick.csv).

First lever runs, labelled as single runs:

Lever Result
FP16 recurrent state 1.24x at concurrency 128 (13.5k to 16.7k tokens/s), nothing at concurrency 1
FP8 KV cache 0.99x at these contexts
FP8 W8A8 weights CUTLASS route does not build on aarch64; Triton route shows no consistent gain (0.96-1.06x)

The first engine-only decode-step pass at batch 512 is also reported, and it is labelled noisy.

Other Section 10 changes:

  • The plain decode at concurrency 1 (281 tokens/s) is compared with its 451 tokens/s floor.
  • The lever table's status column and the "What did not work" subsection are filled in:
    • FP8 weights and FP8 KV: no gain in single runs;
    • BF16 state: the same bytes as FP16 and worse quality in published measurements on another GDN model;
    • 2:4 sparsity: unsupported;
    • the BF16-state verify-graph failure at 512 requests.
  • The claim ledger and RUNBOOK are updated.

Section 8 (P6)

  • DFlash 2's selector is described as having an unpublished training objective, as the drafter agent's check of the blog found.
  • The width-selection sentence cites CaDDTree and DSpark. Both are verified entries already in references.bib.

Validation

  • Every number was recomputed from ceilings.json, ceilings.csv, lever_sweeps_quick.csv and decode_ceiling_try1.csv.
  • The paper builds to 69 pages with no LaTeX or BibTeX warnings. I rendered Figure 10 and checked it.
  • The paper has no \underreview marks, no hidden citation comments and no private paths.
  • The profile section (Profile SGLang decode and MTP on GH200: attribution, head baseline, bytes per step #13) is still pending and comes next.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T21:03:55.127359Z 04d1513 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04d1513468

ℹ️ 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".

Comment thread paper/sections/stack.tex Outdated
because per-request traffic cannot hide behind itself while the weights stream once. $P$ is taken as 70\% of the BF16 and 60\% of the FP8 datasheet peaks, assumptions stated so that the ceilings can be recomputed. Two consequences follow before any measurement. As $B$ grows the throughput ceiling approaches $1/(F/P+s/\mathrm{BW})$, set by the per-request state and the arithmetic rather than the weights, so halving the state's bytes or writing it less often raises it while a faster head does not; and even with every byte removed, the arithmetic term caps an FP8 engine, so no single lever gives an order of magnitude at high concurrency. At batch one the weights bound the step, and the draft head and the target's weight bytes are the terms to cut.

\pending{moonshot: derived ceilings per lever stack and measured decode-step times to $B=1024$ per state and weight format; \nolinkurl{evidence/moonshot/ceilings.csv}, \nolinkurl{evidence/moonshot/decode_ceiling.csv}}
Table~\ref{tab:stack-ceilings} and Figure~\ref{fig:stack-ceilings} evaluate the floor for stacks of levers (\nolinkurl{evidence/moonshot/ceilings.json}). The bandwidth input is the profile workstream's measured read peak of 3.79~TB/s, taken here as an input whose evidence is \pending{profile}, and $P$ is assumed as above; the ceilings are derived, not measured. At batch one the weights set a floor of 2.22~ms per token (451 tokens/s); plain decoding measured 281 tokens/s at concurrency one in a single run, 62\% of that floor (\nolinkurl{evidence/moonshot/lever_sweeps_quick.csv}). At large batch the plain engine's ceiling is 23.7k tokens/s, because each request moves 114~MB per step. Halving the state bytes, writing the state less often and moving weights and cache to FP8 raise the ceiling to between 34k and 79k tokens/s; none reaches ten times the plain engine's, because 8.4~GFLOP per token cap an FP8 engine near 140k tokens/s even with every byte removed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the batch-one value from the stated floor

The stated 2.22 ms / 451 tokens/s value includes only W/BW, whereas Equation 10 and the CSV-backed figure include the per-request term as well: the baseline batch-one row in evidence/moonshot/ceilings.csv is 2.249 ms / 445 tokens/s. Consequently, the prose contradicts the figure it introduces, and 281 tokens/s is about 63% of that ceiling rather than 62%; use one definition consistently.

Useful? React with 👍 / 👎.

Comment thread paper/sections/appendix.tex Outdated
Write avoidance for the recurrent state (P4); cross-request sharing (P5) & Pending; P5 rejected in analysis & moonshot, profile\\
Stack levers, interaction matrix, exact and lossy frontiers (H4, H7) & Pending & moonshot, bench; \nolinkurl{evidence/moonshot/}, \nolinkurl{evidence/bench/}\\\bottomrule
Derived throughput ceilings per lever stack & Derived & \nolinkurl{evidence/moonshot/ceilings.json}\\
First lever runs: FP16 state $1.24\times$ at $c=128$, FP8 weights and KV no gain (single runs) & Finding (single runs) & \nolinkurl{evidence/moonshot/lever_sweeps_quick.csv}\\

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Qualify the FP8 result as inconsistent rather than absent

The cited single-run CSV does not show uniformly “no gain” for FP8 weights: the W8A8 row at concurrency 32 reports y_vs_baseline=1.059, while the concurrency-128 row regresses to 0.964. Section 10 accurately describes this as “no consistent gain,” so the claim ledger should use the same qualification rather than recording a finding that the runs showed no gain.

Useful? React with 👍 / 👎.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Reviewed head 04d1513 (0 behind main). The numbers are right, the figure reads committed CSVs and separates derived lines from measured points, and nothing claims the lossy stack meets its quality budget. Three blocking items remain. The first is about what the ceilings bound. The other two are wording errors about the evidence.

Blocking

B1. The ceilings are presented as hard bounds, but they hold only for a layer-serial engine at an assumed tensor-core rate (paper/sections/stack.tex lines 13, 18-20, 22, Table 10 caption, Figure 10 caption).

  • Location. Line 13 says bytes and FLOPs "set hard ceilings on this machine". Equation 18 is written as t(B) >= max(W/BW, BF/P) + Bs/BW, justified by "per-request traffic cannot hide behind itself while the weights stream once".
  • Why the bound does not hold in general. That argument shows per-request bytes cannot overlap other bytes, which gives t >= (W+Bs)/BW. It does not show that per-request bytes cannot overlap the GEMM arithmetic. Once BF/P > W/BW (B >= 256 here, which is where every Table 10 value is read off), the additive form assumes the recurrent and attention kernels run after the batch GEMMs and never beside them.
    • That is true of the engine at the pin, which runs each layer's kernels in turn over the whole batch.
    • It is not a property of the machine. An engine that splits the batch and overlaps memory-bound with compute-bound kernels (NanoFlow-style nano-batching, two-batch overlap) is bounded only by max((W+Bs)/BW, BF/P).
  • What the other bound gives. With ceilings.py's own constants it gives 33.3k tokens/s for the plain engine (not 23.7k) and 141k for the full lossy stack (not 78.9k). At the datasheet FP8 peak instead of the assumed 60%, the lossy stack's figure is 179k.
  • The rate is assumed too. P at 70%/60% of peak is not a peak, so even the arithmetic term is not a hard bound. "8.4 GFLOP per token cap an FP8 engine near 140k tokens/s" holds only at the assumed 60%; the datasheet peak gives about 235k.
  • Consequence. A reader takes 23.7k as the most this GPU can serve with FP32 state. In fact it is the most a layer-serial engine can serve at an assumed GEMM efficiency. The conclusion "no single lever gives an order of magnitude" survives under both models.
  • Fix.
    1. State the execution model at Equation 18: each layer's batch GEMMs and its per-request memory-bound kernels run one after the other, as SGLang does at the pin.
    2. Replace "hard ceilings on this machine" with ceilings for that model at the stated inputs.
    3. Say in one sentence that an engine overlapping the two is bounded only by max((W+Bs)/BW, BF/P).
    4. Add "at the assumed rate" to the 140k sentence, and carry the qualifier into the Table 10 and Figure 10 captions.
    5. Quote the overlapped numbers (33.3k, 141k) only if they come from a committed file, per the standing rule. The moonshot workstream can add them to ceilings.json; symbols alone are enough for this PR.
    6. Line 22's "because each request moves 114 MB per step" leaves out the arithmetic term, which is 29% of the per-token time in this model; "and needs 8.4 GFLOP" fixes it.
  • Note on my earlier reviews. Lines 13 and 18-20 predate this PR. The same formula and justification are in experiments/moonshot/ceilings.py and evidence/moonshot/README.md, which I approved in Moonshot Phase 1: serving ceilings, composable levers and first measurements #27. I missed it there. It matters now because this PR attaches numbers to the inequality.

B2. The cause of the FP8 failure is misstated (stack.tex line 78 and the "What did not work" paragraph).

  • Location and conflict. "What did not work" says the fast GEMM "does not build for this target". The evidence (evidence/moonshot/README.md section 2) records a run-time abort of the installed aarch64 sgl-kernel ("Arch conditional MMA instruction used without targeting sm90a", in a loop), not a build failure. Line 78 gives the cause only as "an instruction-targeting error".
  • What I checked. The cause is checkable without a GPU. cuobjdump --list-elf sgl_kernel/sm90/common_ops.abi3.so, the library load_utils.py loads on compute capability 9.0, lists sm_90, sm_100, sm_110a, sm_120a and sm_121a cubins and no sm_90a. CUTLASS's Hopper FP8 GEMM needs sm_90a (wgmma), so it traps.
  • Fix.
    1. In both places, say the CUTLASS FP8 GEMM in the installed aarch64 sgl-kernel aborts at run time because that binary was not compiled for sm_90a. That is what the logged message states.
    2. If you want to cite the cubin listing, record it in a committed note first.
    3. Change "whose fallback gains nothing" to "whose Triton fallback showed no consistent gain in single runs" (0.96-1.06x).

B3. "62% of that floor" misstates the ratio (stack.tex line 22).

  • Why it is wrong. The floor is a time (2.22 ms). The measured 281 tokens/s is 3.56 ms per token, which is 160% of the floor. It is 62% of the 451 tokens/s rate.
  • Fix. "62% of that rate".
  • Optional. The plain engine's full batch-1 floor including its state is 2.25 ms, 445 tokens/s (ceilings.csv), which gives 63%. The sentence is correct as written because it says "the weights set", so this change is not required.

Suggestions (not blocking)

  • Figure 10 markers. At c=1 the plain circle is hidden under the FP16 square (280 vs 284 tokens/s), and at c=32 and 128 it is half covered. Open markers or a small horizontal offset would show both.
  • Figure 10 lines. The plain and 16-bit derived lines are both solid and dark; a dash-dot on one would separate them in print.
  • Figure 10 axis. The x axis says "Requests in the batch B", but the points are at client concurrency c. The caption says so; the axis label could say it too.
  • Figure 10 caption. After B1, "overhead above the byte-and-arithmetic floor" should name the serial-execution floor.
  • Table 11. The FP16 status could read "1.24x at c=128 (single run), quality pending", so the table matches the text.
  • 2:4 claim. "2:4 sparsity, which the engine does not support" is correct at the pin: compressed_tensors.py raises ImportError("CompressedTensors24 is not supported now"). Citing that as code reading would make it checkable.
  • DFlash 2 objective. "whose training objective is unpublished" matches the DFlash 2 post, which states no selector training objective or loss. "which the announcement does not state" would be more exact.
  • decode_ceiling_try1.csv. It is also noisy at B=128 (FP16 state 8.47 ms at B=128 against 8.62 ms at B=32). The paper quotes only B=512, so this changes nothing, but "noisy at small batch" is closer than "below batch 64".

Checked and correct

  • Table 10. Every value matches ceilings.json and I recomputed each from ceilings.py's constants:
    • 23.7k, 34.6k, 33.6k, 44.0k, 52.1k, 61.7k and 78.9k, with MB per request 114.0 / 63.6 / 66.8 / 40.0 / 26.7 / 34.6 / 21.2;
    • MTP 19.5k and 34.3k from mtp_high_batch_accept3;
    • 2.22 ms / 451 tokens/s from batch1_latency;
    • 8.4 GFLOP per token, and 141k at 60% of the FP8 peak.
  • Lever numbers (lever_sweeps_quick.csv, runs=1):
    • 13,501.5 to 16,677.3 tokens/s is 1.235x;
    • FP8 KV 0.989-0.992x;
    • FP8 weights 0.965-1.059x;
    • plain at c=1 280.7 tokens/s;
    • decode steps at B=512: 26.92, 22.96 and 22.49 ms (decode_ceiling_try1.csv).
  • Figure 10 data.
    • The skip coords between index ranges select exactly rows 0-8, 9-17, 27-35 and 54-62 of ceilings.csv for the four named stacks.
    • The points use discard if not on lever_sweeps_quick.csv.
    • Both files are committed, and the figure is wrapped in \datafigure.
    • Lines against filled markers, plus "(derived)" and "(single run)" in every legend entry, separate derived ceilings from measured runs.
  • Labels. The ceilings are labelled derived and "not measurements" in the text and the Table 10 caption. The 3.79 TB/s input is marked pending on profile, and P is marked assumed.
  • Abstract and question.tex. They carry no ceiling numbers and no speedup expectation.
  • Lossy stack. It appears only under a budget "declared before measuring", with its frontier pending. Nothing says any lossy lever meets the budget, and the FP16 quality cost is pending.
  • The MTP BF16-state capture failure at 512 is backed by the cap-mtp-bf16state-noradix-512 probe row in evidence/bench/README.md.
  • Citations. The CaDDTree and DSpark sentences match their abstracts, both bib entries exist, and the width-choice sentence is consistent with Section 7.8: both methods set width from information available before sampling.
  • Build and hygiene.
    • Clean build (latexmk -C, then latexmk -pdf): 69 pages, 0 warnings.
    • Pre-commit passes on the changed files.
    • There are no AI co-author lines in the commits or PR body, and no references to ~/vp-coord or unmerged branches.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

This addendum to my review at 04d1513 covers Codex's two inline comments. Both are correct and neither has been addressed, so both are now blocking. Items B1 and B2 from the earlier comment stand. B3 is widened, and B4 is new.

B3 (widened, with Codex's comment on stack.tex:22). Use one batch-one floor.

  • The conflict. The prose gives the weights-only floor, 2.22 ms and 451 tokens/s. Figure 10's batch-one point for the plain stack is the stack's own floor, which includes the per-request term: 2.249 ms and 445 tokens/s (ceilings.csv, first row). The paragraph therefore disagrees with the figure it introduces.
  • The ratio is also wrong as stated. "62% of that floor" compares a rate with a time.
  • Fix. Compare the measured 281 tokens/s with the plain stack's floor of 2.25 ms (445 tokens/s): 281 tokens/s is 63% of that rate. If you keep the weights-only figure, label it as such next to the stack floor.

B4 (new, from Codex's comment on appendix.tex:137). Table 11 and the claims ledger say FP8 weights gave "no gain", but the runs show an inconsistent gain.

  • The evidence. In lever_sweeps_quick.csv, FP8 W8A8 is 1.059x at c=32 and 0.964x at c=128. Section 10's prose already says "no consistent gain".
  • Where the wording is wrong. The ledger row says "FP8 weights and KV no gain (single runs)", and Table 11's status column says "FP8: no gain (single runs)".
  • Fix.
    1. Use "no consistent gain" for FP8 weights in both places.
    2. Keep "no gain" for FP8 KV, which is 0.989-0.992x.
    3. Change "whose fallback gains nothing" in "What did not work" to match (already part of B2).

The manuscript owner is now the editor workstream, which will carry these fixes.

…P8 and batch-one wording

Equation 18 holds for a layer-serial engine at the assumed tensor-core rate;
an engine that overlaps per-request kernels with the batch GEMMs is bounded
only by max((W+Bs)/BW, BF/P), now given in symbols. The CUTLASS FP8 GEMM
aborts at run time (the installed aarch64 sgl-kernel has no sm_90a code)
rather than failing to build. The batch-one comparison uses the plain stack's
floor from ceilings.csv (2.25 ms, 445 tokens/s), so 281 tokens/s is 63% of
that rate. FP8 weights showed no consistent gain in single runs, in the text,
Table 11 and the ledger. Figure 10 selects stacks by name rather than row
index and offsets the two measured series so both stay visible.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Review items addressed in dfdda3d (the editor workstream now owns this PR).

  • B1. Equation 18 states its execution model: each layer's weight GEMMs and its per-request kernels run in turn, as at the pin. A new Equation 19 gives the overlapped bound max((W+Bs)/BW, BF/P) in symbols, since no committed file holds its numbers yet. "Hard ceilings" is removed. The 114 MB sentence adds the 8.4 GFLOP term. The 140k figure is qualified "at the assumed rate", and 235k at the datasheet FP8 peak is labelled as derived from the same constants. The Table 10 and Figure 10 captions name the layer-serial model.
  • B2. In both places, the text says the CUTLASS FP8 GEMM in the installed aarch64 sgl-kernel aborts at run time because the binary was not compiled for sm_90a, and that the Triton fallback showed no consistent gain in single runs.
  • B3 and Codex. The batch-one comparison now uses the plain stack's floor from ceilings.csv (2.25 ms, 445 tokens/s; the weights alone are 2.22 ms), so 281 tokens/s is 63% of that rate.
  • B4 and Codex. Table 11 and the claim ledger now say "no consistent gain" for FP8 weights and "no gain" for FP8 KV.
  • Suggestions taken.
    • Figure 10 filters stacks by the CSV's stack column instead of by row indices.
    • The 16-bit line is dash-dot.
    • The measured series are offset by a factor of 1.12 in x, and the caption says so.
    • The axis label names both B and c.
    • The 2:4 claim cites the loader as code reading.
    • The DFlash 2 objective is described as "which the announcement does not state".
    • The decode-step note says "noisy at small batch sizes".

Build: 70 pages, no LaTeX or BibTeX warnings.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

This re-review covers head dfdda3d. All four blocking items are fixed, and so are both Codex comments.

  • B1.
    • Equation 18 now states the layer-serial execution model and says it is "the bound for the engine as it runs, not for every engine on this machine".
    • Equation 19 gives the overlapped bound max((W+Bs)/BW, BF/P) with large-batch ceiling min(BW/s, P/F).
    • "hard ceilings" is gone.
    • The 140k sentence says "at the assumed rate", and the 114 MB sentence adds the 8.4 GFLOP.
    • The Table 10 caption, the Figure 10 caption and the ledger row carry the qualifier.
    • The 235k is 1979 TFLOPS / 8.41 GFLOP, both constants in the committed ceilings.py, and is labelled derived.
  • B2. Both places now say the installed aarch64 sgl-kernel's CUTLASS GEMM aborts at run time because the binary was not compiled for sm_90a. The Triton fallback is "no consistent gain in single runs".
  • B3 and the Codex comment on stack.tex:22. The text now uses one batch-one floor: 2.25 ms and 445 tokens/s from ceilings.csv, with the weights alone at 2.22 ms. 280.7/444.6 is 63%.
  • B4 and the Codex comment on appendix.tex:137. Table 11 and the ledger both say "FP8 weights: no consistent gain; FP8 KV: no gain". The FP16 entries add "quality pending".
  • Suggestions taken.
    • Figure 10 now selects each stack by its stack column. I checked the render: each line is a single monotone curve for its stack.
    • The 16-bit line is dash-dot.
    • The two measured series are offset so both are visible, and the caption says so.
    • The axis label names B and c.
    • The 2:4 claim cites the compressed-tensors loader as code reading.
    • The DFlash 2 wording and the decode-pass note are corrected.
  • Build and merge. A clean build gives 70 pages with 0 warnings. The branch is 2 commits behind main (Add citation metadata and a citing section #38) with no conflict.
  • Codex. Codex has not re-reviewed dfdda3d; its two comments on 04d1513 are addressed as above.

Still open, owned by the editor (not blocking this PR): the Codex paper items on merged PRs.

I will check them in the editorial revision.

@SamMausberg
SamMausberg merged commit 5b08cc3 into main Sep 30, 2026
@SamMausberg
SamMausberg deleted the paper/results-3 branch September 30, 2026 21:17
SamMausberg added a commit that referenced this pull request Sep 30, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant