aboutsummaryrefslogtreecommitdiff
path: root/examples/common.cpp
diff options
context:
space:
mode:
authorJason McCartney <jmac@theroot.org>2023-05-19 10:24:59 -0700
committerGitHub <noreply@github.com>2023-05-19 20:24:59 +0300
commit7694b52b9a206b93d59139c3c7c9b55da0f5aa59 (patch)
tree481ab414876bf93dcf3e18d245a68108b70d8923 /examples/common.cpp
parent79e3efb0e97b65b6cc72cd9ee970fa8189ad79a4 (diff)
main : make reverse prompt option act as a stop token in non-interactive mode (#1032)
* Make reverse prompt option act as a stop token in non-interactive scenarios * Making requested review changes * Update gpt_params_parse and fix a merge error * Revert "Update gpt_params_parse and fix a merge error" This reverts commit 2bb2ff1748513591ad45b175a75ed1d8089d84c8. * Update gpt_params_parse and fix a merge error take 2
Diffstat (limited to 'examples/common.cpp')
-rw-r--r--examples/common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/common.cpp b/examples/common.cpp
index a4fea4a..e89df53 100644
--- a/examples/common.cpp
+++ b/examples/common.cpp
@@ -351,7 +351,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
}
if (params.prompt_cache_all &&
(params.interactive || params.interactive_first ||
- params.instruct || params.antiprompt.size())) {
+ params.instruct)) {
fprintf(stderr, "error: --prompt-cache-all not supported in interactive mode yet\n");
gpt_print_usage(argc, argv, default_params);
exit(1);
@@ -373,8 +373,8 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
fprintf(stderr, " -ins, --instruct run in instruction mode (use with Alpaca models)\n");
fprintf(stderr, " --multiline-input allows you to write or paste multiple lines without ending each in '\\'\n");
fprintf(stderr, " -r PROMPT, --reverse-prompt PROMPT\n");
- fprintf(stderr, " run in interactive mode and poll user input upon seeing PROMPT (can be\n");
- fprintf(stderr, " specified more than once for multiple prompts).\n");
+ fprintf(stderr, " halt generation at PROMPT, return control in interactive mode\n");
+ fprintf(stderr, " (can be specified more than once for multiple prompts).\n");
fprintf(stderr, " --color colorise output to distinguish prompt and user input from generations\n");
fprintf(stderr, " -s SEED, --seed SEED RNG seed (default: -1, use random seed for < 0)\n");
fprintf(stderr, " -t N, --threads N number of threads to use during computation (default: %d)\n", params.n_threads);