From: Georgi Gerganov Date: Sat, 16 Nov 2024 08:32:50 +0000 (+0200) Subject: scripts : fix missing key in compare-llama-bench.py (#10332) X-Git-Tag: upstream/0.0.4488~388 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f245cc28d4eb900efad0bc740145f58d713c6e4f;p=pkg%2Fggml%2Fsources%2Fllama.cpp scripts : fix missing key in compare-llama-bench.py (#10332) --- diff --git a/scripts/compare-llama-bench.py b/scripts/compare-llama-bench.py index 6125a080..5069ae63 100755 --- a/scripts/compare-llama-bench.py +++ b/scripts/compare-llama-bench.py @@ -303,14 +303,11 @@ else: show = [] # Show CPU and/or GPU by default even if the hardware for all results is the same: - if "gpu_blas" not in properties_different and "n_gpu_layers" not in properties_different: - gpu_blas = bool(rows_full[0][KEY_PROPERTIES.index("gpu_blas")]) + if "n_gpu_layers" not in properties_different: ngl = int(rows_full[0][KEY_PROPERTIES.index("n_gpu_layers")]) - if not gpu_blas or ngl != 99 and "cpu_info" not in properties_different: + if ngl != 99 and "cpu_info" not in properties_different: show.append("cpu_info") - if gpu_blas and "gpu_info" not in properties_different: - show.append("gpu_info") show += properties_different