Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How does DDP work under the hood in Lightning?#20917

Unanswered
Discussion options

I'm trying to make a pipeline with hydra+lightning, but it seems lightning spawns multiple processes and runs the script multiple times (like using torchrun), causing unwanted side effects. So i want to understand how it works under the hood to fix the problem. (Not likely caused by lightning/hydra)

I know how it works with plain pytorch, so tried to dig into the source code.. which ended up with more confusion

Does anyone know how lightning (or fabric) handles DDP, especially without torchrun?

You must be logged in to vote

Replies: 2 comments

Comment options

Same issue here

You must be logged in to vote
0 replies
Comment options

Hi@davidgill97@xmlyqing00,

Could you please share a minimal reproducible script that demonstrates the unwanted side effects? That will help us narrow down the issue and suggest a more accurate solution.

Also, since Lightning already invokes torchrun internally, you may want to try running it as a regular Python script instead of using the torchrun command directly.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
3 participants
@davidgill97@xmlyqing00@deependujha

[8]ページ先頭

©2009-2025 Movatter.jp