introduction to give more consistent results
This commit is contained in:
parent
e3159c018f
commit
9143ccefa0
1 changed files with 4 additions and 1 deletions
|
@ -9,13 +9,16 @@ output_file=./examples/jeopardy/results.txt
|
||||||
opts="--temp 0 -n 80" # additional flags
|
opts="--temp 0 -n 80" # additional flags
|
||||||
prefix="Human: " # Ex. Vicuna uses "Human: "
|
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
|
counter=1
|
||||||
|
|
||||||
echo 'Running'
|
echo 'Running'
|
||||||
while IFS= read -r question
|
while IFS= read -r question
|
||||||
do
|
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 $counter
|
||||||
echo "Current Question: $question"
|
echo "Current Question: $question"
|
||||||
eval "$exe_cmd"
|
eval "$exe_cmd"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue