trekhleb/homemade-gpt-js

A minimal TensorFlow.js re-implementation of Karpathy's minGPT (Generative Pre-trained Transformer). The GPT model itself is <300 lines of code.

30
/ 100
Emerging

This project offers a simple, hands-on way to understand how Generative Pre-trained Transformer (GPT) models work. You can input text data, train a basic GPT model directly in your web browser using your GPU, and then generate new text. It's designed for anyone curious about the inner workings of large language models, from students to AI enthusiasts.

No commits in the last 6 months.

Use this if you want to visually and interactively learn the core concepts behind GPT by training a model and generating text in your browser.

Not ideal if you're looking for a production-ready, high-performance GPT model for complex real-world applications.

AI-education language-model-fundamentals machine-learning-training text-generation-basics neural-network-concepts
No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 9 / 25
Maturity 8 / 25
Community 13 / 25

How are scores calculated?

Stars

88

Forks

11

Language

TypeScript

License

Last pushed

Nov 12, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/trekhleb/homemade-gpt-js"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.