Microgpt.js
The most atomic way to train and inference a GPT in pure, dependency-free JavaScript. This repository covers the complete algorithm. Everything else is just efficiency. Inspired by Karpathy's microgpt.py.
Install / Use
/learn @xenova/Microgpt.jsREADME
microgpt.js
The most atomic way to train and inference a GPT in pure, dependency-free JavaScript. This repository covers the complete algorithm. Everything else is just efficiency.
Adapted from Karpathy's microgpt.py. This implementation matches the original exactly, but now can run in JavaScript environments, including browsers and Node.js.
