Skip to content

Commit

Permalink
Create table for set difference warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lekurile committed Mar 1, 2024
1 parent 0fccdd0 commit c946c4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmarks/inference/mii/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ transformers
matplotlib
deepspeed-mii>=0.2.0
vllm>=0.2.7
numpy
numpy
tabulate
4 changes: 3 additions & 1 deletion benchmarks/inference/mii/src/postprocess_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json
import re
import os
from tabulate import tabulate
from dataclasses import dataclass
from functools import reduce
from pathlib import Path
Expand Down Expand Up @@ -176,6 +177,7 @@ def get_result_sets(args: argparse.Namespace) -> set():
for key, backend_set in backend_sets.items():
difference = backend_set.difference(result_params)
if bool(difference):
print(f"WARNING: backend {key} has result combinations that are not present in all backends:\n{difference}")
print(f"WARNING: backend {key} has result combinations that are not present in all backends:")
print(tabulate(difference, headers=["model", "tp_size", "bs", "replicas", "prompt", "gen"]))

return result_params

0 comments on commit c946c4f

Please sign in to comment.