]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
examples : add -n to alpaca and gpt4all scripts (#706)
authorniansa/tuxifan <redacted>
Thu, 13 Apr 2023 13:03:39 +0000 (15:03 +0200)
committerGitHub <redacted>
Thu, 13 Apr 2023 13:03:39 +0000 (16:03 +0300)
examples/alpaca.sh
examples/gpt4all.sh

index 4c9aa5077c9ac922f20708f451f87018c21d00ef..8d626173030cd2120d3e0bab8c4282f1d44332ae 100755 (executable)
@@ -7,4 +7,4 @@
 cd `dirname $0`
 cd ..
 
-./main -m ./models/ggml-alpaca-7b-q4.bin --color -f ./prompts/alpaca.txt -ins -b 256 --top_k 10000 --temp 0.2 --repeat_penalty 1 -t 7
+./main -m ./models/ggml-alpaca-7b-q4.bin --color -f ./prompts/alpaca.txt --ctx_size 2048 -n -1 -ins -b 256 --top_k 10000 --temp 0.2 --repeat_penalty 1 -t 7
index d974f95a920e19770865801e3afdf7d4a6487088..5fd739e55c554a3e7f855c147789d873fd7aff24 100755 (executable)
@@ -10,6 +10,6 @@ cd ..
 ./main --color --instruct --threads 4 \
        --model ./models/gpt4all-7B/gpt4all-lora-quantized.bin \
        --file ./prompts/alpaca.txt \
-       --batch_size 8 --ctx_size 2048 \
+       --batch_size 8 --ctx_size 2048 -n -1 \
        --repeat_last_n 64 --repeat_penalty 1.3 \
        --n_predict 128 --temp 0.1 --top_k 40 --top_p 0.95