Repository navigation
Paper: the DFlash cycle split (Figure 1 bar, Appendix E.2, head ceiling; fold #192) - #205
Conversation
… ceiling (fold #192) Figure 1 gains a bar for the tuned DFlash arm with 16-token blocks at B = 1, read from the first row of evidence/profiles/dflash_breakdown.csv, with its head shares (4.8% verify, 4.7% draft) from step_share.csv. Its idle is not hatched: that arm is GPU-bound. Appendix E.2 gets a DFlash paragraph from the profiles README: the head chains take 9.3% of the untraced cycle at B = 1 (derived from an estimated cycle), so removing them is worth at most 1.10x; Triton extend attention takes 30% of the traced cycle at B = 1; the GDN verify kernel 36% at B = 64; the block-16 arm has no host gap and the block-8 arm keeps one; the profile's prompts accept 2.5-3.8 tokens per cycle, so per-token rates are not the frontier's. New register entry profile-dflash. Also reviewer 1's optional items on #202 (research notes): the P4 probe's controls all changed the top-20 log-probabilities, and summarise.py joins moonshot-p4's producers.
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 |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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: APPROVE at f728b50 I checked every number and label against
Optional:
Codex found no major issues at f728b50. The diff contains no host identity, and the commit has no attribution lines. |
#192 committed the profile of the DFlash speculative cycle on the two tuned DFlash arms (
evidence/profiles/, README section "DFlash speculation on the bench's tuned arms"). The paper profiled only plain decoding and MTP. This PR folds the DFlash split in. Its main-text cost is one bar in Figure 1 and one caption clause; the details go to Appendix E.2.What changes
Figure 1 (
figures/breakdown.tex). A third group gets one bar: the tuned DFlash arm with 16-token blocks at B = 1. The bar is read from the first row ofevidence/profiles/dflash_breakdown.csv(configdflash-tuned-b16-1): target head 4.83%, draft heads 4.68%, target GEMMs 33.65%, other kernels 53.47% (drafter layers, GDN, attention, small kernels) and idle 3.37%. The right-hand column prints "4.8 + 4.7%", computed from the microseconds instep_share.csvlike the other rows. F1's style is unchanged. The plot is 0.48 cm taller, which keeps its scale. The bar's idle segment is not hatched, because that arm is GPU-bound and tracing does not inflate its idle. Two technical points:\vpsplitconfigcannot split, so the bar's arm and batch for the lookup and its tick label are set explicitly.skip coords between index={8}{100}).Figure 1 caption. "DFlash: the tuned arm with 16-token blocks, which is GPU-bound." The idle sentence now says "the MTP heads' shares", because tracing inflates only MTP's idle.
Appendix E.2, new paragraph "DFlash speculation" (all from the README):
"What the attribution decides" adds the DFlash ceiling, 1.10x at B = 1, derived from an estimated untraced cycle.
Register. A new evidence entry,
profile-dflash, lists the README,dflash_cycle.json,dflash_cycle.csv,dflash_breakdown.csv,step_share.csv,attribution/andwindows/, produced bydflash_cycle.pyandattribute.py.Research notes: reviewer 1's optional items on Research notes: P4's served test rejects the 1.10x claim (fold #191) #202. The P4 probe's sentence now adds that SGLang's replay path, FP16 state and BF16 state "all three changed the top-20 log-probabilities" (
p4_output_probe.csv,gen_kl_meanabove 0), andsummarise.pyjoins the producers ofmoonshot-p4.Wording kept from the review of #192
The untraced head share (9.3%) is labelled derived, because the untraced cycle is an estimate. The block-16 host runs 0.75-1.06 of a cycle ahead. The block-8 untraced gap is an overestimate. No sentence claims a host gap on block 16 or compares this cycle's per-token rates with the frontier's.
Build
Built locally at f728b50, on main 60cf549 (PDFs not committed):
scripts/check_paper_references.py --rev HEADevidence/profiles/README.md#204 (F2) adds a trailing
%to the last line ofbreakdown.texand to the\input{figures/breakdown}line next to the caption this PR edits. Whichever merges second keeps both.Ledger rows
dflash_breakdown.csvrow 0,step_share.csv(dflash-tuned-b16, 1)profile-dflashevitemsummarise.pyproducerp4_output_probe.csv; README section 4