Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

crashes under DDP #4

Open
rvollgraf opened this issue Jul 2, 2021 · 0 comments
Open

crashes under DDP #4

rvollgraf opened this issue Jul 2, 2021 · 0 comments
Assignees

Comments

@rvollgraf
Copy link
Contributor

crashes under DDP

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 forwardfunction. Please make sure model parameters are not shared across multiple concurrent forward-backward passes2) Reused parameters in multiple reentrant backward passes. For example, if you use multiplecheckpoint 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 yet.

@rvollgraf rvollgraf self-assigned this Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant