inside-llm shows the exact token where two quantizations of a model part ways
A single binary runs two GGUF files side by side on llama.cpp and shows each token's probability, the alternatives, and what every sampler stage removed.
Anyone who runs local models has picked a quantization level by feel. inside-llm, by Manuel García, replaces the feel with a picture: load two GGUF files, give them the same prompt, and watch where their probabilities drift apart and which token finally sends them down different sentences.
How it works
The engine is C++17 linked directly against llama.cpp, shipped as one native binary that serves its own web page on localhost port 8642. The README says there are no accounts, API keys, or telemetry.
At every step it reads the full probability distribution from model A and, on the same context, from model B. It reports entropy, an “effective number of options”, Jensen-Shannon divergence, and KL divergence in both directions.
There are two comparison modes. In lockstep, both models read the same driving text, so you see how differently they score an identical history. In free mode, each follows its own picks until the texts split. The README’s demo pair is Qwen3.5-4B at Q2_K (2.2 GB) and Q8_0 (4.6 GB): at position 31 one picks “six” and the other picks “eight”, and that is where they separate.
The same view works for a base model and its fine-tune, as long as both share a tokenizer.
The sampler, one gate at a time
The second idea is to unroll the sampler chain. Penalties, top-k, top-p, min-p, temperature, and an optional GBNF grammar each get a stage. Click one and you see the distribution after it and how many candidates survived.
You can also click a discarded candidate and continue from there; the branches are kept as a tree. A --lens flag adds a logit lens, projecting what intermediate layers would have predicted, at a stated cost of about 2 GB of RAM per model and some 30 ms per step.
Sessions can be recorded and replayed in a static page with no engine or GPU, which is how the author’s hosted demo works.
Try it yourself
The repo is MIT licensed, and version 1.0.0 landed on November 15. There are packages for Linux and Windows in CUDA and Vulkan flavors, or a Docker-based source build. To start with two models:
inside-llm -a A.gguf -b B.gguf
The limits listed in the README: both models must fit in GPU memory at once, integrated GPUs are not used (it falls back to a much slower CPU path), it is text only, multi-part GGUF files are not supported, and there is no authentication, so keep it on your own machine. make run-fake starts a scripted fake model for trying the interface without a GPU.
We have not run it or opened the demo; this is based on the README and the commit history.