Repository navigation
feat: evaluation implement - #16
Merged
Merged
Conversation
yuki-97
force-pushed
the
yukih/eval
branch
6 times, most recently
from
March 24, 2025 03:54
87f6419 to
bbda80e
Compare
parthchadha
reviewed
Mar 24, 2025
yuki-97
force-pushed
the
yukih/eval
branch
2 times, most recently
from
March 25, 2025 03:22
4033c1a to
27b417d
Compare
terrykong
reviewed
Mar 25, 2025
yuki-97
force-pushed
the
yukih/eval
branch
3 times, most recently
from
March 25, 2025 08:15
c0a72bf to
be87a25
Compare
parthchadha
reviewed
Mar 25, 2025
parthchadha
previously approved these changes
Mar 25, 2025
parthchadha
reviewed
Mar 25, 2025
terrykong
requested changes
Mar 25, 2025
terrykong
previously approved these changes
Mar 26, 2025
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
parthchadha
approved these changes
Mar 26, 2025
SahilJain314
approved these changes
Mar 26, 2025
parthchadha
enabled auto-merge (squash)
March 26, 2025 23:53
parthchadha
disabled auto-merge
March 26, 2025 23:53
parthchadha
enabled auto-merge (squash)
March 26, 2025 23:53
Closed
yfw
pushed a commit
that referenced
this pull request
Apr 2, 2025
Signed-off-by: Yuki Huang <[email protected]> Signed-off-by: Yi-Fu Wu <[email protected]>
KiddoZhu
pushed a commit
that referenced
this pull request
May 6, 2025
Signed-off-by: Yuki Huang <[email protected]>
avenkateshha
added a commit
to avenkateshha/RL
that referenced
this pull request
May 23, 2026
…t API Address easy-batch items from PR NVIDIA-NeMo#2508 review. - Move sinkhorn_one_dim / apply_canonicalization_if_enabled / clean_model_name_for_filename / project_token_likelihoods to nemo_rl/utils/x_token/_shared.py and import from there in the four projection-prep CLIs (#5). - Drop unused sinkhorn (10-iter), debug_projection_map, and generate_projection_map from minimal_projection_generator.py (NVIDIA-NeMo#8). - Move minimal_projection_generator.py's CLI parsing under `if __name__ == "__main__":` so the module is importable for the P1 dedup harness. - Rename seq1 / seq2 (and the derivative s1_*/s2_*/used_seq*/joined_seq*/ seg* names) to student_tokens / teacher_tokens throughout TokenAligner._align_single / _align_with_anchors / _align_dp; all call sites are internal (NVIDIA-NeMo#11). - Replace **kwargs in TokenAligner._align_with_anchors with the five explicit keyword-only scoring knobs already declared on _align_dp, and pass them through named at the _align_single call site (NVIDIA-NeMo#12). - Remove dead TokenAligner.load_projection_matrix + the private _load_projection_components plus the now-orphaned self._projection_* attributes; the live projection-load path is nemo_rl/algorithms/x_token/utils.py::{get_sparse_projection_matrix, get_topk_projection} added in 6336464 (NVIDIA-NeMo#13, NVIDIA-NeMo#14). - git mv nemo_rl/algorithms/x_token/tokenalign.py -> token_aligner.py and update import sites in __init__.py, data/cross_tokenizer_collate.py, the four utils.x_token CLIs, and the xtoken-distillation guide; update Sphinx :mod: references in algorithms/x_token/utils.py (NVIDIA-NeMo#16). Incidental: the CLIs previously called TokenAligner._canonical_token, which was never a class attribute (the helper is module-level); the new shared helper imports _canonical_token directly so the use_canonicalization branch isn't broken at runtime. Signed-off-by: Adithya Hanasoge <[email protected]>
avenkateshha
added a commit
to avenkateshha/RL
that referenced
this pull request
May 27, 2026
…t API Address easy-batch items from PR NVIDIA-NeMo#2508 review. - Move sinkhorn_one_dim / apply_canonicalization_if_enabled / clean_model_name_for_filename / project_token_likelihoods to nemo_rl/utils/x_token/_shared.py and import from there in the four projection-prep CLIs (#5). - Drop unused sinkhorn (10-iter), debug_projection_map, and generate_projection_map from minimal_projection_generator.py (NVIDIA-NeMo#8). - Move minimal_projection_generator.py's CLI parsing under `if __name__ == "__main__":` so the module is importable for the P1 dedup harness. - Rename seq1 / seq2 (and the derivative s1_*/s2_*/used_seq*/joined_seq*/ seg* names) to student_tokens / teacher_tokens throughout TokenAligner._align_single / _align_with_anchors / _align_dp; all call sites are internal (NVIDIA-NeMo#11). - Replace **kwargs in TokenAligner._align_with_anchors with the five explicit keyword-only scoring knobs already declared on _align_dp, and pass them through named at the _align_single call site (NVIDIA-NeMo#12). - Remove dead TokenAligner.load_projection_matrix + the private _load_projection_components plus the now-orphaned self._projection_* attributes; the live projection-load path is nemo_rl/algorithms/x_token/utils.py::{get_sparse_projection_matrix, get_topk_projection} added in 6336464 (NVIDIA-NeMo#13, NVIDIA-NeMo#14). - git mv nemo_rl/algorithms/x_token/tokenalign.py -> token_aligner.py and update import sites in __init__.py, data/cross_tokenizer_collate.py, the four utils.x_token CLIs, and the xtoken-distillation guide; update Sphinx :mod: references in algorithms/x_token/utils.py (NVIDIA-NeMo#16). Incidental: the CLIs previously called TokenAligner._canonical_token, which was never a class attribute (the helper is module-level); the new shared helper imports _canonical_token directly so the use_canonicalization branch isn't broken at runtime. Signed-off-by: Adithya Hanasoge <[email protected]>
copy-pr-bot Bot
pushed a commit
that referenced
this pull request
Jun 7, 2026
…t API Address easy-batch items from PR #2508 review. - Move sinkhorn_one_dim / apply_canonicalization_if_enabled / clean_model_name_for_filename / project_token_likelihoods to nemo_rl/utils/x_token/_shared.py and import from there in the four projection-prep CLIs (#5). - Drop unused sinkhorn (10-iter), debug_projection_map, and generate_projection_map from minimal_projection_generator.py (#8). - Move minimal_projection_generator.py's CLI parsing under `if __name__ == "__main__":` so the module is importable for the P1 dedup harness. - Rename seq1 / seq2 (and the derivative s1_*/s2_*/used_seq*/joined_seq*/ seg* names) to student_tokens / teacher_tokens throughout TokenAligner._align_single / _align_with_anchors / _align_dp; all call sites are internal (#11). - Replace **kwargs in TokenAligner._align_with_anchors with the five explicit keyword-only scoring knobs already declared on _align_dp, and pass them through named at the _align_single call site (#12). - Remove dead TokenAligner.load_projection_matrix + the private _load_projection_components plus the now-orphaned self._projection_* attributes; the live projection-load path is nemo_rl/algorithms/x_token/utils.py::{get_sparse_projection_matrix, get_topk_projection} added in 6336464 (#13, #14). - git mv nemo_rl/algorithms/x_token/tokenalign.py -> token_aligner.py and update import sites in __init__.py, data/cross_tokenizer_collate.py, the four utils.x_token CLIs, and the xtoken-distillation guide; update Sphinx :mod: references in algorithms/x_token/utils.py (#16). Incidental: the CLIs previously called TokenAligner._canonical_token, which was never a class attribute (the helper is module-level); the new shared helper imports _canonical_token directly so the use_canonicalization branch isn't broken at runtime. Signed-off-by: Adithya Hanasoge <[email protected]>
copy-pr-bot Bot
pushed a commit
that referenced
this pull request
Jun 7, 2026
…t API Address easy-batch items from PR #2508 review. - Move sinkhorn_one_dim / apply_canonicalization_if_enabled / clean_model_name_for_filename / project_token_likelihoods to nemo_rl/utils/x_token/_shared.py and import from there in the four projection-prep CLIs (#5). - Drop unused sinkhorn (10-iter), debug_projection_map, and generate_projection_map from minimal_projection_generator.py (#8). - Move minimal_projection_generator.py's CLI parsing under `if __name__ == "__main__":` so the module is importable for the P1 dedup harness. - Rename seq1 / seq2 (and the derivative s1_*/s2_*/used_seq*/joined_seq*/ seg* names) to student_tokens / teacher_tokens throughout TokenAligner._align_single / _align_with_anchors / _align_dp; all call sites are internal (#11). - Replace **kwargs in TokenAligner._align_with_anchors with the five explicit keyword-only scoring knobs already declared on _align_dp, and pass them through named at the _align_single call site (#12). - Remove dead TokenAligner.load_projection_matrix + the private _load_projection_components plus the now-orphaned self._projection_* attributes; the live projection-load path is nemo_rl/algorithms/x_token/utils.py::{get_sparse_projection_matrix, get_topk_projection} added in 6336464 (#13, #14). - git mv nemo_rl/algorithms/x_token/tokenalign.py -> token_aligner.py and update import sites in __init__.py, data/cross_tokenizer_collate.py, the four utils.x_token CLIs, and the xtoken-distillation guide; update Sphinx :mod: references in algorithms/x_token/utils.py (#16). Incidental: the CLIs previously called TokenAligner._canonical_token, which was never a class attribute (the helper is module-level); the new shared helper imports _canonical_token directly so the use_canonicalization branch isn't broken at runtime. Signed-off-by: Adithya Hanasoge <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 7, 2026
…wen35 397b chain Root cause of bug NVIDIA-NeMo#16 (deterministic deadlock on every worker process's second train step, 5/5 occurrences on gb300+gb200): NeMo-RL hardcoded check_for_nan_in_grad=True (mcore default: False). The check runs torch.isnan(bucket.grad_data.norm()) inside the DDP grad-ready hook — a device-to-host sync between grad-ready and the DP reduce-scatter enqueue. Cluster-wide py-spy during the live hang (job 2292043) showed 29/64 ranks blocked exactly there (rerun_state_machine.validate_result <- check_grads <- start_grad_sync <- register_grad_ready) while peers spun in TP/EP collectives and pipeline p2p. Keeps default True for existing recipes; the qwen35 recipe opts out. NaN grads still surface via the optimizer's global grad norm. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 7, 2026
…ive deadlock check_for_nan_in_grad=false alone did not cure bug NVIDIA-NeMo#16 (job 2293084 still deadlocked on its second in-process step, 7/7 pattern). Nonblocking py-spy during that hang shows whole DP replicas diverged: 12/32 sampled ranks finished the full fwd/bwd schedule (blocked in post-train empty_cache) while 20 sat mid-forward in GatedDeltaNet._resolve_cu_seqlens - a blocking cu_seqlens[-1].cpu().item() D2H sync per GDN layer. With overlap_grad_reduce=true, per-bucket DP reduce-scatters enqueue from backward hooks at rank-dependent times relative to PP p2p / TP / EP ops; the mid-schedule D2H syncs jitter that order into a cross-communicator cycle. The first step per process is serialized by triton JIT of the GDN kernels (per-process cache), which is why the race only opens on step 2. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 7, 2026
…scrimination FR analysis of job 2294872 (overlap_grad_reduce already off): in 3 of 4 EP-32 groups exactly one rank COMPLETED alltoall seq N (all sends+recvs done, so every peer exchanged with it successfully) while its 31 peers never completed the same op - the peers' transfers among themselves wedged. Same seq ids on all ranks (no schedule skew). Code-level causes eliminated; testing NVLS/multicast transport under overlapped alltoall+p2p+SP traffic. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 7, 2026
…CCL_CUMEM_ENABLE=0 max_split_size_mb:512 reproduced the historical NCCL p2p channel-creation OOM twice (Cuda failure 2 in _end_coalescing at first pipeline send/recv; jobs 2296417/2296489, matching job 2269456 documented in this file). expandable_segments stays. The bug NVIDIA-NeMo#16 transport bisection continues with NCCL cuMem allocation disabled instead, which is the actual interaction surface with the torch VMM pool. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 7, 2026
…N bwd autotune configs Root-cause candidate for bug NVIDIA-NeMo#16 (every worker process deadlocks on its second train step): upstream fla NVIDIA-NeMo#999 documents Qwen3.5 GDN silent hangs in prepare_wy_repr_bwd_kernel on B200-class GPUs, sequence-length dependent, caused by unstable Triton autotune configs; fixed upstream in PR NVIDIA-NeMo#1000 (ac6c648, 2026-07-02) by restricting the config space to num_warps=2/num_stages=4 on Blackwell. The pinned fla-core 0.4.2 predates the fix. Ship a patched wy_fast.py (0.4.2 + the PR NVIDIA-NeMo#1000 restriction) in runtime_fixes/, bind-mounted over the megatron worker venv copy (path verified via fla.__file__ inside the image, job 2300937). Multi-agent analysis + adversarial verification: the exact wedge trigger is still ambiguous (leading amended theory: the unstable config wedges under step-2-specific concurrent load from the first post-optimizer dist-opt param gathers), but this fix tests and covers the whole FLA-config-instability family. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 7, 2026
…logy-aware placement Setting only the sbatch half (--segment=N) gives a segment-aligned allocation but leaves NeMo-RL's worker-bundle ordering unaligned; cluster.segment_size=N (virtual_cluster.get_reordered_bundle) orders bundles by NVLink domain and enforces complete N-node segments so EP groups (8 nodes each) land inside single NVL72 segments. Unsegmented placement is a root-cause candidate for bug NVIDIA-NeMo#16: EP groups provably spanned NVLink-domain boundaries differently in every window, and a peer-observed hang correlates with a replica split across racks. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
michal2409
pushed a commit
to michal2409/RL
that referenced
this pull request
Jul 13, 2026
… protocol Reference-branch alignment (arigazzi/mlperf-training-qwen35-main), tested in grpo-aligned-1: lr 2.5e-6 -> 1.0e-6 (masked seqs dropped from 145/256 at step 5 to <=20/256 through 24 steps; train reward 0.22 -> 0.67), train agent timeout 600 -> 1200s, concurrency 128 -> 256, gpu_memory_utilization 0.55 -> 0.80, moe_router_dtype fp64 -> fp32, overlap_grad_reduce re-enabled (bug NVIDIA-NeMo#16 root cause was rack-topology, fixed by segments). Val protocol: 256-concurrency val censored itself (median episode model time 843-1080s, 28-43% timeouts at 1200s; measured val 3.5-15.2% vs 67% train solve). Val now runs at concurrency 128 with the gym-default 1800s budget. Also remove the benchmark-yaml override that silently shadowed the val timeout back to 600s. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Futrega <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Changelog
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Checklist when contributing
Additional Information
#61