# llama.cpp adds chunk support to its perplexity tool

> The open‑source LLM runner now honours the --chunks flag when running llama‑perplexity with --kl-divergence, fixing a long‑standing formatting issue.

Oossa · 2026-11-28 · https://oossa.com/en/llama-cpp-adds-chunk-support-to-its-perplexity-tool

The ggml‑org/llama.cpp project released version b12843 on 28 Nov 2026. The update adds proper handling of the --chunks option for the llama‑perplexity command when used with --kl-divergence, and it also cleans up output formatting.

## The facts

- Version b12843 was published on 28 Nov 2026.
- The release adds "Honor --chunks when using llama‑perplexity with --kl-divergence".

## Why it matters

It lets users obtain correct KL‑divergence values when splitting data into chunks, improving metric accuracy.

## What it means for you

If you run llama‑perplexity with the --kl-divergence flag, the new release will now respect the --chunks setting, giving you more reliable divergence scores.

**Our take:** The fix addresses a practical annoyance for developers using the tool, though it does not add new functionality beyond correcting the behavior.

## Sources & references

1. [ggml-org/llama.cpp b12843](https://github.com/ggml-org/llama.cpp/releases/tag/b12843) – llama.cpp, 2026-11-28

Last updated: 2026-11-28
