From: Georgi Gerganov Date: Sun, 2 Jul 2023 18:41:23 +0000 (+0300) Subject: examples : remove whitespace X-Git-Tag: upstream/0.0.1642~1358 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=eea1d89ea7352f84df69761be76a914d49d023d6;p=pkg%2Fggml%2Fsources%2Fggml examples : remove whitespace --- diff --git a/examples/common.cpp b/examples/common.cpp index 7b01089b..960656de 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -42,7 +42,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) { } else if (arg == "--repeat-last-n") { params.repeat_last_n = std::stof(argv[++i]); } else if (arg == "--repeat-penalty") { - params.repeat_penalty = std::stof(argv[++i]); + params.repeat_penalty = std::stof(argv[++i]); } else if (arg == "-b" || arg == "--batch_size") { params.n_batch = std::stoi(argv[++i]); } else if (arg == "-m" || arg == "--model") { @@ -95,7 +95,7 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) { fprintf(stderr, " --top_p N top-p sampling (default: %.1f)\n", params.top_p); fprintf(stderr, " --temp N temperature (default: %.1f)\n", params.temp); fprintf(stderr, " --repeat-last-n N last n tokens to consider for penalize (default: %d, 0 = disabled)\n", params.repeat_last_n); - fprintf(stderr, " --repeat-penalty N penalize repeat sequence of tokens (default: %.2f, 1.0 = disabled)\n", (double)params.repeat_penalty); + fprintf(stderr, " --repeat-penalty N penalize repeat sequence of tokens (default: %.2f, 1.0 = disabled)\n", (double)params.repeat_penalty); fprintf(stderr, " -b N, --batch_size N batch size for prompt processing (default: %d)\n", params.n_batch); fprintf(stderr, " -m FNAME, --model FNAME\n"); fprintf(stderr, " model path (default: %s)\n", params.model.c_str());