mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-16 06:30:41 +00:00
[DDP] test ddp state dict uses more strict threshold (#1382)
This commit is contained in:
@@ -25,7 +25,7 @@ def check_state_dict_equal(state_dict: OrderedDict, other_state_dict: OrderedDic
|
||||
else:
|
||||
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:
|
||||
|
Reference in New Issue
Block a user