From: Georgi Gerganov Date: Tue, 21 Mar 2023 16:09:37 +0000 (+0200) Subject: Add chat.sh script X-Git-Tag: gguf-v0.4.0~1177 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=dc6a845b8573cd7d06c6b295241d26f311602a1f;p=pkg%2Fggml%2Fsources%2Fllama.cpp Add chat.sh script --- diff --git a/README.md b/README.md index f0b0c2a5..62cf82d8 100644 --- a/README.md +++ b/README.md @@ -179,8 +179,11 @@ In this mode, you can always interrupt generation by pressing Ctrl+C and enter o Here is an example few-shot interaction, invoked with the command ``` -./main -m ./models/13B/ggml-model-q4_0.bin -n 256 --repeat_penalty 1.0 --color -i -r "User:" -f prompts/chat-with-bob.txt +# default arguments using 7B model +./chat.sh +# custom arguments using 13B model +./main -m ./models/13B/ggml-model-q4_0.bin -n 256 --repeat_penalty 1.0 --color -i -r "User:" -f prompts/chat-with-bob.txt ``` Note the use of `--color` to distinguish between user input and generated text. diff --git a/chat.sh b/chat.sh new file mode 100755 index 00000000..24a0f10a --- /dev/null +++ b/chat.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# +# Temporary script - will be removed in the future +# + +./main -m ./models/7B/ggml-model-q4_0.bin -n 256 --repeat_penalty 1.0 --color -i -r "User:" -f prompts/chat-with-bob.txt