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;