Run the code behind an LLM, on your own text
The programs behind the animations in my article on how LLMs work. Paste your own text or list of names, change the numbers, press Run. Everything runs in your browser; nothing is sent anywhere. Download any of them and run it with node.
- ✓ Runs in your browser
- ✓ Edit and re-run as often as you like
- ✓ Download as a .js file
Next-word prediction
Counts which word follows which in your text, then writes new text: scores → softmax with temperature → pick → repeat.
Loading the JavaScript…