forked from ggerganov/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main : alternative instruct mode (Vicuna support, etc.) (ggerganov#863)
* Add support for configs, add configurable prefixes / suffixes, deprecate instruct mode, add stop prompt * Add multiline mode, update text input. * bugfix * update implementation * typos * Change --multiline implementation to be toggled by EOF. * bugfix * default multiline mode * add more configs * update formating * update formatting * apply suggestions
- Loading branch information
Showing
12 changed files
with
434 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--ctx_size 2048 | ||
--batch_size 16 | ||
--repeat_penalty 1.15 | ||
--temp 0.4 | ||
--top_k 30 | ||
--top_p 0.18 | ||
|
||
--interactive-first | ||
--keep -1 | ||
|
||
--ins-prefix-bos | ||
--ins-prefix "\n\nUser: " | ||
--ins-suffix "\n\nAssistant: " | ||
--reverse-prompt "User: " | ||
|
||
-p "You are an AI language model designed to assist the User by answering their questions, offering advice, and engaging in casual conversation in a friendly, helpful, and informative manner. You respond clearly, coherently, and you consider the conversation history. | ||
|
||
User: Hey, how's it going? | ||
|
||
Assistant: Hey there! I'm doing great, thank you. What can I help you with today? Let's have a fun chat!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--clean-interface | ||
--interactive-first | ||
--keep -1 | ||
--ins-prefix-bos | ||
--ins-prefix "\n\n### Instruction:\n\n" | ||
--ins-suffix "\n\n### Response:\n\n" | ||
--reverse-prompt "### Instruction:\n\n" | ||
|
||
-p "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--interactive-first | ||
--keep -1 | ||
--ins-prefix-bos | ||
--ins-prefix "\nUser: " | ||
--ins-suffix "\nBob: " | ||
--reverse-prompt "User: " | ||
--rm-trailing-space-workaround | ||
|
||
-p "Transcript of a dialog, where the User interacts with an Assistant named Bob. Bob is helpful, kind, honest, good at writing, and never fails to answer the User's requests immediately and with precision. | ||
|
||
User: Hello, Bob. | ||
Bob: Hello. How may I help you today? | ||
User: Please tell me the largest city in Europe. | ||
Bob: Sure. The largest city in Europe is Moscow, the capital of Russia." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--interactive-first | ||
--keep -1 | ||
--temp 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--interactive-first | ||
--keep -1 | ||
--ins-prefix-bos | ||
--ins-prefix "\n### Human: " | ||
--ins-suffix "\n### Assistant: " | ||
--reverse-prompt "### Human: " | ||
--rm-trailing-space-workaround |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--interactive-first | ||
--keep -1 | ||
--ins-prefix-bos | ||
--ins-prefix "\n### Human: " | ||
--ins-suffix "\n### Assistant: " | ||
--reverse-prompt "### Human: " | ||
--stop-prompt "### Assistant: " | ||
--rm-trailing-space-workaround |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--interactive-first | ||
--keep -1 | ||
--ins-prefix-bos | ||
--ins-prefix "\n### Human: " | ||
--ins-suffix "\n### Assistant: " | ||
--reverse-prompt "### Human: " | ||
--rm-trailing-space-workaround | ||
|
||
-p "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions." |
Oops, something went wrong.