Skip to content

Disabling find_unused_parameters #11664

Discussion options

You must be logged in to vote

pytorch_lightning.strategies will be available in v1.6 release and is only available in master at the moment.

For now, you can use:

from pytorch_lightning.plugins import DDPPlugin

trainer = pl.Trainer(
    ...,
    strategy=DDPPlugin(find_unused_parameters=False),
)

See the stable version of docs (not latest) here: https://pytorch-lightning.readthedocs.io/en/stable/guides/speed.html?highlight=find_unused_parameters#when-using-ddp-plugins-set-find-unused-parameters-false

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ayansengupta17
Comment options

@akihironitta
Comment options

Answer selected by rahulvigneswaran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
strategy: ddp DistributedDataParallel
3 participants