From f7229f23d73ba65a93b73f16e80ca982607d6d2d Mon Sep 17 00:00:00 2001 From: Jason McCartney Date: Thu, 11 May 2023 11:14:08 -0700 Subject: [PATCH] Making requested review changes --- examples/common.cpp | 5 ++--- examples/main/main.cpp | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/common.cpp b/examples/common.cpp index 946c1caa2..7d488bead 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -223,9 +223,8 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) { fprintf(stderr, " --interactive-first run in interactive mode and wait for input right away\n"); fprintf(stderr, " -ins, --instruct run in instruction mode (use with Alpaca models)\n"); fprintf(stderr, " -r PROMPT, --reverse-prompt PROMPT\n"); - fprintf(stderr, " specify a PROMPT that will cause generation to stop\n"); - fprintf(stderr, " if running interactive, 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); diff --git a/examples/main/main.cpp b/examples/main/main.cpp index 831a37524..d44579aff 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -358,9 +358,7 @@ int main(int argc, char ** argv) { set_console_color(con_st, CONSOLE_COLOR_DEFAULT); } - // in not currently processing queued inputs; - // check if we should prompt the user for more - // or quit + // if not currently processing queued inputs; if ((int) embd_inp.size() <= n_consumed) { // check for reverse prompt