From: Aman Gupta Date: Wed, 11 Mar 2026 16:14:42 +0000 (+0800) Subject: compare-llama-bench: check remotes as well (#20406) X-Git-Tag: upstream/0.0.8611~318 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=bd1ec818e9f1a2ac8488ed7d6c925fd7e28bf9b4;p=pkg%2Fggml%2Fsources%2Fllama.cpp compare-llama-bench: check remotes as well (#20406) --- diff --git a/scripts/compare-llama-bench.py b/scripts/compare-llama-bench.py index 9541b89eb..14e75117c 100755 --- a/scripts/compare-llama-bench.py +++ b/scripts/compare-llama-bench.py @@ -293,6 +293,10 @@ class LlamaBenchData: for t in self.repo.tags: if t.name == name: return t.commit.hexsha[:self.build_len] + for remote in self.repo.remotes: + for ref in remote.refs: + if ref.name == name or ref.remote_head == name: + return ref.commit.hexsha[:self.build_len] for c in self.repo.iter_commits("--all"): if c.hexsha[:self.build_len] == name[:self.build_len]: return c.hexsha[:self.build_len]