Felipe97/llama-cpp-compiled
01.2k
1#!/usr/bin/env bash2 3if [ $# -lt 2 ]; then4 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 17fi8 9set -e10set -x11 12commit_bad=$113commit_good=$214script_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 reset20 