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
407 B18 linesraw
1#!/usr/bin/env bash
2
3cmake_args=()
4llama_results_args=()
5
6for arg in "${@}"; do
7    if [[ "$arg" == -D* ]]; then
8        cmake_args+=("$arg")
9    else
10        llama_results_args+=("$arg")
11    fi
12done
13
14dir="build-bisect"
15rm -rf ${dir} > /dev/null
16cmake -B ${dir} -S . ${cmake_args} > /dev/null
17cmake --build ${dir} -t llama-results -j $(nproc) > /dev/null
18${dir}/bin/llama-results "${llama_results_args[@]}"