Skip to content

Commit

Permalink
【Cherrypick】add enable_offload_queue to PipelineParallel (#9709)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoxiaWang authored Jan 5, 2025
1 parent f08082e commit fba77f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddlenlp/trainer/training_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,7 @@ def __post_init__(self):
"enable_overlap_p2p_comm",
"disable_batch_p2p_comm",
"best_unbalanced_scheduler",
"enable_offload_queue",
]:
raise ValueError(
f"Found unknown pipeline mode config {x}, accpet config is disable_p2p_cache_shape, disable_partial_send_recv."
Expand Down Expand Up @@ -1164,6 +1165,7 @@ def __post_init__(self):
"clear_every_step_cache": "enable_clear_every_step_cache" in pipeline_parallel_config,
"use_batch_p2p_comm": "disable_batch_p2p_comm" not in pipeline_parallel_config,
"best_unbalanced_scheduler": "best_unbalanced_scheduler" in pipeline_parallel_config,
"enable_offload_queue": "enable_offload_queue" in pipeline_parallel_config,
}
if dygraph_pp_configs["dp_comm_overlap"]:
raise ValueError("overlap has accuracy issue") # TODO: fix `overalap` + `delay_scale` issue
Expand Down

0 comments on commit fba77f1

Please sign in to comment.