Skip to content

Commit 808a7b6

Browse files
authored
[bench] Fix benchmark/serve.py to ignore unavailable results (#22382)
Signed-off-by: Linkun <[email protected]>
1 parent 099c046 commit 808a7b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/benchmarks/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def save_to_pytorch_benchmark_format(args: argparse.Namespace,
665665
pt_records = convert_to_pytorch_benchmark_format(
666666
args=args,
667667
metrics={k: [results[k]]
668-
for k in metrics},
668+
for k in metrics if k in results},
669669
extra_info={
670670
k: results[k]
671671
for k in results if k not in metrics and k not in ignored_metrics

0 commit comments

Comments
 (0)