Skip to content

Commit

Permalink
fix assert error
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwen-sun committed Sep 24, 2024
1 parent b866dde commit c764c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchacc/dist/fsdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def full_optim_state_dict(model: torch.nn.Module,
xla_fsdp.XlaFullyShardedDataParallel) or isinstance(
model, FullyShardedDataParallel)

if isinstance(model, xla_fsdp.XlaFullyShardedDataParallel):
if isinstance(model, FullyShardedDataParallel):
model = model.model

shard_meta_data = model.get_shard_metadata()
Expand Down

0 comments on commit c764c97

Please sign in to comment.