mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-03 18:19:58 +00:00
[gemini] update ddp strict mode (#2518)
* [zero] add strict ddp mode for chunk init * [gemini] update gpt example
This commit is contained in:
@@ -263,7 +263,7 @@ def main():
|
||||
if args.distplan == "colossalai":
|
||||
# all param must use the same process group.
|
||||
world_size = torch.distributed.get_world_size()
|
||||
shard_pg = ProcessGroup(tp_degree=world_size)
|
||||
shard_pg = ProcessGroup(tp_degree=world_size) if args.shardinit else None
|
||||
default_dist_spec = ShardSpec([-1], [world_size]) if args.shardinit else None
|
||||
|
||||
# build GPT model
|
||||
|
Reference in New Issue
Block a user