karpathy/mingpt

A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Added to GitGenius on September 17th, 2026
Created on August 17th, 2020
Open Issues & Pull Requests: 83 (+0)
GitHub issues: Enabled
Number of forks: 3,328
Total Stargazers: 24,903 (+0)
Total Subscribers: 271 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 59.3 days
Mean response time: 313.6 days
90th percentile: 904.3 days
Tracked items: 7

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 795 days
Stale 30+ days: 7
Stale 90+ days: 5

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

minGPT is a minimal PyTorch re-implementation of GPT model training that prioritizes clarity and educational value over production features.

The project addresses the need to understand how transformer-based language models work by providing a stripped-down, readable implementation of GPT training. Rather than navigating the complexity of production codebases, minGPT removes unnecessary abstractions and focuses on the core mechanics: model architecture, training loops, and inference. This approach makes it possible to grasp the essential components without being overwhelmed by optimization layers, distributed training infrastructure, or other production concerns.

Developers should choose minGPT if their goal is to learn how GPT models function internally or to use it as a reference implementation for educational purposes. It suits projects where understanding the fundamentals matters more than scale or performance. The codebase is intentionally minimal, making it ideal for students, researchers prototyping ideas, or anyone building intuition about transformer training before moving to larger frameworks. This is not a tool for training production models or handling real-world scale; it is explicitly designed as a learning resource.

The project shows minimal ongoing development activity, with infrequent commits and no indication of active maintenance or responsiveness to issues. The codebase remains stable and self-contained, suggesting it has reached a finished state as an educational artifact rather than an evolving tool.