Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
inside-llm loads one or two GGUF models with llama.cpp and shows in the browser what the model does while it generates: the probability of each token, the alternatives it discarded, what each sampler removes and, with two models, the divergence at every position and the exact token where their texts split. It ships as a single native binary that serves its own web page, and everything runs on the local machine, with no accounts, API keys or telemetry according to the README. The Stream panel shows one column per model with brightness for token probability and a mark where the two would pick differently, in either a lockstep mode or a mode where each model follows its own picks. The Candidates panel gives mirrored bars for each candidate with entropy, effective number of options and Jensen-Shannon and KL divergence. The Gates panel shows the sampler chain (penalties, top-k, top-p, min-p, temperature and a GBNF grammar) and how many candidates survive each stage. Further views include metrics sparklines for confidence, surprise, perplexity and speed, a timeline of entropy and divergence with a tree of branches, a 3D relief of probabilities and, with --lens, a logit lens that shows what each layer would predict. Clicking a candidate continues generation from there, every branch is kept, and the engine can return to any node exactly. The two models must share a tokenizer, for example two quantizations of one model, a base model and its fine-tune, or sizes of a family such as Qwen3.5. Any text-generating GGUF that llama.cpp loads and that fits in GPU memory works; multimodal models run on text only, and embedding-only models and split GGUF files are not supported. Packages cover Linux and Windows with CUDA or Vulkan, and sessions can be recorded and replayed in a static page without an engine or GPU, which also powers a live demo. Integrated GPUs are not used, so machines without a dedicated GPU run much slower on the CPU. The project is licensed under MIT.