aboutsummaryrefslogtreecommitdiff
path: root/examples/reason-act.sh
diff options
context:
space:
mode:
authorTobias Lütke <tobi@shopify.com>2023-03-29 17:10:24 +0200
committerGitHub <noreply@github.com>2023-03-29 10:10:24 -0500
commita6956b25a1c783e5e96fe06c9c00438f846ef047 (patch)
treec053a777ccd578ab526b336e93e03fa0e8d48c28 /examples/reason-act.sh
parent83df5639eb182ed7c122382907691d8baa3c32df (diff)
add example of re-act pattern (#583)
* add example of re-act pattern * spelling... * fixed whitespace in reverse prompt issue
Diffstat (limited to 'examples/reason-act.sh')
-rwxr-xr-xexamples/reason-act.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/reason-act.sh b/examples/reason-act.sh
new file mode 100755
index 0000000..e7fe655
--- /dev/null
+++ b/examples/reason-act.sh
@@ -0,0 +1,17 @@
+
+#!/bin/bash
+
+cd `dirname $0`
+cd ..
+
+# get -m model parameter otherwise defer to default
+if [ "$1" == "-m" ]; then
+ MODEL="-m $2 "
+fi
+
+./main $MODEL --color \
+ -f ./prompts/reason-act.txt \
+ -i --interactive-first \
+ --top_k 10000 --temp 0.2 --repeat_penalty 1 -t 7 -c 2048 \
+ -r "Question:" -r "Observation:" --in-prefix " " \
+ -n -1