-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sampling code #11
Comments
Hi, I'm a rookie on torch too. However, I tried to write a sample function for this model myself (unfortunately it's super slow), and you can find it on https://github.com/LiyuanLucasLiu/lstm-char-cnn |
Hi, another rookie here. The previous version using Squeeze.lua works fine. Any suggestions to fix are appreciated. Also, sample-beam.lua increases the quality of karpathy output dramatically (imho) https://github.com/pender/char-rnn/blob/master/sample-beam.lua Would be cool to see this working for this model. cheers |
Updated torch and everything working. Generated a quick .t7 file with lowest possible settings and only 5 epochs to test sample.lua. Following " batch_size' failed. " error generated. Is there a value I can set to prevent this or do I have to run "main.lua" with the values given? thanks aaron@aaron-Macmini ~/Desktop/lstm-char-cnn-NEXT $ th sample.lua |
Hi, I'm not sure what caused this error (as a rookie...), but it seems that you ignored several necessary options while running sample.lua (the default value might not fit your checkpoint's setting), such as '-model'. |
Thanks for your reply. Could you supply an example of the terminal commands to run sample.lua ? The commands should be based on running main.lua and generating the necessary .t7 file from the supplied PTB files. This is easy with the karpathy original but not so much with this lstm version. Thanks |
Hi, I spent some time to train a new model and try sample.lua, I find that:
works fine with me. hope it could help. |
Hi, thank you for providing results from such a valuable research.
I'm trying to build word prediction model using your RNN code.
I successfully finished installation and built the first model!! Thank you.
Now I would like to see how it actually predict next word.
But I am having a hard time to write codes for such task, since I am very new to this domain.
In the Kaparthy's package, there is a script for generating texts (sample.lua).
Could you provide such script for your solution?
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: