How can I make "rasa train" take advantage of GPU on local machine

I have a NVIDIA Quadro P520 on my laptop and I would like to take advantage of that when training my rasa model (rasa train). How can I enable GPU/CUDA for an existing rasa project? I am using 2.5.0

Rasa should automatically use your GPU during training. You should be able to check that your GPU is visible and that it is handling the job by using the nvidia-smi tool from the command line.

This will show your GPU if available and then during training, you’ll see the memory utilization increase.

This blog post may be helpful.

Yeah I did the nvidia-smi while training the rasa model and it only showed my available GPU but no utilization at all. So for some reason, Rasa is not automatically training on GPU while it is available.

1 Like

I’m having the same problem on an Ubuntu VM in GCP.

I have same problem @baurjanj .Whether works Please let me know how you done if so worked.

Similar discussion: GPU utilization is always 0

Hi guys, I have the same problem, did you manage to solve it? @baurjanj