taming-transformers icon indicating copy to clipboard operation
taming-transformers copied to clipboard

Multi GPU Inference through nn.DataParallel

Open tomatopuree opened this issue 4 years ago • 1 comments
trafficstars

Do you (intend to) support multi gpu inference through the torch's nn.DataParallel class?

For example:

model = vqgan.VQModel(**config.model.params)
model = nn.DataParallel(model)

Thank you!

tomatopuree avatar Aug 11 '21 04:08 tomatopuree

Ive tried same - it doesn't speed up, but u can starr multiple model for users

AlexWortega avatar Aug 15 '21 17:08 AlexWortega