Skip to content

Commit d98ab22

Browse files
lk-chendiegocastanibm
authored andcommitted
[bench] Fix benchmark/serve.py to ignore unavailable results (vllm-project#22382)
Signed-off-by: Linkun <github@lkchen.net> Signed-off-by: Diego-Castan <diego.castan@ibm.com>
1 parent ff02f66 commit d98ab22

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)