From abd66a9c275a810e9846d9ad2aabbd77873f199c Mon Sep 17 00:00:00 2001 From: klosax <131523366+klosax@users.noreply.github.com> Date: Sat, 22 Jul 2023 12:42:22 +0200 Subject: [PATCH] Update perplexity.cpp --- examples/perplexity/perplexity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index c804f4cfe..d23b7e7f0 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -180,7 +180,7 @@ void perplexity_lines(llama_context * ctx, const gpt_params & params) { nllline += -std::log(prob); ++countline; } - + nll += nllline; counttotal += countline;