Skip to content

Fix the head roofline floor and bandwidth wording in profile evidence - #54

Merged
SamMausberg merged 3 commits into
mainfrom
profile/followup
Oct 1, 2026
Merged

SamMausberg merged 3 commits into
mainfrom
profile/followup

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Two corrections to the profile evidence merged in #13.

  • evidence/profiles/head_microbench.json recorded roofline_floor_us_at_measured_peak as 3.35e14. The file was written before 153b6d7 fixed the unit conversion in head_microbench.py (the old line, weight_bytes / peak / 1e-6, divided bytes by the peak in TB/s without converting to bytes per second). The field is recomputed with the fixed formula from the file's own weight_bytes and measured_read_peak_tb_per_s: 1,271,398,400 B / 3.7909 TB/s = 335.38 us. No timing changes; the queued microbenchmark rerun (with clock logging) will regenerate the whole file. The venue paper (Venue paper: MLSys-format main text on the certified head and transport's failure, with appendices #53) cites 335 us, which this makes consistent with the evidence.
  • evidence/profiles/README.md now says that the 3.83 TB/s read peak is the best of the nine launch configurations of the read kernel (they span 3.59-3.83 TB/s), as the reviewer of Profile SGLang decode and MTP on GH200: attribution, head baseline, bytes per step #13 suggested.

Testing: pre-commit run on the changed files passes; python -c check that the JSON parses and the field equals weight_bytes / (peak x 1e12) x 1e6.

The remaining profile follow-ups (plain rerun with the committed code, Nsight Compute, GDN kernel bench, microbenchmark clocks, DFlash attribution, /start_profile and graph-level calibration, eager label validation) are queued on the GPU and will come in a later PR.

The committed file was written before 153b6d7 fixed the unit conversion in
head_microbench.py (the old line divided bytes by the peak in TB/s and then
by 1e-6, giving 3.35e14). The field is recomputed here with the fixed
formula from the file's own weight_bytes and measured_read_peak_tb_per_s
(1271398400 B / 3.7909 TB/s = 335.38 us); no timing changes. The queued
microbenchmark rerun regenerates the whole file.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-10-01T00:24:18.841962Z ea46032 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: ea46032800

ℹ️ 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 evidence/profiles/README.md Outdated
The attribution uses 3.79 TB/s (read over the head's footprint) as the peak.
The nine launch configurations of the read kernel span 3.59-3.83 TB/s
(`read_sweep_median_tb_per_s`); the table reports the best. The attribution uses
3.79 TB/s (the best configuration over the head's footprint) as the peak.

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 Don't call the unswept head-size configuration best

The 3.79 TB/s measurement is not known to be the best configuration over the head footprint. In experiments/profiling/hbm_bandwidth.py:155-168, all nine configurations are swept only on the 4 GiB src; the resulting best_key is then reused for a single head-size measurement. A different configuration could perform better at 1.27 GB, so describe this as the configuration selected by the 4 GiB sweep or also sweep the head-size buffer before calling it best.

Useful? React with 👍 / 👎.

The head-size buffer was timed only with the configuration the 4 GiB sweep
selected (hbm_bandwidth.py), so it is not known to be the best at 1.27 GB.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Reviewed head 1eca0ad against main (cc364ad). The diff touches two files, evidence/profiles/head_microbench.json (one field) and evidence/profiles/README.md (the bandwidth table and the sentence after it).

Checked

  • Roofline floor. The new value of roofline_floor_us_at_measured_peak, 335.3839993399645, is what head_microbench.py:227 (weight_bytes / (peak * 1e12) * 1e6) gives from the file's own weight_bytes (1,271,398,400) and measured_read_peak_tb_per_s (3.790873752182905). It is also exactly 1e-12 times the old value, so this is a units fix and changes no measurement. It equals the median time of the head-size read in hbm_bandwidth.json (seconds_per_replay_median 0.000335384 s), as it should, since that read defines the peak. The README's "335 us" (line 133) now agrees with the file, as does the venue paper's citation.
  • Sweep wording. hbm_bandwidth.py:155-168 sweeps the nine configurations (programs 528/1056/2112 x block 2048/4096/8192) on the 4 GiB buffer only, then reuses best_key for one head-size measurement. The new table labels say that. The stated range of 3.59-3.83 TB/s matches read_sweep_median_tb_per_s (min 3.5885 at programs=2112/block=8192, max 3.8274 at programs=2112/block=4096). The table's 3.827 (3.820-3.833) and 3.791 (3.784-3.796) match kernels.read and kernels.read_head_size.
  • Codex. The one inline comment (P2, "don't call the unswept head-size configuration best") is addressed by 1eca0ad.
  • Hygiene. No other file cites the old 3.35e14 value. The pre-commit hooks exclude evidence/, so none apply. The three commits carry no AI co-author or "Generated with" lines, and nothing confidential is included.

Suggestions (not blocking)

  1. evidence/profiles/README.md, Files table, head_microbench.json row. The row still says the file is produced by run_microbench.sh, but one field is now a recomputation rather than that run's output. The run predates 153b6d7, so rerunning that commit's script would print 3.35e14. Add one clause, such as "roofline_floor_us_at_measured_peak recomputed from the file's weight_bytes and peak with the formula fixed in 153b6d7". The derivation would then be in the tree as well as in the commit message. The queued rerun will make this moot.
  2. Out of scope for this PR: evidence/moonshot/README.md:20-21 still says the profile workstream's bandwidth evidence "is pending". It merged in Profile SGLang decode and MTP on GH200: attribution, head baseline, bytes per step #13, so the moonshot owner can drop that clause in a later change.

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