xenova/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.
JavaScript103 stars7 forks
What it does
microgpt.js is a pure JavaScript implementation of the GPT training and inference algorithm, designed to run in various environments without dependencies. It allows developers to explore GPT functionalities in a lightweight manner, inspired by Karpathy's original Python version.
Star history
Not enough history yet — 1 day(s) recorded. The daily snapshot builds this up.
Tracking
- Last trending
- 2026-02-21
Creator kit
Hook
Discover how to harness the power of GPT in your JavaScript projects with microgpt.js!
Content angles
- Create a tutorial on setting up microgpt.js for beginners in AI.
- Compare the performance of microgpt.js with other GPT implementations.
- Showcase creative applications of microgpt.js in web development.
Who should care
JavaScript developers interested in AI and machine learning applications.