introduction to give more consistent results

This commit is contained in:
CRD716 2023-04-24 22:55:43 -05:00
parent e3159c018f
commit 9143ccefa0
No known key found for this signature in database
GPG key ID: 1EF7EDC9967E44C9

View file

@ -9,13 +9,16 @@ output_file=./examples/jeopardy/results.txt
opts="--temp 0 -n 80" # additional flags
prefix="Human: " # Ex. Vicuna uses "Human: "
nl='
'
introduction="You will be playing a game of Jeopardy. Simply answer the question in the correct format (Ex. What is Paris, or Who is George Washington)."
counter=1
echo 'Running'
while IFS= read -r question
do
exe_cmd="./main -p "\"$prefix$question\"" "$opts" -m ""\"$MODEL\""" >> ""\"$output_file\""
exe_cmd="./main -p "\"$prefix$introduction$nl$prefix$question\"" "$opts" -m ""\"$MODEL\""" >> ""\"$output_file\""
echo $counter
echo "Current Question: $question"
eval "$exe_cmd"