Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpus with trVAE model #69

Closed
ilyakorsunsky opened this issue Jun 4, 2021 · 1 comment
Closed

gpus with trVAE model #69

ilyakorsunsky opened this issue Jun 4, 2021 · 1 comment
Assignees

Comments

@ilyakorsunsky
Copy link

ilyakorsunsky commented Jun 4, 2021

Hi team,

I am trying to run trVAE with GPUs. I made sure that scArches is able to successfully use GPUs by testing the use_cuda flag in the scVI model. However, I am not certain whether the trVAE model is making use of GPUs or CPUs. Do you have any suggestions for how to make sure that trVAE uses GPUs?

Thanks!

Ilya

@Cottoneyejoe95
Copy link
Contributor

Hi Ilya,

sorry for the late reply. At the moment it is only possible to check that after training by printing the Trainer.device parameter. However if you want to check if the trainer will use cuda you can just run this command upfront:

print(torch.cuda.is_available())

If that returns 'True' the trainer/model will use GPU too.

Best
Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants