More informative PPL readout line (#914)

* More informative PPL readout line

* trailing whitespace..
This commit is contained in:
Nexes the Elder
2025-11-07 15:41:24 +01:00
committed by GitHub
parent 532a05e466
commit f9a411e5db

View File

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