gligen / GLIGEN

Open-Set Grounded Text-to-Image Generation
MIT License
1.98k stars 148 forks source link

Multi GPUs training error #30

Open Estrellama opened 1 year ago

Estrellama commented 1 year ago

RuntimeError: Expected to mark a variable ready only once. This error is caused by one of the following reasons: 1) Use of a module parameter outside the forward function. Please make sure model parameters are not shared across multiple concurrent forward-backward passes. or try to use _set_static_graph() as a workaround if this module graph does not change during training loop.2) Reused parameters in multiple reentrant backward passes. For example, if you use multiple checkpoint functions to wrap the same part of your model, it would result in the same set of parameters been used by different reentrant backward passes multiple times, and hence marking a variable ready multiple times. DDP does not support such use cases in default. You can try to use _set_static_graph() as a workaround if your module graph does not change over iterations.

Parameter at index 925 with name output_blocks.11.0.skip_connection.weight has been marked as ready twice. This means that multiple autograd engine hooks have fired for this particular parameter during this iteration. ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 34718) of binary: /opt/conda/bin/python

wang-hui111 commented 3 months ago

I want to ask,what are the commands you have trained on the GPU?