Multi-layer RNN (LSTM, GRU, RNN) for character-level language models in Blocks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

char-rnn in Blocks

This code is a python implementation of Torch char-rnn project using the Blocks framework.


  • Install Blocks. Please see the documentation for more information.


  • Set text_file parameter in the file. You can try the input.txt file used in the original code.
  • run to create the Fuel dataset.
  • run file to train a Gated RNN (Cho et al.). 'rnn' and 'lstm' are also supported.
  • run to sample characters using a trained model. and scripts follow most of the parameters from the original char-rnn project. Please take a look on it to train your own models.