[KongchangAI]
Productinside llm

inside-llm

An open-source tool for visualizing the internal states of LLMs. It loads GGUF models via llama.cpp and compares the token-by-token generation process of different quantized versions in the browser, offering streaming views, candidate distributions, sampling-chain tracing, timeline branching, and Logit Lens.

Timeline (last 90 days)

Nov 16

The developer has released the open-source tool inside-llm, which loads one or two GGUF models based on llama.cpp and displays the model's internal state in real time in the browser as it generates text.

Unverified50%
Nov 16

inside-llm's streaming view displays each model's text stream in columns, where each token's brightness represents the probability level, and is marked in magenta when the two models' choices differ.

Unverified50%
Nov 16

inside-llm offers two streaming comparison modes, lockstep mode and free mode: in lockstep mode the two models read the same text, while in free mode each generates according to its own choices until they diverge.

Unverified50%
Nov 16

inside-llm's candidate distribution module compares models A and B with mirrored bar charts and computes entropy, effective number of options, Jensen-Shannon divergence, and bidirectional KL divergence.

Unverified50%
Nov 16

inside-llm's sampling chain trace (Gates) traces stage by stage through penalty, top-k, top-p, min-p, temperature, GBNF grammar and other stages, showing the number of candidates retained after each stage and the distribution changes, and the chain order and random seed are configurable to ensure experimental reproducibility.

Unverified50%
Nov 16

inside-llm maintains a KV state snapshot for each model, so that clicking any historical node in the branch tree can directly restore the K/V cache at that point and continue generation without recomputing the prefix from scratch; the snapshots occupy storage space proportional to sequence length, which is also one of the reasons the tool requires both models to be placed in VRAM at the same time.

Unverified50%
Nov 16

Via the --lens parameter, inside-llm can display each layer's prediction of the next token, presented as a 2D heatmap or a 3D relief plot.

Unverified50%
Nov 16

inside-llm uses a single C++17 process directly linking llama.cpp (currently using the stable branch), sends compact binary frames to a Svelte 5 + Canvas 2D page via WebSocket, lazily loads three.js for the 3D relief plot, and embeds the web page within the binary.

Unverified50%
Nov 16

inside-llm's recorded sessions are obtained by compressing the same frame stream, and can be replayed in a static page without an engine, model or GPU.

Unverified50%
Nov 16

inside-llm provides self-contained packages for Linux (glibc 2.35+) and Windows, supports CUDA or Vulkan (Vulkan covers AMD, Intel Arc and NVIDIA); the tool only listens on 127.0.0.1, has no accounts, no telemetry, and uses the MIT license.

Unverified50%

1 more timeline events

All Facts (11)

Unverified

inside-llm's limitations include: the two models must share a tokenizer; both models must be placed in VRAM simultaneously and only one GPU is used at a time; integrated graphics are not used and it falls back to CPU when there is no discrete GPU; only text is supported, and sharded GGUF and embedding models are not supported.

50%
Unverified

inside-llm's streaming view displays each model's text stream in columns, where each token's brightness represents the probability level, and is marked in magenta when the two models' choices differ.

50%
Unverified

inside-llm offers two streaming comparison modes, lockstep mode and free mode: in lockstep mode the two models read the same text, while in free mode each generates according to its own choices until they diverge.

50%
Unverified

inside-llm's candidate distribution module compares models A and B with mirrored bar charts and computes entropy, effective number of options, Jensen-Shannon divergence, and bidirectional KL divergence.

50%
Unverified

inside-llm's sampling chain trace (Gates) traces stage by stage through penalty, top-k, top-p, min-p, temperature, GBNF grammar and other stages, showing the number of candidates retained after each stage and the distribution changes, and the chain order and random seed are configurable to ensure experimental reproducibility.

50%
Unverified

inside-llm maintains a KV state snapshot for each model, so that clicking any historical node in the branch tree can directly restore the K/V cache at that point and continue generation without recomputing the prefix from scratch; the snapshots occupy storage space proportional to sequence length, which is also one of the reasons the tool requires both models to be placed in VRAM at the same time.

50%
Unverified

Via the --lens parameter, inside-llm can display each layer's prediction of the next token, presented as a 2D heatmap or a 3D relief plot.

50%
Unverified

inside-llm uses a single C++17 process directly linking llama.cpp (currently using the stable branch), sends compact binary frames to a Svelte 5 + Canvas 2D page via WebSocket, lazily loads three.js for the 3D relief plot, and embeds the web page within the binary.

50%
Unverified

inside-llm's recorded sessions are obtained by compressing the same frame stream, and can be replayed in a static page without an engine, model or GPU.

50%
Unverified

inside-llm provides self-contained packages for Linux (glibc 2.35+) and Windows, supports CUDA or Vulkan (Vulkan covers AMD, Intel Arc and NVIDIA); the tool only listens on 127.0.0.1, has no accounts, no telemetry, and uses the MIT license.

50%
Unverified

The developer has released the open-source tool inside-llm, which loads one or two GGUF models based on llama.cpp and displays the model's internal state in real time in the browser as it generates text.

50%

Source Articles