Repository navigation
MFU logging under fullgraph, NCCL logs under distributed debug, token-budget metrics across ranks - #14207
Conversation
…; add H200 NVL peak Position-id-only padding free batches used torch.nonzero plus a Python branch on its size, which host-syncs every micro batch and fails torch.compile(fullgraph=True). Build a fixed shape [N] zero padded length vector instead. H200 NVL matched the generic H200 entry (989); NVIDIA lists 1,671 TFLOPS BF16 with sparsity, i.e. 835.5 dense.
…o import unsloth_zoo sets NCCL_DEBUG=WARN on import when UNSLOTH_ENABLE_LOGGING=1 or UNSLOTH_COMPILE_DEBUG=1, which dropped the NCCL INFO logs the distributed debug switch selects (and any value the user exported). Snapshot NCCL_DEBUG before the zoo import and restore it after, only when UNSLOTH_DEBUG_DISTRIBUTED is set.
…runs TRL gathers each forward's accuracy (and, from 1.3, entropy) sums across ranks, so per-chunk entries were left unfolded and averaged equally under DDP. All-reduce the per-chunk token counts and weight by them. Older TRL entropy averages per-rank ratios and stays unfolded; Liger and uninitialized process groups are skipped. Every rank agrees to fold in the existing chunk-count collective, so the extra all-reduce runs on every rank or on none (a rank declining to fold, e.g. a second label source, would otherwise leave its peers waiting in the all-reduce).
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
@codex security review |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
## Summary The `Core zoo` cells in `consolidated-tests-ci.yml` keep hitting their 25 minute job cap after the tests have already passed. In one cancelled cell: - the zoo `pytest -n 4` step ran from 08:41 to 09:03 and passed (3015 passed, 620 skipped), - the job was then cancelled at 25:17 during `test_apply_fused_lm_head` and the pip cache save. The comment above the cap assumed a ~7.6 min zoo suite. It now takes up to about 23 minutes on a busy runner, so the cap cancels cells that have already passed. Today that cancelled Core zoo cells on #14152, #14165, #14188, #14192, #14199 and #14207, and on staging runs. Each one needs a manual rerun before the PR can merge. This raises the cap to 35 minutes, the same as `consolidated`. Hung tests are still bounded: `PYTEST_TIMEOUT: 300` in the step still names the culprit per test. ## Tests The workflow-parsing tests (`git grep -l consolidated-tests-ci -- tests`): 158 passed, 3 skipped. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Summary
Three follow-ups on opt-in features. Default runs are unchanged.
position_ids, the token count branched on data, which brokefullgraph = Truecompilation and added a host sync per micro-batch. It is now computed without a data-dependent branch. Also adds an H200 NVL entry at 835.5 dense TFLOPS (half of NVIDIA's 1,671 with-sparsity figure); it was being measured against the H200 SXM peak.UNSLOTH_DEBUG_DISTRIBUTED(Addunsloth doctor --gpusmulti-GPU preflight and UNSLOTH_DEBUG_DISTRIBUTED #13884). Importing unsloth_zoo setsNCCL_DEBUG=WARNwhenever a logging or compile-debug switch is on, so the debug flag lost the NCCL INFO logs it asks for. WithUNSLOTH_DEBUG_DISTRIBUTEDset, unsloth now savesNCCL_DEBUGbefore that import and restores it after.Tests
tests/test_mfu_logging.pytests/test_debug_distributed_env.pytests/test_token_budget_metrics_distributed.py(2 gloo ranks)53 passed in total.
Not covered here
NCCL_DEBUGyou export yourself is still overwritten when the debug flag is off; that needs a change in unsloth_zoo.