-
Notifications
You must be signed in to change notification settings - Fork 471
[Profile] Adding metrics for Diffusion/DiT Single diffusion Pipeline #668
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
Open
erfgss
wants to merge
15
commits into
vllm-project:main
Choose a base branch
from
erfgss:feat/vllmomni_profiling
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+144
−21
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
39fe587
Compatible with vllm-omni 0.16.0
erfgss 76b1739
Compatible with vllm-omni 0.16.0rc
erfgss 1464bc1
Compatible with vllm-omni 0.16.0rc
erfgss 08e6f59
Compatible with vllm-omni 0.16.0rc
erfgss 265999d
Merge branch 'main' into feat/vllmomni_profiling
erfgss a3bcdcb
Compatible with vllm-omni 0.16.0rc
erfgss d7175bf
Compatible with vllm-omni 0.16.0rc
erfgss a9a518b
Compatible with vllm-omni 0.16.0rc
erfgss 02e0a82
Compatible with vllm-omni 0.16.0rc
erfgss 5d909d5
Merge branch 'main' into feat/vllmomni_profiling
erfgss 9c59a51
Compatible with vllm-omni 0.16.0rc
erfgss 6148be5
Merge branch 'main' into feat/vllmomni_profiling
erfgss 3fba139
Merge branch 'main' into feat/vllmomni_profiling
erfgss b0564cb
Compatible with vllm-omni 0.16.0rc
erfgss 9ecc950
Merge branch 'main' into feat/vllmomni_profiling
erfgss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1131,6 +1131,15 @@ def _run_generation( | |
| final_output_type=stage.final_output_type, # type: ignore[attr-defined] | ||
| request_output=engine_outputs, | ||
| ) | ||
| try: | ||
| if stage.final_output_type == "text" or metrics.log_stats: | ||
| output_to_yield.metrics = metrics.build_output_metrics(stage_id, req_id) | ||
| except Exception as e: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bare |
||
| # Make metrics contract explicit on failure. | ||
| output_to_yield.metrics = {} | ||
| logger.exception( | ||
| f"[{self._name}] Failed to attach output metrics for req {req_id} at stage {stage_id}: {e}", | ||
| ) | ||
|
|
||
| # Record audio generated frames (only when finished) | ||
| try: | ||
|
|
||
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
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
Oops, something went wrong.
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.
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.
This indentation change moves
return resultsout of theelsebranch -- was this intentional? Double-check the single-prompt case still returns correctly.