179 questions
No questions match those filters.
← All questions
Training & Fine-tuningMedium· Distributed Training· Error Handling
If rank 2 throws a Python exception mid-training, what...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansIn a distributed training job, collective operations are synchronous across all ranks. If one rank fails or throws an exception, the remaining ranks will block indefinitely at the next collective call, waiting for the failed rank to participate. To recover, the system must either explicitly handle the exception by broadcasting an error signal and calling dist.destroy_process_group() to clean up, or rely on an external job manager to identify the dead process and initiate a full job restart.