Skip to content

Commit

Permalink
update fsdp docs (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman100 authored Oct 3, 2023
1 parent 420743a commit 76ee7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/usage_guides/fsdp.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ When using transformers `save_pretrained`, pass `state_dict=accelerator.get_stat
args.output_dir,
is_main_process=accelerator.is_main_process,
save_function=accelerator.save,
+ state_dict=accelerator.get_state_dict(model),
+ state_dict=accelerator.get_state_dict(model, unwrap=False),
)
```
Expand Down

0 comments on commit 76ee7f2

Please sign in to comment.