Compare commits

..
1 Commits
Author SHA1 Message Date
Ed Addario 918fe468db Honor --chunks when using llama-perplexity with --kl-divergence (#32257)
* Honour --chunks when using --kl-divergence
* Fix formatting
2026-11-28 23:03:31 +01:00
+4
View File
@@ -1719,6 +1719,10 @@ static void kl_divergence(llama_context * ctx, const common_params & params) {
return;
}
if (params.n_chunks >= 0) {
n_chunk = std::min(n_chunk, params.n_chunks);
}
const int n_batch = params.n_batch;
const int num_batches = (static_cast<int>(n_ctx) + n_batch - 1) / n_batch;
// Calculate n_seq based on the logits file's n_ctx, but cap it at what the context supports