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

[ENHANCEMENT] Automatic Wall-Time resubmission #3

Open
TJ-Solergibert opened this issue Feb 6, 2025 · 0 comments
Open

[ENHANCEMENT] Automatic Wall-Time resubmission #3

TJ-Solergibert opened this issue Feb 6, 2025 · 0 comments
Assignees

Comments

@TJ-Solergibert
Copy link

We want to exit the job gracefully by saving a checkpoint and exiting the script when reaching the Slurm time limit of the job. In PyTorch lightning we could easily do that by catching a given signal we sent with slurm via #SBATCH --signal=SIGUSR2@600 but we can't easily do this anymore as PyTorch's torchrun is capturing those signals.

I suggest using #SBATCH --signal=B:SIGUSR2@600 to send the signal to the sbatch script and from this write a trigger to gracefully exit the run.

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

No branches or pull requests

1 participant