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

Using 0% of GPU #92

Closed
kast1450 opened this issue Jan 2, 2019 · 10 comments
Closed

Using 0% of GPU #92

kast1450 opened this issue Jan 2, 2019 · 10 comments

Comments

@kast1450
Copy link

kast1450 commented Jan 2, 2019

It's purely using my CPU.
I can't find anything about GPU settings other than multi_gpu, which spits out an error saying "Division by zero."

Is there anything I'm missing?

Using version 1.4.1 straight from Pip, and I have tensorflow-gpu installed.

@minimaxir
Copy link
Owner

Are you able to use the GPU with other TensorFlow-based frameworks? (i.e. you're using an nVidia GPU w/ CUDA installed correctly)

@kast1450
Copy link
Author

kast1450 commented Jan 3, 2019

I'm using a GTX 1060 and I have the drivers installed, do I need to install the CUDA Toolkit (2.1GB)?

@minimaxir
Copy link
Owner

minimaxir commented Jan 3, 2019

Likely yes, with CuDNN as well. (I'm not an expert on setting up CUDA/CuDNN on local computers, but there are tons of Deep Learning tutorials on the internet saying how)

@kast1450
Copy link
Author

kast1450 commented Jan 3, 2019

Not sure what I'm supposed to do with the CuDNN library as it seems to be for C++ development.

Installing the toolkit just says that it will install an older version of the Nvidia drivers even thought I got the latest CUDA Toolkit available.

Uninstalling tensorflow and only using tensorflow-gpu just spits out an error about tensorflow missing.

@frnsys
Copy link

frnsys commented Jan 10, 2019

I'm having this same issue -- other scripts using tensorflow utilize the GPU correctly, but for some reason it stays at 0% with this library.

Edit: tensorflow does see the GPU when I run textgenrnn:

Created TensorFlow device 
(/job:localhost/replica:0/task:0/device:GPU:0 with 10409 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:02:00.0, compute capability: 6.1)

but doesn't use it for training.

@oparkerj
Copy link

I have this same issue. I installed tensorflow-gpu, as well as CUDA and cuDNN but still nothing.

@kast1450
Copy link
Author

I have this same issue. I installed tensorflow-gpu, as well as CUDA and cuDNN but still nothing.

Hey! I fixed this by installing TensorFlow-gpu version 1.6.0 by using pip. (pip install tensorflow-gpu==1.6.0) then installing the Cuda Toolkit v9.0.0, and CuDNN v7.0.5 for Cuda 9.0.

now it trains on GPU just fine! hope this helps

@oparkerj
Copy link

Thank you! I'm not sure which specific one it was, but using the versions you mention solved the issue.

@kast1450
Copy link
Author

Thank you! I'm not sure which specific one it was, but using the versions you mention solved the issue.

No problem man. Glad I could help.

@minimaxir
Copy link
Owner

Good to hear the issues were resolved! :)

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