FaultTolerance launcher on LeptonExecutor emits unresolved head node / node rank macros

Ouverte
#730 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@dundysm y travaille déjà.

Depuis le 1/12/2026.

  • #731 par @dundysm — ouverte

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
python

Piste de recherche

Start in packaging.py at the FaultTolerance branch and trace how it calls ft_launcher(); compare this with the Torchrun branch and the Lepton handling in torchrun.torchrun. The issue reports that the unresolved macros produce invalid multi-node rendezvous arguments and identifies the expected flags. A linked open pull request (#731) already addresses the issue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

community-request waiting-on-maintainers
Describe the bug

LeptonExecutor with the FaultTolerance launcher builds an ft_launcher command that still contains the unresolved ExecutorMacros placeholders for the head node IP and node rank. LeptonExecutor.macro_values() returns None, so the Lepton scheduler never substitutes them, and the script that runs on each node gets literal $$${head_node_ip_var} / $$${node_rank_var}. In bash that becomes the shell pid followed by an empty var, so the rendezvous endpoint and node rank are garbage on a multi-node job.

The plain Torchrun launcher handles this already: packaging.py passes lepton=isinstance(executor, LeptonExecutor) to torchrun.torchrun, which then emits --node-rank $NODE_RANK --master-addr $MASTER_ADDR --master-port $MASTER_PORT. The FaultTolerance branch does not pass that flag, and ft_launcher() has no lepton parameter to forward, so it falls through to the generic c10d path. This is the same gap that #402 closed for DGX Cloud.

Steps to reproduce
import nemo_run as run
from nemo_run.core.execution.lepton import LeptonExecutor
from nemo_run.run.torchx_backend.packaging import package

for launcher in [run.Torchrun(), run.FaultTolerance()]:
    ex = LeptonExecutor(
        resource_shape="gpu.8xh100-80gb", node_group="g", container_image="img",
        nodes=2, gpus_per_node=8, nemo_run_dir="/nr", mounts=[], launcher=launcher,
    )
    ex.job_dir = "/tmp/x"
    ex.experiment_id = "e"
    role = package("t", run.Script(inline="echo hi"), ex, serialize_to_file=False).roles[0]
    print(type(launcher).__name__, role.entrypoint, " ".join(role.args))

Output on main:

Torchrun torchrun --nnodes 2 --nproc-per-node 8 --node-rank $NODE_RANK --master-addr $MASTER_ADDR --master-port $MASTER_PORT --no-python /nemo_run/scripts/t.sh
FaultTolerance ft_launcher --ignore-missing-fault-tol-cfg --rdzv-backend c10d --rdzv-endpoint $$${head_node_ip_var}:29500 --rdzv-id 2584 --nnodes 2 --nproc-per-node 8 --node-rank $$${node_rank_var} --tee 3 --no-python /nemo_run/scripts/t.sh
Expected behavior

ft_launcher on Lepton should get the same --node-rank $NODE_RANK --master-addr $MASTER_ADDR --master-port $MASTER_PORT args as torchrun (ft_launcher takes the standard torchrun rendezvous flags).

Proposed fix

Add a lepton parameter to ft_launcher() that is forwarded to torchrun.torchrun, and pass lepton=isinstance(executor, LeptonExecutor) from the FaultTolerance branch in packaging.py. I have a fix with a test and will open a PR.

Langage dominant
Python
Étoiles
269
Forks
123
Merge moyen
3 h 3 min
PR mergées (30 j)
5

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NVIDIA-NeMo/Run

Toutes les issues de NVIDIA-NeMo/Run

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.