Home Projects char-rnn
char-rnn
Lua

char-rnn

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch

by karpathy · GitHub
Stars
Forks
Trending
Created
Last commit
Language
Lua
View on GitHub
In plain words

Train a model to generate text by predicting the next character based on a given text file.

From the README

Install
$ curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
$ git clone https://github.com/torch/distro.git ~/torch --recursive
$ cd ~/torch;

Excerpts from the project README on GitHub. Copyright and licensing remain with the respective authors.

You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
char-rnn — GitHub preview card
📈 Star history
12.10k12.07k
2026-07-122026-08-31
📈 Track char-rnn

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch

char-rnn has 12.1k stars on GitHub. It has been forked 2.6k times. char-rnn is written mainly in Lua. It has been in active development since 2015.

Frequently asked questions

What is char-rnn?

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch

Is char-rnn open source?

char-rnn is an open-source project.

Is char-rnn free?

Yes. char-rnn is free and open source — you can use, modify and self-host it.

What language is char-rnn written in?

char-rnn is written mainly in Lua.

🏅 Maintainer of this project?
olud.ai badge — char-rnn

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=karpathy-char-rnn)](https://olud.ai/project/karpathy-char-rnn.html)
More badge options →
🧬 Related projects