You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Main executor's method. Sets up logging, pipes data from each pipeline step to the next, saves statistics
68
-
and marks tasks as completed.
105
+
and marks tasks as completed. We assume node_rank == 0 is the master node. node_rank == -1 means single node mode.
106
+
Completion is only marked on the master node, all other nodes are ignored in terms of job completion as we use 1-master, many-workers mode.
107
+
In this case it's master responsibility to check for workers completion and mark the job as complete.
69
108
Args:
70
109
rank: the rank that we want to run the pipeline for
71
110
local_rank: at the moment this is only used for logging.
72
111
Any task with local_rank != 0 will not print logs to console.
73
-
112
+
node_rank: node rank/ID for logging prefix. Logs will be prefixed with [NODE X] if node_rank != -1. We assume node_rank == 0 is the master node. -1 means single node mode (default).
74
113
Returns: the stats for this task
75
114
76
115
"""
77
116
ifself.is_rank_completed(rank):
78
117
logger.info(f"Skipping {rank=} as it has already been completed.")
0 commit comments