FaultTolerance launcher on LeptonExecutor emits unresolved head node / node rank macros
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- distributed-systems
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 269
- Forks
- 123
- Merge medio
- 3 h 3 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA-NeMo/Run
-
SlurmExecutor: `no_requeue` has no effect because `--requeue` is hard-codedPosiblemente ocupada @dundysm la tomó hace 5 días. Abiertocommunity-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA-NeMo/Run#727 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainingsPosiblemente ocupada @dundysm la tomó hace 14 días. Abiertocommunity-request
Dificultad 3/5 Medio día Aptitud para principiantes 25/100
NVIDIA-NeMo/Run#704 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
NVIDIA-NeMo/Run#678 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
NVIDIA-NeMo/Run#665 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
NVIDIA-NeMo/Run#659 ·
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA-NeMo/Run
Issues similares
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertogood first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPosiblemente ocupada @AshutoshSingh840 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
UKGovernmentBEIS/control-arena#992 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Los mantenedores suelen responder en 1 día