-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config instantiation is not DDP-aware #83
Comments
I think this isn't an issue anymore, right? Closing. |
@ibro45 This is still an issue. Now I needed this for Lightning-AI/pytorch-lightning#11763 But since at instantiation, objects are not DDP aware, this problem persists. |
Any idea on how to approach it? |
Wait how is this a lighter problem? I think it has to do with improper usage/behavior of CacheDataset only |
Would swapping the order of trainer and system help? lighter/lighter/utils/runner.py Line 92 in 5d60768
|
Because config is instantiated only on the main process and then DDP is initialized, objects that are initialized in the config are not DDP aware.
Maybe there is a way to fix this by instantiating
trainer
first and separate and then thesystem
The text was updated successfully, but these errors were encountered: