LLM Token Explorer
A browser-based workbench that runs small language models entirely on your device to show tokenization, next-token probabilities, the full token vocabulary, and token-by-token sampling.
Note: Desktop Recommended
About this project
I made a little webapp to run small LLM AI models directly in a browser. No API calls are needed and installing additional software is not necessary. It is primarily meant to be a learning tool to help gain a better appreciation for the inference engine that runs to generate new tokens in a response when using an AI agent.
The app lets you enter any text into the context window, shows you the tokenization of the text into tokens, displays the probability distribution of potential next tokens, enables browsing through the entire token lexicon, and lets you iteratively sample tokens from the model you are running.
Screenshots
(view full size)
(view full size)
(view full size)
(view full size)