We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439f8f3 commit 7bf31a3Copy full SHA for 7bf31a3
paddlenlp/trainer/trainer_utils.py
@@ -58,9 +58,17 @@
58
"get_last_checkpoint",
59
"get_scheduler",
60
"set_hyrbid_parallel_seed",
61
+ "log_trainer_start",
62
]
63
64
65
+def log_trainer_start():
66
+ if "MAIN_PROCESS_STARTED" not in os.environ:
67
+ start_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
68
+ logger.info(f"The Training Main Process Started Successfully. time: {start_time}, pid: {os.getpid()}")
69
+ os.environ["MAIN_PROCESS_STARTED"] = "1"
70
+
71
72
def _get_distributed_seeds(seed: int = 1234, topo: Topology = None):
73
"""
74
Get the seeds from distributed environment strategy.
0 commit comments