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

Run model on a CPU? #58

Closed
nicolagheza opened this issue Apr 10, 2018 · 7 comments
Closed

Run model on a CPU? #58

nicolagheza opened this issue Apr 10, 2018 · 7 comments

Comments

@nicolagheza
Copy link

Hello, would it be possible to run the trained model on a CPU?
I download the 'demo model' from dropbox but when I run the inference.py from my laptop I get:
ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory`

Does the model need a GPU also in production?

@daniel-kukiela
Copy link
Owner

daniel-kukiela commented Apr 11, 2018

Yes, you can run it on CPU.

pip uninstall tensorflow-gpu
pip install tensorflow

Replace pip with whatever you are using, probably pip3 or pip3.6

@nicolagheza
Copy link
Author

Thanks, it worked.
But I had to use tensorflow==1.4 to make it run properly.
With 1.7 I had some errors.

@daniel-kukiela
Copy link
Owner

Can you tell me more about those errors? I think i might know what your issues are.
Also can you tell me what CPU are you using (model of CPU)?

@nicolagheza
Copy link
Author

Hello,
My processor is Intel® Core™ i7-6600U CPU @ 2.60GHz × 4
I actually cannot tell you more about those errors because now It is working also with Tensorflow-1.7
(I am using Ubuntu 16.04)
The inference script now works properly using your model. Is it normal that I don't get proper answers right?
Like this is the answer to "How are you doing?":
"Yo^o^o^o^o^o^o^o^o^o^o^o^e^o^o"

@daniel-kukiela
Copy link
Owner

So the problem was not what i was thinking it is.

As for responses - it's pretty normal at the training begionning. How many training pairs and how log model is training now?

@nicolagheza
Copy link
Author

nicolagheza commented Apr 12, 2018 via email

@daniel-kukiela
Copy link
Owner

Oh, so it's a very simple model trained quickly, as i didn't have resources for a longer training.
You can train more, you need to prepare your training set ang go through all steps to prepare and train your model. The reason for that is preparation steps makes files (training data and vocab files) for training set you are using.

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

2 participants