Skip to content

Commit 09e151f

Browse files
committed
use class attributes
Signed-off-by: Alexandros Koumparoulis <[email protected]>
1 parent 06f9c4b commit 09e151f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes_source/distributed_async_checkpoint_recipe.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Specifically:
7474
7575
def state_dict(self):
7676
# 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)
77+
model_state_dict, optimizer_state_dict = get_state_dict(self.model, self.optimizer)
7878
return {
7979
"model": model_state_dict,
8080
"optim": optimizer_state_dict

0 commit comments

Comments
 (0)