Skip to content

Commit 6205d81

Browse files
authored
Add metadata metrics (#77)
1 parent 909361b commit 6205d81

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

benchmarks/benchmark_serving.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,10 @@ def main(args: argparse.Namespace):
614614
dimensions_json["date"] = current_dt
615615
dimensions_json["model_id"] = model_id
616616
dimensions_json["tokenizer_id"] = tokenizer_id
617+
dimensions_json = {
618+
**dimensions_json,
619+
**json.loads(args.additional_metadata_metrics_to_save),
620+
}
617621
metrics_json["num_prompts"] = args.num_prompts
618622

619623
# Traffic
@@ -739,6 +743,14 @@ def main(args: argparse.Namespace):
739743
action="store_true",
740744
help="Specify to save benchmark results to a json file",
741745
)
746+
parser.add_argument(
747+
"--additional-metadata-metrics-to-save",
748+
type=str,
749+
help=(
750+
"Additional metadata about the workload. Should be a dictionary in"
751+
" the form of a string."
752+
),
753+
)
742754
parser.add_argument(
743755
"--priority",
744756
type=int,

0 commit comments

Comments
 (0)