shap-e icon indicating copy to clipboard operation
shap-e copied to clipboard

Multiple GPU

Open xaranex1 opened this issue 2 years ago • 9 comments

Its possible to use multiple gpus ?

xaranex1 avatar May 09 '23 18:05 xaranex1

According to this StackOverflow answer, it looks like using cuda uses all available GPUs

hyper-n0va avatar May 09 '23 18:05 hyper-n0va

How can i used it in code? Can you write some example for jupyter notebook?

xaranex1 avatar May 09 '23 18:05 xaranex1

There are some examples provided in the repository

hyper-n0va avatar May 09 '23 18:05 hyper-n0va

You think nn in models? So if i put nn instead of nerf it will be work?

xaranex1 avatar May 09 '23 19:05 xaranex1

I dont know how can i do it, jupyter notebooks examples are without torch.nn

xaranex1 avatar May 09 '23 19:05 xaranex1

I tried to modified code like this:

xm = torch.nn.DataParallel(load_model('transmitter', device=device)) model = torch.nn.DataParallel(load_model('text300M', device=device))

but i have error: AttributeError: 'DataParallel' object has no attribute 'd_latent'

xaranex1 avatar May 09 '23 19:05 xaranex1

Is there some solution?

xaranex1 avatar May 10 '23 06:05 xaranex1

How can i use multiple GPUs ?

xaranex1 avatar May 11 '23 18:05 xaranex1