karpathy/deep-vector-quantization — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2021-11-20
Train a VQVAE to compress images into discrete codes on a dataset like CIFAR-10
Build the image-encoding stage for a system that feeds compressed image codes into a GPT-style generative model
Compare three implementations (DeepMind, Gumbel Softmax, and an in-progress DALL-E recreation) to learn their tradeoffs
Study discrete image compression as a learning resource before building your own generative image system
| karpathy/deep-vector-quantization | llsourcell/how-to-predict-stock-prices-easily-demo | nvidia/cuopt-examples | |
|---|---|---|---|
| Stars | 647 | 771 | 452 |
| Language | Jupyter Notebook | Jupyter Notebook | Jupyter Notebook |
| Last pushed | 2021-11-20 | 2022-06-23 | — |
| Maintenance | Dormant | Dormant | — |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 4/5 | 2/5 | 3/5 |
| Audience | researcher | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a GPU for training, the DALL-E-style implementation is still incomplete.
A training toolkit that teaches an AI model called a VQVAE to compress images into a small set of discrete codes that can be reconstructed back, useful for feeding images into generative models like GPT.
Mainly Jupyter Notebook. The stack also includes Python, PyTorch, Jupyter Notebook.
Dormant — no commits in 2+ years (last push 2021-11-20).
License terms are not described in the explanation, check the repository directly before use.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.