# karpathy/minGPT

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

Canonical: https://starboard.codevetter.com/explore/karpathy/minGPT

[Back to Discover](https://starboard.codevetter.com/discover)

![karpathy](https://avatars.githubusercontent.com/u/241138?v=4&s=40)

karpathy

# minGPT

[View on GitHub
](https://github.com/karpathy/minGPT)

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

25k stars

Python

Updated 20h ago

Created Aug 17, 2020

## Star history

\+599 stars
2\.4% growth


## Detected tools

[OpenAI](https://starboard.codevetter.com/tools/openai)


Tool detection is evidence\-based, not a full runtime audit\. Package manifests, lockfiles, and SBOMs are high\-confidence; README, topics, and AI metadata are lower\-confidence signals\. Repository language is metadata, not counted as a tool\. Accuracy varies by ecosystem, especially for C/C\+\+ and custom monorepos\.

- OpenAI  · 35% confidence · Sources: description · Detected Jul 14, 2026

## Similar projects

[![pytorch](https://avatars.githubusercontent.com/u/21003710?v=4&s=24)

pytorch/ torchtitan

A PyTorch native platform for training generative AI models

Python 5\.9k 78%](https://starboard.codevetter.com/explore/pytorch/torchtitan)[![meta\-pytorch](https://avatars.githubusercontent.com/u/107212512?v=4&s=24)

meta\-pytorch/ gpt\-fast

Simple and efficient pytorch\-native transformer text generation in \<1000 LOC of python\.

Python 6\.3k 75%](https://starboard.codevetter.com/explore/meta-pytorch/gpt-fast)[![karpathy](https://avatars.githubusercontent.com/u/241138?v=4&s=24)

karpathy/ nanoGPT

The simplest, fastest repository for training/finetuning medium\-sized GPTs\.

Python 65k 74%](https://starboard.codevetter.com/explore/karpathy/nanoGPT)[![NVIDIA](https://avatars.githubusercontent.com/u/1728152?v=4&s=24)

NVIDIA/ apex

A PyTorch Extension:  Tools for easy mixed precision and distributed training in Pytorch

Python 9\.0k 73%](https://starboard.codevetter.com/explore/NVIDIA/apex)[![karpathy](https://avatars.githubusercontent.com/u/241138?v=4&s=24)

karpathy/ autoresearch

AI agents running research on single\-GPU nanochat training automatically

Python 100k 73%](https://starboard.codevetter.com/explore/karpathy/autoresearch)[![eriklindernoren](https://avatars.githubusercontent.com/u/7977505?v=4&s=24)

eriklindernoren/ PyTorch\-YOLOv3

Minimal PyTorch implementation of YOLOv3

Python 7\.4k 71%](https://starboard.codevetter.com/explore/eriklindernoren/PyTorch-YOLOv3)[![eriklindernoren](https://avatars.githubusercontent.com/u/7977505?v=4&s=24)

eriklindernoren/ PyTorch\-GAN

PyTorch implementations of Generative Adversarial Networks\.

Python 17k 71%](https://starboard.codevetter.com/explore/eriklindernoren/PyTorch-GAN)[![facebookresearch](https://avatars.githubusercontent.com/u/16943930?v=4&s=24)

facebookresearch/ dino

PyTorch code for Vision Transformers training with the Self\-Supervised learning method DINO

Python 7\.6k 70%](https://starboard.codevetter.com/explore/facebookresearch/dino)
