A character-level GPT trained on Shakespeare, running entirely in your browser.
This is Karpathy's minGPT (gpt-micro) reimplemented in TensorFlow.js and pre-trained on ~1M characters of Shakespeare. The model was trained offline in Node.js and the weights are loaded for inference here.