You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/paddle/distributed/checkpoint/load_state_dict.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -360,14 +360,17 @@ def load_state_dict(
360
360
) ->None:
361
361
"""
362
362
Load the state_dict inplace from a checkpoint path.
363
+
363
364
Args:
364
365
state_dict(Dict[str, paddle.Tensor]): The state_dict to load. It will be modified inplace after loading.
365
366
path(str): The directory to load checkpoint files.
366
367
process_group(paddle.distributed.collective.Group): ProcessGroup to be used for cross-rank synchronization. Use the default process group which contains all cards.
367
368
coordinator_rank(int): The rank used to coordinate the checkpoint. Rank0 is used by default.
0 commit comments