[zero] update zero context init with the updated test utils (#327)

This commit is contained in:
Jiarui Fang
2022-03-08 14:45:01 +08:00
committed by Frank Lee
parent 6268446b81
commit 11bddb6e55
10 changed files with 96 additions and 49 deletions

View File

@@ -46,6 +46,8 @@ def _run_shard_param_v2(rank, world_size, port):
sparam = ShardedParamV2(param=param, process_group=None)
allclose(sparam.data, param_ref.data)
sparam.remove_torch_payload()
assert (param.data.numel() == 1)