-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Expose PyTorch profiler configuration to environment variables #21803
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request exposes several PyTorch profiler configurations through environment variables, which is a great enhancement for debugging and performance analysis. My review focuses on an inconsistency in the naming of one of the new environment variables. The variable for memory profiling is named VLLM_TORCH_PROFILER_WITH_PROFILE_MEMORY
in the code, but the documentation and consistency with other flags suggest it should be VLLM_TORCH_PROFILER_PROFILE_MEMORY
. I've provided suggestions to correct this across the codebase to ensure consistency and prevent user confusion.
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
* [FEAT] Expose PyTorch profiler config via environment variables * [DOC] update profiling.md * NOT change profiler in v0 worker. related to vllm-project#18571 Signed-off-by: Csrayz <[email protected]>
variables `VLLM_TORCH_PROFILER_WITH_PROFILE_MEMORY` Signed-off-by: Csrayz <[email protected]>
Signed-off-by: Csrayz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks for contributing!
Why does accepting a commit suggestion cause the DCO workflow to fail? |
It's because GitHub doesn't sign off the commits |
paragraphs to an unordered list Signed-off-by: Csrayz <[email protected]>
Force merging as the CI failures aren't related |
Perhaps this PR is the first buildkite/ci/entrypoints-test-api-server - Failed |
I have seen these failures yesterday as well |
Hmm There were indeed earlier failures https://buildkite.com/vllm/ci/builds/25184/steps/canvas?jid=019851ec-29c3-4f63-a655-d664b88e80a0 |
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.Purpose
Expose inference-related profiler configuration in the worker to environment variables.
Test Plan
Test Result
(Optional) Documentation Update
Update
docs/contributing/profiling.md
for new profiler-related environment variables