Skip to content

Firsthand.today

inside-llm: an open-source tool to inspect LLM internals and compare two quantizations token by token

Summary

inside-llm loads one or two GGUF models via llama.cpp and shows in the browser per-token probabilities, sampler-chain gates, entropy and Jensen-Shannon/KL divergence between quants, plus branching and logit-lens views. It requires a shared tokenizer and both models fitting in VRAM.

What the comments say

  • Divergence is Jensen-Shannon between the two models' full next-token distributions, which only works because both share a tokenizer; the 3D view sorts each position by the foreground model's probabilities and draws the other on the same tokens.

    — AlternativeEnough352 · Reddit
  • Comparing two full-size models like 27B/31B simultaneously is impractical even on a 5090 without tiny quants and KV; a hot-reload option for A/B models would let users test larger models.

    — nickthatworks · Reddit
  • Seeing where two quants diverge does not by itself explain what the divergence means or what to do with it, so the tool's practical payoff is still unclear.

    — DrinkLimp9395 · Reddit
  • Observing internals is not the same as understanding them; visualization is a first step toward learning rather than an explanation.

    — _underlines_, AlternativeEnough352 · Reddit
  • Unsloth UD versus standard quants is a comparison worth running first.

    — florinandrei · Reddit

Join the discussion

Was this useful to you?