From f649e36a61aa9970bea6fd56874fde4ee069eb3a Mon Sep 17 00:00:00 2001 From: AesSedai <7980540+AesSedai@users.noreply.github.com> Date: Sat, 4 Oct 2025 22:13:32 -0700 Subject: [PATCH] Remove duplicate 99% KLD output, add additional percentiles to match mainline (#817) --- examples/perplexity/perplexity.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index 12702693..bbb5fd20 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -1925,11 +1925,13 @@ static void kl_divergence(llama_context * ctx, const gpt_params & params) { printf("Maximum KLD: %10.6f\n", kld_values.back()); printf("99.9%% KLD: %10.6f\n", percentile(kld_values, 0.999f)); printf("99.0%% KLD: %10.6f\n", percentile(kld_values, 0.990f)); - printf("99.0%% KLD: %10.6f\n", percentile(kld_values, 0.990f)); + printf("95.0%% KLD: %10.6f\n", percentile(kld_values, 0.950f)); + printf("90.0%% KLD: %10.6f\n", percentile(kld_values, 0.900f)); printf("Median KLD: %10.6f\n", kld_median); printf("10.0%% KLD: %10.6f\n", percentile(kld_values, 0.100f)); printf(" 5.0%% KLD: %10.6f\n", percentile(kld_values, 0.050f)); printf(" 1.0%% KLD: %10.6f\n", percentile(kld_values, 0.010f)); + printf(" 0.1%% KLD: %10.6f\n", percentile(kld_values, 0.001f)); printf("Minimum KLD: %10.6f\n", kld_values.front()); printf("\n");