From: Georgi Gerganov Date: Fri, 18 Aug 2023 09:48:55 +0000 (+0300) Subject: perplexity : more meaningful ETA number - 2 decimal points X-Git-Tag: gguf-v0.4.0~305 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e9b12c332ec6e215fbac4b2ef165353acbcd8319;p=pkg%2Fggml%2Fsources%2Fllama.cpp perplexity : more meaningful ETA number - 2 decimal points --- diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index 62433e98..b9b28a20 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -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)