diff options
author | 44670 <44670@users.noreply.github.com> | 2023-05-04 23:41:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 18:41:12 +0300 |
commit | 2edbdb0f99336cb41f0995061c7602ed54beb863 (patch) | |
tree | 07ab5cb105543166c1ddc50864ba04d8d4e06f30 /examples/main/README.md | |
parent | 20fbf2a2a08d8edefe9b3435fa86f8b2f63f8588 (diff) |
main : add --in-suffix option (#1318)
* adding --in-suffix option
* print input suffix before generation
Diffstat (limited to 'examples/main/README.md')
-rw-r--r-- | examples/main/README.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/main/README.md b/examples/main/README.md index 6b7facb3..35f87bcd 100644 --- a/examples/main/README.md +++ b/examples/main/README.md @@ -112,6 +112,14 @@ The `--in-prefix` flag is used to add a prefix to your input, primarily, this is ./main -r "User:" --in-prefix " " ``` +### In-Suffix + +The `--in-suffix` flag is used to add a suffix after your input. This is useful for adding an "Assistant:" prompt after the user's input. It's added after the new-line character (`\n`) that's automatically added to the end of the user's input. Here's an example of how to use the `--in-suffix` flag in conjunction with the `--reverse-prompt` flag: + +```sh +./main -r "User:" --in-prefix " " --in-suffix "Assistant:" +``` + ### Instruction Mode Instruction mode is particularly useful when working with Alpaca models, which are designed to follow user instructions for specific tasks: |