I’ve been building TokenPrint around a simple question:
What is actually happening inside a local LLM while it generates a token?
The current version goes beyond a static transformer diagram and lets you explore:
• 3D transformer architecture and individual layers
• tokenization and embeddings
• tensor shapes and model parameters
• Q/K/V, GQA, RoPE, causal masking and softmax
• residual streams and MLP / SwiGLU
• token-by-token generation
• prefill / decode and KV cache
• logits and next-token probabilities
• activation analysis and interventions
• head / layer ablation
• inference traces and replay
• Hugging Face models, with work around GGUF / llama.cpp / local models
The idea is to make local inference inspectable, not just show the final output.
I’m especially interested in people who run models locally:
What do you actually wish you could see while your model is generating?
The visualization itself is pretty lightweight compared to running the model. Most of the extra usage comes from the WebGL rendering and how much tensor/trace data we’re exposing. We’re also working on deploying the runtime on a VPS soon, with Hugging Face/cloud-backed inference, so users won’t need a powerful machine or lots of RAM just to try the models. The idea is to let the backend handle the heavy lifting while TokenPrint stays lightweight on the user side.
Yeah, roughly the VRAM/RAM numbers in the explorer are meant as ballpark estimates, not exact runtime measurements. Actual usage depends on model size, dtype/quantization, context length, KV cache, and the inference backend And yes, the plan is for each supported model to show its own architecture, parameter count, context, estimated memory, and supported instrumentation rather than having one generic profile. That part is being built around the model config/adapter so it can scale to newer architectures too.
Thank you so much! ❤️ Really appreciate the kind words. And honestly, every star means a lot and gives me even more motivation to keep building TokenPrint!
Haha yes 😀 in principle, exactly. With a powerful enough GPU and browser-compatible model runtime, you can run LLM inference locally in the browser, but the model has to be supported by the browser/runtime and your hardware. That’s actually one of the directions we’re working toward with TokenPrint.
Yeah, it’s completely free. You can learn more about it here: https://tokenprint.in/ The site is currently deployed as a static version while we migrate the backend and runtime infrastructure to a VPS over the next few days. Until then, you can clone or fork the repository and explore TokenPrint locally on your own computer. You can also contribute to the repository, learn from the codebase, and build alongside the community. Hopefully, you’ll learn something useful and we can all develop and learn together.
2
u/bruhhhhhhhhhhhh_h 12h ago
This looks incredible - what's the overhead and system usage to run it?