-
Notifications
You must be signed in to change notification settings - Fork 105
Create vLLM v1 benchmark dashboard #6306
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a6ee19d
Add vLLM benchmark dashboard
huydhn 1287b6c
Merge branch 'main' into create-vllm-benchmark-dashboard
huydhn e7032d2
Add the initial version of vLLM v1 benchmark dashboard
huydhn 746c486
vLLM v1
huydhn 0fb730b
Apply suggestions from code review
huydhn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,14 +141,44 @@ export function GraphPanel({ | |
const model = record.model; | ||
const dtype = record.dtype; | ||
const device = record.device; | ||
const metric = record.metric; | ||
|
||
record.display = model.includes(dtype) | ||
? model.includes(device) | ||
? model | ||
: `${model} (${device})` | ||
: model.includes(device) | ||
? `${model} (${dtype})` | ||
: `${model} (${dtype} / ${device})`; | ||
if (repoName === "vllm-project/vllm") { | ||
let requestRate = record.extra!["request_rate"]; | ||
// TODO (huydhn): Fix the invalid JSON on vLLM side | ||
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. Here is the fix on vLLM side vllm-project/vllm#13641 under review. Once this lands, we can remove these hacks |
||
if ( | ||
metric.includes("itl") || | ||
metric.includes("tpot") || | ||
metric.includes("ttft") | ||
) { | ||
requestRate = requestRate !== "" ? requestRate : "Inf"; | ||
} | ||
|
||
let tensorParallel = record.extra!["tensor_parallel_size"]; | ||
// TODO (huydhn): Fix the passing of tensor_parallel_size to the benchmark | ||
// script on vLLM side | ||
if (model.includes("8B")) { | ||
tensorParallel = tensorParallel !== "" ? tensorParallel : "1"; | ||
} else if (model.includes("70B")) { | ||
tensorParallel = tensorParallel !== "" ? tensorParallel : "4"; | ||
} else if (model.includes("8x7B")) { | ||
tensorParallel = tensorParallel !== "" ? tensorParallel : "2"; | ||
} | ||
|
||
if (requestRate !== "") { | ||
record.display = `${model} / tp${tensorParallel} / qps_${requestRate}`; | ||
} else { | ||
record.display = `${model} / tp${tensorParallel}`; | ||
} | ||
} else { | ||
record.display = model.includes(dtype) | ||
? model.includes(device) | ||
? model | ||
: `${model} (${device})` | ||
: model.includes(device) | ||
? `${model} (${dtype})` | ||
: `${model} (${dtype} / ${device})`; | ||
} | ||
|
||
return record; | ||
}); | ||
|
@@ -177,7 +207,7 @@ export function GraphPanel({ | |
.filter((metric) => chartData[metric].length !== 0) | ||
.map((metric: string) => ( | ||
<Grid2 | ||
size={{ xs: 12, lg: modelName === DEFAULT_MODEL_NAME ? 12 : 4 }} | ||
size={{ xs: 12, lg: modelName === DEFAULT_MODEL_NAME ? 12 : 6 }} | ||
height={GRAPH_ROW_HEIGHT} | ||
key={metric} | ||
> | ||
|
@@ -203,7 +233,7 @@ export function GraphPanel({ | |
}, | ||
}, | ||
}} | ||
legendPadding={modelName === DEFAULT_MODEL_NAME ? 320 : 200} | ||
legendPadding={320} | ||
/> | ||
</Grid2> | ||
))} | ||
|
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
Oops, something went wrong.
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.
option: maybe can place a list of repoName that has this exception
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.
Yeah, the benchmark UX seems to be growing pretty fast recently, so I think I will take a step back to see if we could refactor the code here for better modularization