mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-12 20:54:35 +00:00
[zero] add strict ddp mode (#2508)
* [zero] add strict ddp mode * [polish] add comments for strict ddp mode * [zero] fix test error
This commit is contained in:
@@ -93,7 +93,7 @@ def run_gpt(placement_policy, tp_init_spec_func=None):
|
||||
else:
|
||||
init_device = None
|
||||
|
||||
model = GeminiDDP(model, init_device, placement_policy, True, False, 32)
|
||||
model = GeminiDDP(model, init_device, placement_policy, True, False)
|
||||
# The same as the following 3 lines
|
||||
# chunk_manager = ChunkManager(config_dict, init_device=init_device)
|
||||
# gemini_manager = GeminiManager(placement_policy, chunk_manager)
|
||||
|
Reference in New Issue
Block a user