Unknow error occured when tried the "sequence to sequence" demo

it’was occured the following error when I tried to test the sequence to sequence demo :frowning:

fzuir@fzuir-31:~/delaiQ$ python seq2seq_translation_tutorial.py **
Reading lines…
Read 135842 sentence pairs
Trimmed to 10853 sentence pairs
Counting words…
Counted words:
fra 4489
eng 2925
[u’je ne suis pas pret a me battre .’, u’i m not ready to fight .’]
2m 41s (- 37m 36s) (5000 6%) 2.8834
5m 15s (- 34m 12s) (10000 13%) 2.3491
THCudaCheck FAIL file=/py/conda-bld/pytorch_1493676237139/work/torch/lib/THC/generic/THCStorage.c line=32 error=30 : unknown error
Traceback (most recent call last):
** File “seq2seq_translation_tutorial.py”, line 808, in

** trainIters(encoder1, attn_decoder1, 75000, print_every=5000)**
** File “seq2seq_translation_tutorial.py”, line 674, in trainIters**
** decoder, encoder_optimizer, decoder_optimizer, criterion)**
** File “seq2seq_translation_tutorial.py”, line 618, in train**
** return loss.data[0] / target_length**
RuntimeError: cuda runtime error (30) : unknown error at /py/conda-bld/pytorch_1493676237139/work/torch/lib/THC/generic/THCStorage.c:32

anyone can sovle it ?
Thanks!:slight_smile:

error 30 is usually a GPU initialization error. See if any other CUDA programs work on your system, and if not, you can use “sudo” once to start any cuda program of your choice. After that, it should be fixed.