[2091][performance] Track throughput metrics#2124
Open
florianscheidl wants to merge 73 commits intoecmwf:developfrom
Open
[2091][performance] Track throughput metrics#2124florianscheidl wants to merge 73 commits intoecmwf:developfrom
florianscheidl wants to merge 73 commits intoecmwf:developfrom
Conversation
…mance-metric-profiling
ekouts
suggested changes
Apr 14, 2026
ekouts
suggested changes
Apr 14, 2026
ekouts
approved these changes
Apr 16, 2026
…mance-metric-profiling
clessig
approved these changes
Apr 16, 2026
Collaborator
clessig
left a comment
There was a problem hiding this comment.
Some minor points but essentially ready to be merged
| self.ema_model.update(self.cf.general.istep * batch_size_total, batch_size_total) | ||
|
|
||
| self.perf_tracker.step( | ||
| batch, |
Collaborator
There was a problem hiding this comment.
For what is batch needed?
Contributor
Author
There was a problem hiding this comment.
We compute the throughput in MB from the batch.
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.
Description
Implements optional on-the-fly throughput metrics, logged per training step. The new metrics are named "performance.throughput.*" and track per-device and global throughput in terms of:
In multi-device and multi-node setups, we make an all-reduce call to get the global throughput metrics.
Usage
To activate throughput tracking, add
track_performance_metrics: Truein the training config, undertrain_logging, see the performance_*.yaml configs added here. Run with a base configuration, e.g.:Issue Number
Closes #2091.
Preview:
We investigated the effect of batch sizes on throughput, see https://gitlab.jsc.fz-juelich.de/hedgedoc/SUW6Zq-BR3uYCwU3hmIb6w?both#.
Below are screenshots from MLFlow:
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60