Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[benchmarks] Collect dynamo counters. #6180

Closed
wants to merge 2 commits into from

Conversation

ysiraichi
Copy link
Collaborator

This PR collects a few dynamo counters at each timed_run. These are the same collected by the PyTorch benchmarking script:

  • calls_captured: number of call nodes
  • unique_graphs: number of compiled sub-graphs
  • graph_breaks: number of graph breaks
  • unique_graph_breaks: number of unique graph breaks (i.e. unique reasons)

Copy link
Collaborator

@frgossen frgossen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!!

benchmarks/experiment_runner.py Outdated Show resolved Hide resolved
@@ -381,6 +384,15 @@ def ns_to_s(ns):
metrics[f"xla_{m}_time_s"] = ns_to_s(total_time)
metrics[f"xla_{m}_number"] = number

if benchmark_experiment.dynamo:
metrics.update({
"calls_captured": dyn_utils.counters["stats"]["calls_captured"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we prefix all the keys with dynamo_?

@ysiraichi
Copy link
Collaborator Author

Closing in favor of #6201

@ysiraichi ysiraichi closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants