Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job exit when all nodecheck failed #1323

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

majieyue
Copy link
Collaborator

@majieyue majieyue commented Nov 6, 2024

What changes were proposed in this pull request?

exit job if all workers can't pass node check

Why are the changes needed?

no need to re-check or try to fault tolerant this error

Does this PR introduce any user-facing change?

No

How was this patch tested?

UT

Ma Jie Yue added 2 commits November 6, 2024 20:54
and if yes, stop the job.
it happens in workers of AllReduce_Strategy jobs
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.48%. Comparing base (de6c5b1) to head (0ad2a3e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1323      +/-   ##
==========================================
+ Coverage   80.46%   80.48%   +0.02%     
==========================================
  Files         222      222              
  Lines       20740    20760      +20     
==========================================
+ Hits        16688    16709      +21     
+ Misses       4052     4051       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

0,
msg,
level=TrainingExceptionLevel.RDZV_ERROR,
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process_error(message=msg, level=...)

@@ -118,6 +118,7 @@ class JobExitReason(object):
RDZV_TIMEOUT_ERROR = "RdzvTimeout"
PENDING_TIMEOUT = "PendingTimeout"
UNCOMPLETED_TIMEOUT = "UncompletedTimeout"
RDZV_ALL_FAILED = "RdzvAllFailed"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change name to 'NodeCheckFailed'. This is actually a training failure, not a rdzv failure.

@@ -243,7 +243,42 @@ def is_all_reduce_type_job(self):
== DistributionStrategy.ALLREDUCE
)

def is_all_workers_node_check_failed(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better move this function into WorkerManager. And work for 'AllReduceType' training only.

return all(
[
node.is_node_check_failed()
for _, node in self._job_nodes[NodeType.WORKER].items()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for node in self._job_nodes[NodeType.WORKER].values()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants