-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_benchmark.py
executable file
·34 lines (24 loc) · 1.08 KB
/
run_benchmark.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import time
import fire
from plotting_benchmark.benchmark import PlottingBenchmark
from plotting_benchmark.custom_task_changer import TaskShortner
def main(limit: int | list[int] | None = None):
# You can limit ids like this:
# 10, [0,1,2,3,4,5,6,7], [0,1], None
# task_changer = TaskShortner(shorten_type="short")
task_changer = None
benchmark = PlottingBenchmark(
config_path="configs/config.yaml", task_changer=task_changer
)
for i in range(1):
benchmark.run_benchmark(
limit, reuse_results=False, load_intermediate=False, only_stats=False
)
time.sleep(5)
# run_benchmark's flags:
# reuse_results - if True, does not generate plots, reuses results saved in results_filename.
# load_intermediate - if True, does not generate plots, loads intermediate results from current_results.jsonl
# that is stores intermediate results for the case of crush.
# only_stats - if True does not run benchmarking just calculates stats from the file results_filename.
if __name__ == "__main__":
fire.Fire(main)