FaultTolerance launcher on LeptonExecutor emits unresolved head node / node rank macros
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 269
- Fork
- 123
- Merge trung bình
- 3 giờ 3 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA-NeMo/Run
-
SlurmExecutor: `no_requeue` has no effect because `--requeue` is hard-codedCó thể đã có người làm @dundysm đã nhận 5 ngày trước. Đang mởcommunity-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA-NeMo/Run#727 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainingsCó thể đã có người làm @dundysm đã nhận 14 ngày trước. Đang mởcommunity-request
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 25/100
NVIDIA-NeMo/Run#704 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
NVIDIA-NeMo/Run#678 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
NVIDIA-NeMo/Run#665 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
NVIDIA-NeMo/Run#659 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA-NeMo/Run
Issue tương tự
-
Test: to_hijri() accepts datetime.datetime and uses only the date partCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởgood first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
omarelshamy25x/shamy-hijri#63 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresCó thể đã có người làm @AshutoshSingh840 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainer thường phản hồi trong vòng 1 ngày