Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,10 @@ def find_frozen_submodules(model):
for submodule in frozen_submodule_names:
logging.debug(f"Ignoring state {submodule} in FSDP.")
self.trainer.strategy.kwargs['ignored_states'] = frozen_submodules

# Transformer Engine expects that module parameters are available, so FSDP should not replace them
self.trainer.strategy.kwargs['use_orig_params'] = True

# FSDP requires uniform status of require_grads
# Diffusion models like SD has frozen parts and needs to be added to 'ignored_states'
# from sharding for FSDP to work
Expand Down
Loading