mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-05-10 09:27:50 +00:00
Fix docstr for zero statedict (#3185)
This commit is contained in:
parent
7bc0afc901
commit
9d644ff09f
@ -494,6 +494,7 @@ class ShardedModelV2(nn.Module):
|
|||||||
error_msgs (list of str): error messages should be added to this
|
error_msgs (list of str): error messages should be added to this
|
||||||
list, and will be reported together in
|
list, and will be reported together in
|
||||||
:meth:`~torch.nn.Module.load_state_dict`
|
:meth:`~torch.nn.Module.load_state_dict`
|
||||||
|
shard_strategy (Optional[BaseShardStrategy], optional): A shard strategy to manage shard behavior. Defaults to None.
|
||||||
"""
|
"""
|
||||||
for hook in self._load_state_dict_pre_hooks.values():
|
for hook in self._load_state_dict_pre_hooks.values():
|
||||||
hook(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
|
hook(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
|
||||||
|
Loading…
Reference in New Issue
Block a user