We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f9c4b commit 09e151fCopy full SHA for 09e151f
recipes_source/distributed_async_checkpoint_recipe.rst
@@ -74,7 +74,7 @@ Specifically:
74
75
def state_dict(self):
76
# this line automatically manages FSDP FQN's, as well as sets the default state dict type to FSDP.SHARDED_STATE_DICT
77
- model_state_dict, optimizer_state_dict = get_state_dict(model, optimizer)
+ model_state_dict, optimizer_state_dict = get_state_dict(self.model, self.optimizer)
78
return {
79
"model": model_state_dict,
80
"optim": optimizer_state_dict
0 commit comments