Bert-Multi-Label-Text-Classification icon indicating copy to clipboard operation
Bert-Multi-Label-Text-Classification copied to clipboard

No GPU Detected

Open creepayou opened this issue 5 years ago • 3 comments

Hello everyone i am beginner in BERT and python, and managed to get this code running after some error fixes, but i had another one that i had no idea what to do on. 11/17/2020 18:05:04 - WARNING - root - Warning: There's no GPU available on this machine, training will be performed on CPU. 11/17/2020 18:05:04 - WARNING - root - Warning: The number of GPU's configured to use is 0, but only 0 are available on this machine. Why does it not detect any GPU on my machine even though i have an AMD GPU installed? And if it does detect, how do i set it to use that GPU?

Thanks beforehand.

creepayou avatar Nov 17 '20 11:11 creepayou

if torch.cuda.is_available() is true, modify parser.add_argument("--n_gpu", type=str, default='0', help='"0,1,.." or "0" or "" ')

lonePatient avatar Nov 17 '20 12:11 lonePatient

Sadly use AMD GPU so it returns false. Is there no way to run this code on AMD GPU? Thanks for the answer!

creepayou avatar Nov 17 '20 12:11 creepayou

AMD GPU Intel GPU
High performance Low cost
Higher clock speed More efficient
Less power consumption Improved graphics
Lower price Better driver support
Good driver support Higher price"

gitezri avatar May 01 '23 14:05 gitezri