From e82439a36e93ba97754e3d6626ceb2df445e775d Mon Sep 17 00:00:00 2001 From: CRD716 Date: Mon, 24 Apr 2023 21:59:06 -0500 Subject: [PATCH] Prefixes, Line separators, etc --- examples/jeopardy/jeopardy.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/jeopardy/jeopardy.sh b/examples/jeopardy/jeopardy.sh index 1d791cc55..04e9a7656 100644 --- a/examples/jeopardy/jeopardy.sh +++ b/examples/jeopardy/jeopardy.sh @@ -6,16 +6,19 @@ MODEL=./models/ggml-vicuna-13b-1.1-q4_0.bin # exec options question_file=./examples/jeopardy/questions.txt output_file=./examples/jeopardy/results.txt -opts="" # additional flags +opts="--temp 0 -n 80" # additional flags +prefix="Human: " # Ex. Vicuna uses "Human: " + counter=1 echo 'Running' while IFS= read -r question do - exe_cmd="./main -p "\"$question\"" "$opts" -m ""\"$MODEL\""" >> ""\"$output_file\"" + exe_cmd="./main -p "\"$prefix$question\"" "$opts" -m ""\"$MODEL\""" >> ""\"$output_file\"" echo $counter - echo "$question" + echo "Current Question: $question" eval "$exe_cmd" + echo -e "\n------" >> $output_file counter=$((counter+1)) done < "$question_file"