Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
9d644ff0
"...git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "d43a671ad6db17b59a926b992106385356a86b7b"
Unverified
Commit
9d644ff0
authored
Mar 21, 2023
by
YH
Committed by
GitHub
Mar 21, 2023
Browse files
Fix docstr for zero statedict (#3185)
parent
7bc0afc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
colossalai/zero/sharded_model/sharded_model_v2.py
colossalai/zero/sharded_model/sharded_model_v2.py
+1
-0
No files found.
colossalai/zero/sharded_model/sharded_model_v2.py
View file @
9d644ff0
...
@@ -494,6 +494,7 @@ class ShardedModelV2(nn.Module):
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment