Using another model when training a model with accelerate on multi-GPUs
HelloI am going to train a model using multi-GPUs on a single machine.The problem is that another model is used when training the main model.This second model is used ONLY for inference on the same data with the main modelI have 4 GPUs on my machine.So I assigned 3 processes (3 GPUs) for training the main model in the accelerate configuration.I am going to assign the last (4th) GPU device to the second model.However, this results in NCCL communication issue when doing inference of the second model.I did NOT get this reason yet.Could u guide me?Thanks
2022-10-31T11:07:07Z
I was facing something similar (I think) I think that when you conduct inference on the second model it somehow changes the definition of the main device in the accelerator. In my case it resulted in the data loader suddenly started to put all the batches on the device dedicated to the second model