whatisgithub

What is mingpt?

emilwallner/mingpt — explained in plain English

Analysis updated 2026-08-03 · repo last pushed 2020-12-22

3Jupyter NotebookAudience · researcherComplexity · 2/5DormantSetup · easy

In one sentence

An educational project that builds a small AI model from scratch to solve math problems and learn to recognize its own mistakes. It teaches AI fundamentals step-by-step using interactive notebooks.

Mindmap

mindmap
  root((repo))
    What it does
      Builds small AI model
      Solves math problems
      Self-aware tokens
      Learns from mistakes
    Tech stack
      Jupyter Notebook
      Python
      Data generation
    Use cases
      Learn AI internals
      Self-correcting models
      Hands-on AI training
    Audience
      AI learners
      Founders
      Beginners
    Project status
      Work in progress
      Active experimentation

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Learn how AI models are trained from scratch by following a step-by-step math problem example.

USE CASE 2

Understand how an AI can be taught to recognize its own mistakes and self-correct.

USE CASE 3

Experiment with data preparation, model training, and evaluation in an interactive notebook format.

What is it built with?

Jupyter NotebookPython

How does it compare?

emilwallner/mingptabdurrafey237/rag-chatbotatcold/figures-yann
Stars333
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Last pushed2020-12-222023-06-24
MaintenanceDormantDormant
Setup difficultyeasymoderateeasy
Complexity2/53/51/5
Audienceresearchergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Run Jupyter Notebook cells in order, no external services or API keys required.

So what is it?

This project, emilwallner/mingpt, is an educational experiment in building a small AI model from scratch. Rather than using a massive, off-the-shelf AI system, it breaks down the underlying mechanics so you can see how these models actually learn. The specific focus here is teaching an AI to solve math problems and, notably, to recognize when it has made a mistake. At a high level, the project trains a mini version of the technology behind modern text AI models. It starts by generating a dataset of math problems, then teaches the model to predict the answers. The interesting twist is a feature the creator calls "self-aware tokens." After the model attempts to solve a math problem, a second process checks if the answer is right or wrong, and the model is then trained to predict its own accuracy. It essentially learns to grade itself, using its past mistakes to inform future attempts. The work is aimed at AI learners and researchers who want to understand the building blocks of artificial intelligence without getting lost in complex, production-level code. For example, if you are a founder or a beginner trying to grasp how an AI can be trained to self-correct, this project provides a tangible, stripped-down example. Instead of treating the AI as a black box, it shows the step-by-step process of data preparation, training, and evaluation. The project is built entirely in Jupyter Notebooks, which are interactive documents popular in data science for mixing code, visualizations, and explanations. This makes it easy to read and follow along. The README consists mostly of a to-do list, indicating the project is still a work in progress. The creator is actively experimenting with ways to measure the model's learning limits and adjust how much computing power it uses at different stages of training.

Copy-paste prompts

Prompt 1
Show me how to build a mini AI model from scratch that learns to solve math problems and recognize when it makes mistakes, inspired by the mingpt project.
Prompt 2
Walk me through the concept of self-aware tokens where an AI model is trained to predict its own accuracy on math problems.
Prompt 3
Help me create a simple training pipeline in Python that generates math problems, trains a small model to solve them, and then teaches the model to grade its own answers.

Frequently asked questions

What is mingpt?

An educational project that builds a small AI model from scratch to solve math problems and learn to recognize its own mistakes. It teaches AI fundamentals step-by-step using interactive notebooks.

What language is mingpt written in?

Mainly Jupyter Notebook. The stack also includes Jupyter Notebook, Python.

Is mingpt actively maintained?

Dormant — no commits in 2+ years (last push 2020-12-22).

How hard is mingpt to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is mingpt for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.