FaultTolerance launcher on LeptonExecutor emits unresolved head node / node rank macros
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 269
- 派生
- 123
- 平均合并
- 3 小时 3 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA-NeMo/Run 的其他 Issue
-
SlurmExecutor: `no_requeue` has no effect because `--requeue` is hard-coded可能已有人在做 @dundysm 于 5 天前认领。 未关闭community-request
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA-NeMo/Run#727 · 1 条评论 ·
维护者通常 1 天内回复
-
dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainings可能已有人在做 @dundysm 于 14 天前认领。 未关闭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 天内回复
相似的 Issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 · 3 条评论 ·
维护者通常 1 天内回复
-
polish
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores可能已有人在做 @AshutoshSingh840 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
UKGovernmentBEIS/control-arena#992 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
mvalentsev/awesome-free-ai-coding#70 ·
维护者通常 1 天内回复