File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1235,6 +1235,8 @@ def __post_init__(self):
1235
1235
"use_dualpipev" ,
1236
1236
"forward_backward_overlap_scheduler" ,
1237
1237
"enable_dynamic_shape" ,
1238
+ "sync_moment" ,
1239
+ "sync_param" ,
1238
1240
]:
1239
1241
raise ValueError (
1240
1242
f"Found unknown pipeline mode config { x } , accept config is disable_p2p_cache_shape, disable_partial_send_recv."
@@ -1287,6 +1289,18 @@ def __post_init__(self):
1287
1289
in pipeline_parallel_config ,
1288
1290
"enable_dynamic_shape" : "enable_dynamic_shape" in pipeline_parallel_config ,
1289
1291
}
1292
+
1293
+ pp_sync_param = "sync_param" in pipeline_parallel_config
1294
+ pp_sync_moment = "sync_moment" in pipeline_parallel_config
1295
+
1296
+ if pp_sync_param :
1297
+ logger .info ("setting pp sync_param" )
1298
+ strategy .hybrid_configs ["pp_configs" ].sync_param = True
1299
+
1300
+ if pp_sync_moment :
1301
+ logger .info ("setting pp sync_moment" )
1302
+ strategy .hybrid_configs ["pp_configs" ].sync_moment = True
1303
+
1290
1304
if dygraph_pp_configs ["dp_comm_overlap" ]:
1291
1305
raise ValueError ("overlap has accuracy issue" ) # TODO: fix `overalap` + `delay_scale` issue
1292
1306
You can’t perform that action at this time.
0 commit comments