Skip to content

Typo in tutorial, dist_barrier should be dist.barrier #2281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2023
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
2 changes: 1 addition & 1 deletion intermediate_source/FSDP_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ We add the following code snippets to a python script “FSDP_mnist.py”.

if args.save_model:
# use a barrier to make sure training is done on all ranks
dist_barrier()
dist.barrier()
# state_dict for FSDP model is only available on Nightlies for now
states = model.state_dict()
if rank == 0:
Expand Down