metal_detector
LiveAn interactive tool for looking at logits, one forward pass at a time. Run a small language model in your browser and see every token it considered, the probability it gave each one, and why it picked the one it did.
- Custom autoregressive generation loop with Transformers.js that captures vocabulary-wide logits across successive forward passes and picks tokens by greedy decoding
- Numerically stable softmax, top-k selection, and Shannon entropy to analyze next-token probability distributions across sequence positions
- Turned the theory i was learning in shovel into something visually appealing