char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Johannes Gäßlerllama: end-to-end tests (#19802)a976ff081

char/aliceai-t5-moe
615 B19 linesraw
1#!/usr/bin/env bash
2
3if [ $# -lt 2 ]; then
4    echo "usage: ./scripts/git-bisect.sh <commit_bad> <commit_good> [additional arguments]"
5    echo "  additional arguments: passed to CMake if they start with \"-D\", to llama-results otherwise"
6    exit 1
7fi
8
9set -e
10set -x
11
12commit_bad=$1
13commit_good=$2
14script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
15git checkout ${commit_good}
16${script_dir}/git-bisect-run.sh --output results.gguf "${@:3}"
17git bisect start ${commit_bad} ${commit_good}
18git bisect run ${script_dir}/git-bisect-run.sh --output results.gguf --check "${@:3}"
19git bisect reset