mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-10-11 18:01:05 +00:00
[zero] update zero context init with the updated test utils (#327)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user