contextualized-topic-models icon indicating copy to clipboard operation
contextualized-topic-models copied to clipboard

Parallel GPU training

Open james-daily opened this issue 4 years ago • 1 comments

Is parallel GPU training support possible? We would like to try this with a fairly large (multi-GB) dataset, but to make training time reasonable it would need to be done in parallel. Single node parallelism with DataParallel() would probably work for our use case, although the PyTorch documentation suggests that DistributedDataParallel() is preferred even for a single node.

Part of the motivation for this is that a large dataset needs a lot of memory, which in a cloud environment means a large, multi-GPU instance. It is very expensive to run such a large instance for weeks with all but one of the GPUs idle.

james-daily avatar Jul 24 '20 17:07 james-daily

Hi!

Currently, we do not support parallel GPU training, I'm sorry. DataParallel shouldn't be too difficult to setup, but I have to explore better the thing since I do not have much experience in writing multi-gpus pytorch programs.

I'll give it a try next week, and see if (and how) it works.

vinid avatar Jul 27 '20 09:07 vinid