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

Submitit integration #2125

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

mhavasi
Copy link

@mhavasi mhavasi commented Jan 9, 2024

This pull requests adds a runner for the SubmitIt package (https://github.com/facebookincubator/submitit). With the SubmitIt package, we can use the Ax scheduler to schedule jobs on a SLURM cluster.

The integration requires defining a Runner and a Metric for SubmitIt executors (submitit.py). The quick-start guide (submitit_scheduler.py) explains how to set-up a basic experiment and directs the user towards further Ax resources that they may be interested in.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 9, 2024
Copy link
Author

@mhavasi mhavasi left a comment

Choose a reason for hiding this comment

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

The code in submitit.py is a 90% copy-paste of Michael Shvartsman's code here (https://github.com/mshvartsman/Ax/blob/submitit-runner/ax/runners/submitit.py).


elif isinstance(self.executor, LocalExecutor):
############
##### this fails to pickle, doesn't work
Copy link
Author

Choose a reason for hiding this comment

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

Why does this fail?

from submitit.core.core import Executor


class SubmitItRunner(Runner):
Copy link
Author

Choose a reason for hiding this comment

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

Are poll_exception and poll_available_capacity important to define for a Runner?

@codecov-commenter
Copy link

Codecov Report

Attention: 56 lines in your changes are missing coverage. Please review.

Comparison is base (5230a53) 94.79% compared to head (39712d2) 94.68%.
Report is 2 commits behind head on main.

❗ Current head 39712d2 differs from pull request most recent head ad03d19. Consider uploading reports for the commit ad03d19 to get more accurate results

Files Patch % Lines
ax/runners/submitit.py 0.00% 56 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2125      +/-   ##
==========================================
- Coverage   94.79%   94.68%   -0.12%     
==========================================
  Files         460      461       +1     
  Lines       45400    45457      +57     
==========================================
+ Hits        43039    43040       +1     
- Misses       2361     2417      +56     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants