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
7d5d628e
Unverified
Commit
7d5d628e
authored
Jul 28, 2022
by
ver217
Committed by
GitHub
Jul 28, 2022
Browse files
[DDP] test ddp state dict uses more strict threshold (#1382)
parent
df544814
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_ddp/test_ddp_state_dict.py
tests/test_ddp/test_ddp_state_dict.py
+1
-1
No files found.
tests/test_ddp/test_ddp_state_dict.py
View file @
7d5d628e
...
@@ -25,7 +25,7 @@ def check_state_dict_equal(state_dict: OrderedDict, other_state_dict: OrderedDic
...
@@ -25,7 +25,7 @@ def check_state_dict_equal(state_dict: OrderedDict, other_state_dict: OrderedDic
else
:
else
:
temp_t2
=
t2
temp_t2
=
t2
assert
torch
.
allclose
(
t1
,
temp_t2
,
atol
=
1e-3
,
rtol
=
1e-3
)
assert
torch
.
equal
(
t1
,
temp_t2
)
def
init_ddp
(
module
:
torch
.
nn
.
Module
)
->
ColoDDP
:
def
init_ddp
(
module
:
torch
.
nn
.
Module
)
->
ColoDDP
:
...
...
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