File size: 702 Bytes
0c39e36
 
 
 
 
 
 
559a9e5
0c39e36
559a9e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0c39e36
559a9e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
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