Skip to content

Commit 6a805c7

Browse files
authored
More informative PPL readout line (#914)
* More informative PPL readout line * trailing whitespace..
1 parent 9d0b834 commit 6a805c7

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
@@ -682,7 +682,7 @@ static results_perplexity perplexity(llama_context * ctx, const gpt_params & par
682682
nll2 -= nll * nll;
683683
if (nll2 > 0) {
684684
nll2 = sqrt(nll2/(count-1));
685-
printf("Final estimate: PPL = %.4lf +/- %.5lf\n", ppl, nll2*ppl);
685+
printf("Final estimate: PPL over %d chunks for n_ctx=%d = %.4lf +/- %.5lf\n", n_chunk, n_ctx, ppl, nll2*ppl);
686686
} else {
687687
printf("Unexpected negative standard deviation of log(prob)\n");
688688
}

0 commit comments

Comments
 (0)