Skip to content

small character-based language model implementation in TensorFlow with tf.data and keras APIs along with a browser demo using tf.js

License

Notifications You must be signed in to change notification settings

suyash/char-rnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

char-rnn

Small character-based language model implementation in TensorFlow with tf.data and keras APIs along with a browser demo using TensorFlow.js.

The task file takes hidden state sizes as a parameter and generates a neural network with stateful GRU cells of the specified layer sizes.

Running

python trainer/task.py \
  --train-files $DATA_DIR \
  --epochs 100 \
  --steps-per-epoch 100 \
  --layers 64 64 64 \
  --job-dir $OUTPUT_DIR \
  --export-dir $OUTPUT_DIR

Other Art

TODO

  • make VOCAB_LENGTH a configurable hyperparameter to allow fitting arbitrary vocab sizes

  • distribution without data parallelism

About

small character-based language model implementation in TensorFlow with tf.data and keras APIs along with a browser demo using tf.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published