Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fsdp wrap more modules (#4911)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing authored Dec 6, 2022
1 parent d9caae4 commit 804b10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parlai/utils/fsdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def maybe_fsdp_wrap(opt):
# autowrap policy.
auto_wrap_policy = None
ignored_modules = None
if opt['model'] in ['bart', 'transformer/generator']:
if 'hugging_face' not in opt['model']:
from parlai.agents.transformer.modules.encoder import (
TransformerEncoderLayer,
)
Expand Down

0 comments on commit 804b10b

Please sign in to comment.