tsai icon indicating copy to clipboard operation
tsai copied to clipboard

Using GPU for models

Open R470R opened this issue 3 years ago • 1 comments

Hello, do you know some way to put my gpu at work? I think all packages are well installed, but is running on cpu

computer_setup() os : Linux-5.15.0-46-generic-x86_64-with-glibc2.31 python : 3.9.12 tsai : 0.3.1 fastai : 2.7.9 fastcore : 1.5.21 torch : 1.12.1 device : 1 gpu (['GeForce RTX 3090']) cpu cores : 24 RAM : N/A GPU memory : N/A

R470R avatar Aug 25 '22 18:08 R470R

Hello, do you know some way to put my gpu at work? I think all packages are well installed, but is running on cpu

computer_setup() os : Linux-5.15.0-46-generic-x86_64-with-glibc2.31 python : 3.9.12 tsai : 0.3.1 fastai : 2.7.9 fastcore : 1.5.21 torch : 1.12.1 device : 1 gpu (['GeForce RTX 3090']) cpu cores : 24 RAM : N/A GPU memory : N/A

tsai is based on pytorch and fastai so just by using device = torch.device("cuda") you should be able to run models on GPU.

parshinsh avatar Aug 26 '22 16:08 parshinsh

Hi @R470R, It seems there's some problem with your setup. The computer setup function correctly identifies there's a GPU (['GeForce RTX 3090']) but then says GPU memory : N/A. This doesn't seem to me that this is related to tsai.

oguiza avatar Oct 21 '22 13:10 oguiza

Issue closed due to lack of response.

oguiza avatar Nov 09 '22 13:11 oguiza