Skip to content

Commit

Permalink
add reverse prompt for llamacpp chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ymcui committed May 15, 2024
1 parent 7b05ab4 commit db68211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/llama_cpp/chat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SYSTEM_PROMPT="You are a helpful assistant. 你是一个乐于助人的助手。

./main -m $1 --color -i \
-c 0 -t 6 --temp 0.2 --repeat_penalty 1.1 -ngl 999 \
-r '<|eot_id|>' \
--in-prefix '<|start_header_id|>user<|end_header_id|>\n\n' \
--in-suffix '<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n' \
-p "<|start_header_id|>system<|end_header_id|>\n\n$SYSTEM_PROMPT<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n$FIRST_INSTRUCTION<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"

0 comments on commit db68211

Please sign in to comment.