]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
perplexity : more meaningful ETA number - 2 decimal points
authorGeorgi Gerganov <redacted>
Fri, 18 Aug 2023 09:48:55 +0000 (12:48 +0300)
committerGeorgi Gerganov <redacted>
Fri, 18 Aug 2023 09:48:55 +0000 (12:48 +0300)
examples/perplexity/perplexity.cpp

index 62433e983df9c4cb770ff36516685a9a3d55610a..b9b28a20b58aee2d904f8e0c9397e5e39207de04 100644 (file)
@@ -88,7 +88,7 @@ void perplexity(llama_context * ctx, const gpt_params & params) {
                 fprintf(stderr, "%d hours ", total_seconds / (60*60));
                 total_seconds = total_seconds % (60*60);
             }
-            fprintf(stderr, "%d minutes\n", total_seconds / 60);
+            fprintf(stderr, "%.2f minutes\n", total_seconds / 60.0);
         }
 
         // We get the logits for all the tokens in the context window (params.n_ctx)