Skip to content
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

Error when sampling #13

Open
allthetime opened this issue Mar 10, 2016 · 4 comments
Open

Error when sampling #13

allthetime opened this issue Mar 10, 2016 · 4 comments

Comments

@allthetime
Copy link

When running sample.lua against t7 files I frequently (but not always, depending on set temperature and seed text) come up against this error

/home/me/torch/install/bin/luajit: bad argument #2 to '?' (out of bounds at /home/me/torch/pkg/torch/lib/TH/generic/THStorage.c:178)
stack traceback:
    [C]: at 0x7f38999b08e0
    [C]: in function 'multinomial'
    sample.lua:170: in main chunk
    [C]: in function 'dofile'
    ...time/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x00406670

It comes up after some text has been predicted usually, and tends to show up sooner (less text predicted) when temperature is lower. Higher temperature lets more prediction through before the error occurs

It seems a similar issue exists(ed?) in char-nn karpathy/char-rnn#28

From that thread: "The error means your data are naned. Two possible causes include the weights becoming naned during training, or the cv snapshot file being corrupted somehow."

Is there any way I can avoid this situation?

@amitphadke
Copy link

Same error here, did you find a solution?

@bloons3
Copy link

bloons3 commented Sep 18, 2017

Might be related to jcjohnson/torch-rnn#195

I have been experiencing this error as well

@lowtronik
Copy link

lowtronik commented Sep 18, 2017

I used torch-rnn and word-rnn with a 5MB dataset with no problems. I got the same error with a 8.2MB set.

@lowtronik
Copy link

Tried to use word-rnn with on CPU and 56GB ram , no luck as well (before was on 6GB GPU)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants