Repository navigation
mlsysim paper: a measured-energy subsection in the Evaluation - #2216
Merged
profvjreddi merged 1 commit intoNov 24, 2026
Merged
profvjreddi merged 1 commit into
profvjreddi merged 1 commit into
Conversation
Compares the energy given by the two device powers mlsysim uses, rated TDP and the proportional rule TDP x (0.30 + 0.70 u), with the GPU board energy of the four tests in paper/data/gpu-energy*. - paper_scenarios.measured_energy(): measured time, energy and power from the committed summaries. Modeled time, FLOP utilization, the four estimates and each estimate's device pick are recomputed with the in-repo ServingModel and SingleNodeModel through analyze_gpu_energy's functions. It raises if one of the text's main statements stops holding, so --check fails. - paper_scenarios.anchor_one(): the source string now prints A1_CONFIG, which fixes a stale efficiency=0.19. No value changes. - generate_paper_values: 51 Energy* macros. - paper.tex: a Measured Energy subsection after Published Benchmarks, a pointer in the Evaluation intro, a pointer from Wall 18, and a sentence on measured idle power in Accuracy Scope. - generated/: regenerated with generate_paper_values.py. The volatile timing and machine values describe the machine that ran it.
Contributor
|
Thanks @prawalpokharel! 🎉 @prawalpokharel was already credited in mlsysim for: code, doc, test. The contributor tables are now handled directly by this workflow; no follow-up command is needed. |
3 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds the validation subsection I said I would write on #2208. A new "Measured Energy" subsection in the paper's Evaluation compares MLSys·im's two device powers, rated TDP and the proportional rule, with the GPU board energy measured in #2198 and #2208. Every number in it is generated from the committed data and the checked-out package.
Area
Changes
paper/paper.texpaper/scripts/paper_scenarios.py: a newmeasured_energy().paper/data/gpu-energy*.ServingModelandSingleNodeModel, usinganalyze_gpu_energy.py's own functions. These match the committed summaries to within their six-digit rounding.generate_paper_values.py --checkfails. Examples are TDP over the modeled time no longer picking the A100 for ResNet-50, the H100 and H200 no longer tying, and the plans' ResNet-50 efficiencies no longer matching theengine.empiricalanchors.anchor_one()'s source string saidefficiency=0.19, whileA1_CONFIGuses 0.18. It now printsA1_CONFIGitself, so the comments on theAnchorOneSim*macros say 0.18. No value changes.paper/scripts/generate_paper_values.py: 51Energy*macros.paper/generated/: regenerated withgenerate_paper_values.py, the scriptmake valuesruns. As in mlsysim: measured GPU energy, waiting costs and a calibrated power model #2198, the volatile timing and machine values describe the machine that ran it (Apple M2, 8 cores, Python 3.12), so the Exploration Speed sentence now says Apple M2. A refresh on your usual machine restores it.The modeled values are the ones you gave on #2208: a decode step of 0.49–0.73, TDP over the modeled step of 0.63–0.99, and a ResNet-50 step of 0.78–0.79 on the A100 and 1.10–1.11 on the H200. The other numbers agree with the data READMEs where those give them, with two differences:
Three things you may want to look at:
engine.empiricalanchor the plans use is 0.26. At 0.18, TDP over the modeled time gives the A100 the most energy, as the measurements do, and the subsection says so. I didn't change either value.make publication-checkreruns their analyses with--check, and the workloads README says each run'strials.jsonlis committed. Since the rebase intodev, those raw files (63 of them) and the matchingpublication-checklines are only on myfeat/mlsysim-gpu-energy-workloadsbranch, so those checks can't run indev. This PR doesn't change that. I can send a small follow-up that either points the READMEs to that branch or restores the checks, whichever you prefer.The subsection is about 1,100 words. If that's too long for the paper, I can move the board and seed details to the data READMEs and keep a short summary here.
Testing
quarto render)pytest tests/)tito module test NNfor affected module(s)In
mlsysim/, on Python 3.12 with the extras CI installs:pytest tests/passes.generate_paper_values.py --checkreports "540 values match", andvalidate_anchors.pypasses.ruff check,calibration_report.py --checkandcheck_modeling_docs.pypass.paper.texcompiles with tectonic and BibTeX, with no undefined macros, citations or references. I don't have the TikZ toolchain, so my build used stand-in figures.Related Issues
Related to #2198 and #2208.
By submitting this PR, you agree to release your contribution under the project's license.