Skip to content

Commit 1ec8328

Browse files
committed
Clarify PPL result
1 parent de50e13 commit 1ec8328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/perplexity/perplexity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ static results_perplexity perplexity(llama_context * ctx, const gpt_params & par
676676
nll2 -= nll * nll;
677677
if (nll2 > 0) {
678678
nll2 = sqrt(nll2/(count-1));
679-
LOG_INF("Final estimate: PPL = %.4lf +/- %.5lf\n", ppl, nll2*ppl);
679+
LOG_INF("Final estimate: PPL over %d chunks for n_ctx=%d = %.4lf +/- %.5lf\n", n_chunk, n_ctx, ppl, nll2*ppl);
680680
} else {
681681
LOG_ERR("Unexpected negative standard deviation of log(prob)\n");
682682
}

0 commit comments

Comments
 (0)