]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
examples : remove whitespace
authorGeorgi Gerganov <redacted>
Sun, 2 Jul 2023 18:41:23 +0000 (21:41 +0300)
committerGeorgi Gerganov <redacted>
Sun, 2 Jul 2023 18:41:23 +0000 (21:41 +0300)
examples/common.cpp

index 7b01089b0e04105ed0975d3a5c7ab0290305b0b1..960656def7aa9707793fbeef275d69fd14d04cbd 100644 (file)
@@ -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());