Repository navigation
Fix the head roofline floor and bandwidth wording in profile evidence - #54
Conversation
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.
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. |
There was a problem hiding this comment.
💡 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".
| 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. |
There was a problem hiding this comment.
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.
|
Verdict: APPROVE Reviewed head 1eca0ad against main (cc364ad). The diff touches two files, Checked
Suggestions (not blocking)
|
Two corrections to the profile evidence merged in #13.
evidence/profiles/head_microbench.jsonrecordedroofline_floor_us_at_measured_peakas 3.35e14. The file was written before 153b6d7 fixed the unit conversion inhead_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 ownweight_bytesandmeasured_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.mdnow 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 runon the changed files passes;python -ccheck 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_profileand graph-level calibration, eager label validation) are queued on the GPU and will come in a later PR.