Skip to content

Commit 1506b27

Browse files
committed
complete example
1 parent 51eae50 commit 1506b27

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

prefill.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
echo "Show false settings" >> query.txt
2-
cat mypyini query.txt >full.txt
1+
# compile with cmake --build build --config Release -j8 --target llama-cli
2+
3+
# prepare examples
4+
echo "Show false settings" > query.txt
5+
cat mypy.ini query.txt >full.txt
6+
37
# precompute mypy.ini into prefill.save
48
rm prefill.save
59
./llama-cli -m ~/funstreams/granite-3.1-1b-a400m-instruct-IQ4_NL.gguf -c 2000 -st --prompt-cache prefill.save -f mypy.ini -n 1
610

711
# use prefill.save to answer query
8-
./llama-cli -m /funstreams/granite-3.1-1b-a400m-instruct-IQ4_NL.gguf -c 2000 -st --prompt-cache prefill.save -f full.txt --prompt-cache-ro
12+
./llama-cli -m ~/funstreams/granite-3.1-1b-a400m-instruct-IQ4_NL.gguf -c 2000 -st --prompt-cache prefill.save -f full.txt --prompt-cache-ro
913

0 commit comments

Comments
 (0)