karpathy/char-rnn — explained in plain English
Analysis updated 2026-06-24 · repo last pushed 2023-10-24
Train a model on a corpus of Shakespeare plays and generate entirely new dialogue that mimics the original style.
Prototype a character-level text generation model on your own dataset to understand how RNNs learn sequential patterns.
Generate plausible-looking code snippets by training on a folder of source files from any programming language.
| karpathy/char-rnn | xmake-io/xmake | junyanz/cyclegan | |
|---|---|---|---|
| Stars | 12,065 | 11,974 | 12,852 |
| Language | Lua | Lua | Lua |
| Last pushed | 2023-10-24 | — | — |
| Maintenance | Dormant | — | — |
| Setup difficulty | hard | easy | hard |
| Complexity | 3/5 | 3/5 | 4/5 |
| Audience | researcher | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires the Torch ML framework with Lua, GPU training needs CUDA. The project is older and environment setup can be non-trivial on modern systems.
char-rnn trains a character-level neural network on any text file, feed it Shakespeare and it writes new Shakespeare-like text, feed it code and it generates code-like output, character by character.
Mainly Lua. The stack also includes Lua, Torch.
Dormant — no commits in 2+ years (last push 2023-10-24).
No license information is provided in the explanation.
Setup difficulty is rated hard, with roughly 1day+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.