Open Abigale001 opened 4 years ago
This is not a GRU4Rec related error, but a sign that something in your Theano setup is not correct (it's not even the fault of Theano, but there is some kind of incompatibility between the driver/cuda/cuDNN on your system).
Some ideas on what could have gone wrong:
PATH
or in LD_LIBRARY_PATH
or in CUDA_HOME
(or these environment variables don't point to any cuda version).THEANO_FLAGS=dnn.enabled=False python run.py ...
. I don't think that this has a significant impact on the speed of GRU4Rec, but I haven't tried yet. If setting this flag helps, the issue is definitely some kind of incompatibility between your cuDNN and cuda (and/or nVidia driver).theano-cache purge
or manually deleting the contents of ~/.theano/
), maybe something is stuck there from a previous version.If nothing else works, you can set up the whole environment from the ground up. I usually do it this way, because then I know exactly what was installed. It has worked for me 100% of the time. The main steps are:
CUDA_HOME
environment variable to <cuda_install_dir>
(default: /usr/local/cuda-9.2
), and make sure that <cuda_install_dir>/bin
and <cuda_install_dir>/lib64
are added to PATH
and LD_LIBRARY_PATH
respectively.cuda/lib64
Thank you very much. I will check the problem according to your comments.
I run this command:
$python run.py /path/to/training_data_file -t /path/to/test_data_file -m 1 5 10 20 -ps loss=bpr-max,final_act=elu-.5,hidden_act=tanh,layers=100,adapt=adagrad,n_epochs=10,batch_size=32,dropout_p_embed=0.0,dropout_p_hidden=0.0,learning_rate=0.2,momentum=0.3,n_sample=2048,sample_alpha=0.0,bpreg=1.0,constrained_embedding=False
But I get this error:
OS: Debian 4.9.110-3+deb9u4~deb8u1 (2018-08-24) x86_64 GNU/Linux cudnn: 7.6 cuda: 9.2 theano: 1.0.4 pygpu: 0.7.6 libgpuarray: 0.7.6
Anyone could help?