SlurmExecutor: `no_requeue` has no effect because `--requeue` is hard-coded
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
issueで挙げられている nemo_run/run/torchx_backend/schedulers/slurm.py 内のsbatchコマンドの箇所から始め、次に nemo_run/run/ray/slurm.py とdry-runの出力を確認してください。これらの経路で requeue、no_requeue、SBATCH_NO_REQUEUE がどのように扱われるかを検証してください。デフォルトでは引き続きrequeueが可能で、どちらのオプトアウト指定でも無効になり、dry runで送信オプションとスクリプトオプションに一貫性があることを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The Slurm scheduler always runs sbatch --requeue --parsable ... (slurm.py#L180, also #L148, #L253, ray/slurm.py#L591). As a result, neither additional_parameters={"no_requeue": True} nor SBATCH_NO_REQUEUE=1 can turn requeue off.
Steps/Code to reproduce bug
import nemo_run as run
executor = run.SlurmExecutor(
account="my_account",
tunnel=run.LocalTunnel(job_dir="/tmp/nemo_run_repro"),
additional_parameters={"no_requeue": True},
)
run.run(run.Script(inline="echo hello"), executor=executor, dryrun=True)
The dry run shows the job script asks for no requeue, but it is submitted with --requeue:
sbatch --requeue --parsable $SBATCH_SCRIPT
...
#SBATCH --no-requeue
Submitted like this, the job is requeueable (Slurm 24.11: scontrol show job <id> shows Requeue=1), because sbatch's command line overrides #SBATCH lines and SBATCH_* environment variables.
Expected behavior
Requeue stays the default, but no_requeue or SBATCH_NO_REQUEUE=1 turns it off.
Additional context
Possible fix: write requeue as #SBATCH --requeue like the other options (unless the user sets requeue or no_requeue), and drop --requeue from the sbatch commands.
- 主要言語
- Python
- スター
- 268
- フォーク
- 121
- 平均マージ
- 3時間 42分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA-NeMo/Run のほかの issue
-
dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainings対応中かも @dundysm が 9 日前に担当しました。 オープンcommunity-request
難易度 3/5 半日 初心者へのやさしさ 25/100
NVIDIA-NeMo/Run#704 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
NVIDIA-NeMo/Run#678 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
NVIDIA-NeMo/Run#665 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
NVIDIA-NeMo/Run#659 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
NVIDIA-NeMo/Run#594 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
NVIDIA-NeMo/Run の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"対応中かも @cestercian が今日担当しました。 オープンcomp/cli P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#162259 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
AOSSIE-Org/PictoPy#1802 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
pytorch/pytorch#207247 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
backend: claude chore dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
briandconnelly/amicus#606 ·
メンテナーはふだん 1 日以内に返信