chore: nightly sync main into dev (30_07_2026) - #6159
Draft
svcnvidia-nemo-ci wants to merge 149 commits into
Draft
chore: nightly sync main into dev (30_07_2026)#6159svcnvidia-nemo-ci wants to merge 149 commits into
svcnvidia-nemo-ci wants to merge 149 commits into
Conversation
…ptimizer` (#5623) Signed-off-by: Hristo Filaretov <hfilaretov@nvidia.com> Co-authored-by: Michał Marcinkiewicz <43240942+mmarcinkiewicz@users.noreply.github.com>
…5770) Signed-off-by: Jingyue Wu <jingyuew@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Siddharth Singh <sidsingh@nvidia.com>
Signed-off-by: Siddharth Singh <sidsingh@nvidia.com>
Signed-off-by: Siddharth Singh <sidsingh@nvidia.com>
…aths (#5530) Signed-off-by: Min Htet Myet <mattralminn@email.com> Signed-off-by: Mattral <mattralminn@gmail.com>
…n h100 (#5801) Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
…nstead of model provider, allow loading teacher ckpt independently of student (#4520) Signed-off-by: Asha Anoosheh <aanoosheh@nvidia.com>
Signed-off-by: Ajay <abalasa@nvidia.com> Signed-off-by: Ajay Balasa <abalasa@nvidia.com> Signed-off-by: [Your Name] <your.email@example.com>
Signed-off-by: Keshav Santhanam <ksanthanam@nvidia.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Signed-off-by: Haoran Zhang <haoranz@nvidia.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
Signed-off-by: Siddharth Singh <sidsingh@nvidia.com>
…le (#5810) Signed-off-by: Jinhang Choi <jinhangc@nvidia.com> Co-authored-by: Cory Ye <44509866+cspades@users.noreply.github.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com> Signed-off-by: svcnvidia-nemo-ci <svcnvidia-nemo-ci@nvidia.com> Co-authored-by: svcnvidia-nemo-ci <svcnvidia-nemo-ci@nvidia.com>
Signed-off-by: Shanhao <5197744+shanhaoli@users.noreply.github.com>
…est (#5826) Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: Keshav Santhanam <ksanthanam@nvidia.com>
Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
…5815) Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
Signed-off-by: Philip Petrakian <ppetrakian@nvidia.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Contributor
Author
|
/ok to test a62c10c |
svcnvidia-nemo-ci
force-pushed
the
main2dev/30_07_2026
branch
from
July 30, 2026 23:06
a62c10c to
201c517
Compare
Contributor
Author
|
/ok to test 201c517 |
…armup values, duplicate merge symbols, and dropped arg definition - dynamic_engine.py: restore main-only batch_dimensions_utils import and cuda_graph_all_prefills assignment dropped by the merge (NameError at import). - training.py: rename get_hybrid_data_context_parallel_groups -> get_dynamic_data_context_parallel_groups (dev renamed the symbol; main's override still used the old name -> ImportError). - 3 golden_values JSON: sanitize iteration-time step-1 warmup 'nan' -> 0.0 to pass the new main-only check_golden_values.py lint. Step 1 is warmup and is never compared at runtime (steady-window median only), so comparison-neutral. - packed_seq_params.py: remove duplicate 'pad_between_seqs' dataclass field the merge kept from both sides (file now identical to origin/dev). - fused_a2a.py: remove duplicate HYBRIDEP_TOKEN_ALIGNMENT constant the merge kept from both sides. Both duplicates were flagged by Sphinx autodoc2.dup_item and caused build-docs to fail. - arguments.py: restore main-only '--override-ckpt-iteration' add_argument that the merge dropped while keeping its consumers in arguments.py/checkpointing.py (AttributeError: 'Namespace' object has no attribute 'override_ckpt_iteration' broke every unit-test shard that builds args). Signed-off-by: claude[bot] <noreply@anthropic.com> Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
svcnvidia-nemo-ci
force-pushed
the
main2dev/30_07_2026
branch
from
July 31, 2026 00:28
201c517 to
1241aa1
Compare
Contributor
Author
|
/ok to test 1241aa1 |
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.
Summary
Nightly sync of
mainintodev.mainmerged intodev.7cd77c636; parentsorigin/dev(95e4baf) +origin/main(ff6b92a).Python lines: +42496 / -5586 across 334 files(git diff --numstat origin/dev...HEAD -- '*.py'). The large+is dominated by new/renamed files main brought in (gated_delta_netrestructure, experimentallite), not conflict edits.-X theirs).Files where main's version was taken
Skill-sanctioned "Files to Override from Main" (reference dev-only args/APIs main removed/renamed) — taken via
git checkout origin/main, then API-mismatch-audited:megatron/training/training.pymegatron/training/utils/common_utils.py(dev splitutils.py;is_gtp_remat_activere-export preserved inutils/__init__.py)megatron/core/optimizer/layer_wise_optimizer.pymegatron/training/arguments.py,argument_utils.py,checkpointing.py,models/dist_utils.py(resolved toward main where they reference main-side arg/API shapes)Dynamic-inference stack — taken from main because main strictly supersedes dev:
megatron/core/inference/engines/dynamic_engine.pymegatron/core/inference/contexts/dynamic_context.pytests/unit_tests/inference/test_mtp_cuda_graph_inference.pyMain's mamba prefix caching (Mamba prefix caching fixes #5502, Ensure Mamba prefix cache snapshots are recorded for multi-chunk prompts #5952) builds on dev's Fix Mamba prefix match for chunked prefill #4758, and main's async scheduling (Extend dynamic inference asynchronous scheduling support #5939) extends dev's Implement async scheduling for dynamic inference #5453 (removed
_validate_async_sched_support_for_request; SERIAL→LEGACY/ASYNC). Main's_can_schedule_*/ CG-admission helpers were already auto-merged and call each other, so a piecemeal resolution would have produced Frankenstein code (orphaned dev-onlymamba_caching_enabled, calls into the deleted validator). The merged engine calls main-onlycan_prepare_requests()and expects main'sprepare_requests/resolve_requestssignatures, sodynamic_context.pymust also be main's.Preserved dev-only line: [dev] partial cuda graph support for thd format training. #4359's
max_seqlen=query_emb.size(0)indynamic_context.apply_rotary_emb_query(required — mergedrope_utils.pyis dev's, which assertsmax_seqlen is not None).gated_delta_netrestructure (dev movedGatedDeltaNetintocommon.py; main added standalonegdn.py):common.py— kept dev's version (authoritativeGatedDeltaNet,get_parameter_local_cp_headwise,_build_thd_cp_a2a_perm,_build_head_perm_for_split_sections).gdn.py— converted main's standalone module into a re-export shim so the...gdnimport path keeps working.__init__.py— re-exports updated to_headwisename; no staleget_parameter_local_cpimporters remain.Files deleted in dev but restored
tests/unit_tests/inference/engines/test_cg_admission_gating.py— restored from main. Added by Inference: Cudagraph-aware admission gating in prefill scheduler #4870 (ancestor of both branches), present at merge-base + main, but absent on dev due to an accidental drop in a prior sync merge (a5e420afa), not a deliberate dev deletion. Main modified it via Extend dynamic inference asynchronous scheduling support #5939; it exercises exactly the CG-admission methods kept in the merged engine.Kept deleted (dev intentionally removed):
.github/workflows/multi-approval-bot.yml(deleted on dev, modified on main; dev's deletion intentional).Dependency triple & CODEOWNERS
pyproject.toml,uv.lock,docker/Dockerfile.ci.dev,.github/CODEOWNERS— all verified byte-identical toorigin/devin the merge result.mamba-ssmgit source NOT added. Main declares amamba-ssmgit rev; dev pinsmamba-ssm~=2.2(PyPI). The triple has comprehensively diverged with dev ahead (TransformerEnginef031cf87> maine7c550c5; emerging_optimizers v0.3.0 > v0.2.0; dev-onlynvidia-cudnn-frontend,nvidia-resiliency-ext) — the skill's "keep dev's triple" case, not the narrow "main added one source" reconciliation. Mergedmamba_ssmimports (selective_state_update,RMSNorm as RMSNormGated,ssd_combined,import mamba_ssm) are standard public 2.x API satisfied by dev's PyPI pin and guarded at runtime bymegatron/core/utils.pyversion checks — no symbol requires main's rev. Avoids an unnecessaryuv.lockregen.Disposition of pre-push advisory findings
The advisory audit reported 3363 raw hits. These are exact-string, whitespace-sensitive diffs over two branches each ~150 commits past their merge-base, so the vast majority are cosmetic (black reflow, line-wrapping, trailing commas) or lines main legitimately evolved. Scoping to lines dev-added after merge-base, absent on main, absent in the merge (the only genuine-accident pattern) with whitespace normalization reduces this to 13 files, all resolved:
megatron/post_training/model_builder.py— KD-state blockmto.ModeloptStateManager(model).state_dict().pop()(present at base) deleted by maine97ac8360(Various ModelOpt fixes: QAD test for CICD, use model builder config instead of model provider, allow loading teacher ckpt independently of student #4520). No dangling reference remains.megatron/rl/rl_utils.py—packing_context.has_inference_logprobs = ...(present at base) removed by mainc922805a4(Add support for non-Gym multi-turn environments #5312), replaced with a locally-computedhas_inference_logprobs. Thepacking_contextattribute is no longer referenced.hybrid_layer_allocation.pyVALID_LAYERS/MLA_ATTENTIONhold both dev'sCSA/HCA/WINDOWand main'sMLA;test_optimizer.pyimport block has all symbols), reflowed calls (router.pyz_lossrecord), superseded APIs (dev's per-paramcopy_tensor_to_quantized_param→ main's batchedcopy_tensors_to_quantized_params, Perf: skip per-param copy_ dispatch in the MXFP8 param copy-back #6094; singular still defined for tests), and reflowed docstrings.CODEOWNERS and the dep triple appear in the remerge-diff (resolution differed from naive auto-merge) but are verified identical to
origin/devin the final tree.Commit signing
Signed off (
-s). Cryptographic signing (-S) is disabled in this environment (USE_COMMIT_SIGNING=false, emptySSH_SIGNING_KEY, no key material), so/ok to testreferences the SHA explicitly.Merge verification
.pyfilesast.parseclean.gated_delta_netre-exported symbols resolve to stagedcommon.py.Conflict resolutions (remerge-diff)
Full
git show --remerge-diff HEADis 12,307 lines (dominated by golden-value JSON +uv.lock). Excerpt below covers the highest-value code resolutions (inference engine/context, gated_delta_net, rl_utils, model_builder, param_and_grad_buffer), each capped.remerge-diff excerpt (key code files)