Skip to content

Commit

Permalink
deferred benchmark metrics logging
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Feb 6, 2024
1 parent 11d2573 commit 67800e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions optimum_benchmark/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,8 @@ def benchmark_cli(experiment_config: DictConfig) -> None:

benchmark_report = launch(experiment_config=experiment_config)

LOGGER.info("Benchmark Report:")
for metric, value in benchmark_report.items():
LOGGER.info(f"\t+ {metric}: {value:.3f}")

json.dump(benchmark_report, open("benchmark_report.json", "w"), indent=4)

0 comments on commit 67800e3

Please sign in to comment.