diff options
author | slaren <slarengh@gmail.com> | 2024-05-10 18:03:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 18:03:54 +0200 |
commit | e849648888a11de13aaaa4cb2eda3f5a9c7b444d (patch) | |
tree | 84c25f4fc82d1fb09d0e809e8b8e8c67d7eecb00 /scripts/compare-llama-bench.py | |
parent | 18e437665ce626dddbd79119aa7498493e7cb13b (diff) |
llama-bench : add pp+tg test type (#7199)
Diffstat (limited to 'scripts/compare-llama-bench.py')
-rwxr-xr-x | scripts/compare-llama-bench.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/compare-llama-bench.py b/scripts/compare-llama-bench.py index fed3c1ee..0ede9e67 100755 --- a/scripts/compare-llama-bench.py +++ b/scripts/compare-llama-bench.py @@ -325,8 +325,12 @@ table = [] for row in rows_show: n_prompt = int(row[-4]) n_gen = int(row[-3]) - assert n_prompt == 0 or n_gen == 0 - test_name = f"tg{n_gen}" if n_prompt == 0 else f"pp{n_prompt}" + if n_prompt != 0 and n_gen == 0: + test_name = f"pp{n_prompt}" + elif n_prompt == 0 and n_gen != 0: + test_name = f"tg{n_gen}" + else: + test_name = f"pp{n_prompt}+tg{n_gen}" # Regular columns test name avg t/s values Speedup # VVVVVVVVVVVVV VVVVVVVVV VVVVVVVVVVVVVV VVVVVVV table.append(list(row[:-4]) + [test_name] + list(row[-2:]) + [float(row[-1]) / float(row[-2])]) |