Skip to content

Commit

Permalink
Merge pull request facebookresearch#349 from escfrya/patch-2
Browse files Browse the repository at this point in the history
Remove outdated assert for layer checkpointing.
  • Loading branch information
JadeCopet authored Nov 22, 2023
2 parents 3c41377 + b31ad05 commit c65e9be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion audiocraft/modules/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,6 @@ def __init__(self, d_model: int, num_heads: int, num_layers: int, dim_feedforwar
# see audiocraft/optim/fsdp.py, magic signal to indicate this requires fixing the
# backward hook inside of FSDP...
layer._magma_checkpointed = True # type: ignore
assert layer.layer_drop == 0., "Need further checking" # type: ignore

def _apply_layer(self, layer, *args, **kwargs):
method = self.checkpointing
Expand Down

0 comments on commit c65e9be

Please sign in to comment.