ParikhKadam/bidaf-keras

Run only in CPU version instead of GPU version.

hariteja97 opened this issue · 7 comments

The code that was written has GPU support but I want to run the code without GPU support i.e i need the code in CPU only. I tried to remove the multi-model-GPU package and its connections in the code but still I'M facing the issue

Kindly help me to convert the code to CPU support only.

Install tensorflow==1.12.0 instead of tensorflow-gpu==1.12.0. That will solve the problem I think. Or you can just reinstall the package by using pip install -U bidaf-keras[cpu].

Try any of these methods. If they don't work, please report here with the errors.. Thank you..

@ParikhKadam Thanks a lot for the help and I have got a new doubt . I have tried this command

python3 -m bidaf --model_name=bidaf_50.h5 --do_lowercase train --epochs=1 --steps_per_epoch=1 --validation_steps=1

when I ran this command I got the error
Capture

I dont understand what is this error Please help me it would be of great help

Have you downloaded our pretrained model "bidaf_50.h5" file? If yes, place the file in the path showed in this error which is "C:\Python36..." and the error will be solved..

The error clearly says that it cannot find the file "bidaf_50.h5" in that given path. Can you please show your files in that folder called saved_items?

Great to hear that it solved.. BTW, the new issue you mentioned isn't clear to me. I understood that you cannot install packages on your linux machine and hence, Keras uses theano as backend which throws such error.

It should not happen.. Changing the backend in Keras shouldn't throw errors. That's what Keras is meant to do, right?

What isn't clear to me is, is this an error in our project or Keras? Can you please check it and tell?

I am closing this thread now. If you think that the error is in this project, kindly open a new issue specific to that error and I will surely help..

Thank you..