Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jainapurva
Copy link
Contributor

@jainapurva jainapurva commented Apr 1, 2025

No description provided.

[ghstack-poisoned]
@jainapurva
Copy link
Contributor Author

jainapurva commented Apr 1, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1984

Note: Links to docs will display an error until the docs builds have been completed.

❌ 3 New Failures, 10 Pending

As of commit d9c8cec with merge base 42e1345 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

jainapurva added a commit that referenced this pull request Apr 1, 2025
ghstack-source-id: 6925c86
ghstack-comment-id: 2768430300
Pull Request resolved: #1984
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 1, 2025
@jainapurva jainapurva marked this pull request as draft April 1, 2025 07:25
@jainapurva jainapurva requested a review from Copilot April 1, 2025 07:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds profiling enhancements and Perfetto UI integration to the microbenchmarks suite.

  • Introduces functions to upload trace files and generate a Perfetto UI URL.
  • Adds a model profiling function using Torch Profiler.
  • Updates benchmark configurations, results printing, and error logging to include profiler output.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
benchmarks/microbenchmarks/utils.py Adds functions for profiling, trace file upload, and Perfetto UI URL generation.
benchmarks/microbenchmarks/test/benchmark_config.yml Updates configuration to enable profiling for specific benchmarks.
benchmarks/microbenchmarks/benchmark_runner.py Improves error logging and conditional CSV-generation based on benchmark results.
benchmarks/microbenchmarks/benchmark_inference.py Integrates the new profiling function into the benchmarking process.
Comments suppressed due to low confidence (1)

benchmarks/microbenchmarks/test/benchmark_config.yml:39

  • The comment contradicts the value (true) for enable_profiler. Update the comment to accurately reflect that profiling is enabled.
    enable_profiler: true  # Disable profiling for this model

DEFAULT_TTL_SEC = 28 * 24 * 60 * 60
file_name = os.path.basename(local_path)
manifold_path = os.path.join(
MANIFOLD_FOLDER, f"{os.getlogin()}_{str(uuid.uuid4())}_{file_name}"
Copy link

Copilot AI Apr 1, 2025

Choose a reason for hiding this comment

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

Using os.getlogin() may cause errors in non-interactive environments. Consider using getpass.getuser() for improved robustness.

Suggested change
MANIFOLD_FOLDER, f"{os.getlogin()}_{str(uuid.uuid4())}_{file_name}"
MANIFOLD_FOLDER, f"{getpass.getuser()}_{str(uuid.uuid4())}_{file_name}"

Copilot uses AI. Check for mistakes.
ghstack-source-id: 6925c86
ghstack-comment-id: 2768430300
Pull Request resolved: #1984
@jainapurva jainapurva changed the base branch from main to profiler_improvements April 1, 2025 20:08
@jainapurva jainapurva changed the base branch from profiler_improvements to main April 1, 2025 20:17
@jainapurva jainapurva closed this Apr 1, 2025
jainapurva added a commit that referenced this pull request Apr 1, 2025
)

ghstack-source-id: a5f8301
ghstack-comment-id: 2770609971
Pull Request resolved: #1997
jainapurva added a commit that referenced this pull request Apr 4, 2025
)

ghstack-source-id: a5f8301
ghstack-comment-id: 2770609971
Pull Request resolved: #1997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants