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

**URL:** https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842
**Category:** Rasa Open Source
**Created:** [May 21, 2021, 11:50pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842 "2021-05-21T23:50:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![baurjanj](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/baurjanj/32/15523_2.png) [@baurjanj](https://forum.rasa.com/u/baurjanj)
#### Post date: [May 21, 2021, 11:50pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/1 "2021-05-21T23:50:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kearnsw](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kearnsw/32/4838_2.png) [@kearnsw](https://forum.rasa.com/u/kearnsw)
#### Post date: [May 22, 2021, 1:13am UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/2 "2021-05-22T01:13:45Z")

</div>

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. [https://developer.download.nvidia.com/compute/DCGM/docs/nvidia-smi-367.38.pdf](https://developer.download.nvidia.com/compute/DCGM/docs/nvidia-smi-367.38.pdf)

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

---

<div class="post-metadata">

### Author: ![hsm207](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hsm207/32/2647_2.png) [@hsm207](https://forum.rasa.com/u/hsm207)
#### Post date: [May 22, 2021, 3:47pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/3 "2021-05-22T15:47:29Z")

</div>

This [blog post](https://pub.towardsai.net/how-i-use-docker-to-train-rasa-2-1-x-bots-on-a-gpu-442cd9d31d67) may be helpful.

---

<div class="post-metadata">

### Author: ![baurjanj](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/baurjanj/32/15523_2.png) [@baurjanj](https://forum.rasa.com/u/baurjanj)
#### Post date: [May 24, 2021, 3:33pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/4 "2021-05-24T15:33:25Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![tomp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomp/32/21142_2.png) [@tomp](https://forum.rasa.com/u/tomp)
#### Post date: [April 14, 2022, 2:31pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/5 "2022-04-14T14:31:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kalpa916](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kalpa916](https://forum.rasa.com/u/kalpa916)
#### Post date: [July 4, 2022, 9:31am UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/6 "2022-07-04T09:31:47Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tomp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomp/32/21142_2.png) [@tomp](https://forum.rasa.com/u/tomp)
#### Post date: [August 18, 2022, 4:05pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/7 "2022-08-18T16:05:40Z")

</div>

Similar discussion: [GPU utilization is always 0](http://forum.rasa.com/t/gpu-utilization-is-always-0/54782)

---

<div class="post-metadata">

### Author: ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.rasa.com/u/tiziano)
#### Post date: [October 12, 2022, 3:24pm UTC](https://forum.rasa.com/t/how-can-i-make-rasa-train-take-advantage-of-gpu-on-local-machine/43842/8 "2022-10-12T15:24:51Z")

</div>

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