# MultiVi with multiple GPUs and CPUs

**URL:** <https://discourse.scverse.org/t/multivi-with-multiple-gpus-and-cpus/190>\
**Category:** scvi-tools\
**Tags:** multivi, gpu\
**Created:** [September 29, 2021, 4:03pm UTC](https://discourse.scverse.org/t/multivi-with-multiple-gpus-and-cpus/190 "2021-09-29T16:03:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanieleMuraro](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@DanieleMuraro](https://discourse.scverse.org/u/DanieleMuraro)\
**Post date:** [September 29, 2021, 4:03pm UTC](https://discourse.scverse.org/t/multivi-with-multiple-gpus-and-cpus/190/1 "2021-09-29T16:03:32Z")

</div>

Dear scvi-tools developers and community,

I was wondering if it is possible to run MultiVi with multiple GPUs and CPUs.  
In case it is, how can I set up the number of GPUs and CPUs for use of MultiVi?  
Thank you for your attention.

With best wishes,

Daniele Muraro

---

<div class="post-metadata">

**Author:** ![adamgayoso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/adamgayoso/32/100_2.png) [@adamgayoso](https://discourse.scverse.org/u/adamgayoso)\
**Post date:** [September 29, 2021, 7:19pm UTC](https://discourse.scverse.org/t/multivi-with-multiple-gpus-and-cpus/190/2 "2021-09-29T19:19:40Z")

</div>

You should be able to set the number of threads here:

[https://docs.scvi-tools.org/en/stable/api/reference/scvi.\_settings.ScviConfig.html#scvi.\_settings.ScviConfig](https://docs.scvi-tools.org/en/stable/api/reference/scvi._settings.ScviConfig.html#scvi._settings.ScviConfig)

But we only currently support single gpu training. We are exploring options for multi gpu training

---

<div class="post-metadata">

**Author:** ![DanieleMuraro](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@DanieleMuraro](https://discourse.scverse.org/u/DanieleMuraro)\
**Post date:** [December 2, 2021, 12:04pm UTC](https://discourse.scverse.org/t/multivi-with-multiple-gpus-and-cpus/190/3 "2021-12-02T12:04:40Z")

</div>

I realised that I didn’t reply, I apologise for that. Thank you so much for letting me know 🙂
