--- license: mit language: - en pipeline_tag: text-generation --- # A (Useless) Text Model in pure JS > lol js a useless text model. i was js bored so experimented with nodejs to train a model in pure js from scratch and its the result. ## ๐Ÿงช About This Experiment The model is trained on a 20k sample of everyday english. The training script can be found in the repo, named `train.js`. **Heads up:** it's not perfect! I'm still js experimenting. ## ๐Ÿš€ How to Run 1. Clone the repo in your work dir. 2. Then make sure to install [Node.js](https://nodejs.org/) or [Bun](https://bun.sh/). 3. And run one of the following commands in your terminal: To use **Node.js**: ```bash node index.js