Skip to content

Synchronize with submitit Slurmexecutor python arg addition - #2830

Merged
omry merged 3 commits into
facebookresearch:mainfrom
berombau:main
Jul 24, 2026
Merged

Synchronize with submitit Slurmexecutor python arg addition#2830
omry merged 3 commits into
facebookresearch:mainfrom
berombau:main

Conversation

@berombau

@berombau berombau commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

Motivation

Synchronizing with now merged submitit change (facebookincubator/submitit#1729) that allows to pass in a "python" variable to SlurmExecutor.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

This minimal added optional variable works for my setup.

Related Issues and PRs

The previous PR #2654 does the same, but the PR was closed before it could be merged.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 5, 2024
@adamtupper

Copy link
Copy Markdown

This would be an amazing addition. I cannot use the Submitit plugin without it on our cluster.

@lauritsf lauritsf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This contribution is of high value to people working on larger HPC clusters, where the preferred approach is to use singularity containers.

The naming and default match the existing init keys.

omry
omry previously requested changes Jun 10, 2026

@omry omry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR. This looks like a useful addition, but it needs a bit more before I can take it:

  • Add tests covering the new hydra.launcher.python / slurm_python behavior.
  • Add a plugin news fragment for hydra-submitit-launcher.

Please also make sure the implementation handles the Submitit version requirement cleanly, since Hydra currently allows older Submitit versions that may not support this constructor argument.

berombau and others added 3 commits July 24, 2026 14:40
Require Submitit 1.4.6 and verify that hydra.launcher.python is
forwarded to Submitit as slurm_python.

Document the launcher option and add the plugin news fragment.

Closes facebookresearch#3309.
@omry

omry commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks @berombau for the original implementation. I’ve taken over finalizing this PR while preserving your two implementation commits and attribution.

I completed the remaining review work tracked in issue #3309: required Submitit 1.4.6, added structured configuration coverage for forwarding hydra.launcher.python as slurm_python, documented the option, and added the plugin news fragment.

The plugin tests, minimum-version tests, lint checks, and full Hydra core suite pass.

@omry
omry dismissed their stale review July 24, 2026 08:27

I took over this PR to complete the remaining work. Commit 3cfc07b addresses the requested tests, news fragment, Submitit minimum version, and documentation.

@omry

omry commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

@codex, comments?

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@omry
omry merged commit 17e9bd2 into facebookresearch:main Jul 24, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting_response Awaiting response CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants