I want to write a model parallel routine with pytorch using horovod. Give me a very…
Private research annotation
Sign in to add a private research label or note.
Jump to turn (27)
- 1I want to write a model parallel routine with pytorch using horovod. Give me a v
- 2continue
- 3I don't understand: the torch.nn.DataParallel, does not implement model parallel
- 4continue
- 5I have a question, what is hvd.local\rank() and what is hvd.rank()? Give me an e
- 6Update the code that you gave me as an example to reflect these changes. Provide
- 7continue
- 8Give me launch commands for these examples using horovodrun command
- 9using the mpirun command, don't I need to set localhost? Or is this identified a
- 10If I want to launch this script on a distributed environment with slurm manager,
- 11give me another script, identical but instead of horovodrun you use mpirun to la
- 12how would I modify the horovodrun command if I were to run this with a container
- 13But horovodrun will be viewed from inside the container, therefore your command
- 14the code you gave me, in an example of 1 node and 4 gpus, does not use the 4th g
- 15that is not the issue, the model should be spread across 2 gpus per process. Rev
- 16if I run 4 process utilizing 2 gpus each, then I would need 4\2=8gpus in total.
- 17the problem is not there. The problem is that the code uses gpus 1,2,3 only. I t
- 18The code works and runs, spreading appropriately with the latest commands you ga
- 19Can you please rewrite the previous example to do the exact same thing, i.e. 2 p
- 20continue
- 21This example is inadequate. My main focus is model parallelism, and you did not
- 22I don't want you to use Pipeline parallelism via pytorch, as my models have skip
- 23continue
- 24how can i run the previous example using torchrun?
- 25I got the following error when running your code with ddp: Traceback (most recen
- 26I got this error, revise the code please Traceback (most recent call last): File
- 27this didn't work either, but we'll continue tomorrow :) Thanks!
- User
I want to write a model parallel routine with pytorch using horovod. Give me a very short example, with pointers on what I need to take into account. The scenario is I will use a machine with 4 gpus, run it with two processes, each occupying 2 gpus. Give me toy model based on cifar10, as short and concise as possible.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.