Repository navigation
Conversation
|
/ok to test 484af90 |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
Reviewed all three changed files and the affected checkpoint save/load paths. One blocking compatibility regression remains: restricted loading rejects structured configuration metadata that NeMo itself writes.
The new security test covers executable-reducer rejection, but the compatibility fixtures use only untyped configurations and miss this producer case. The callback documentation describes the intended restricted-loading policy; its compatibility promise needs the correction below.
Static source review only; tests were not executed.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
|
[🤖]: Hi @pzelasko 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully. So it might be time to merge this PR or get some approvals. |
|
/ok to test 2d6a4a6 |
|
/review |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
The structured-configuration fix addresses the previous blocker. No unresolved prior finding or eligible new regression remains, so I recommend approval within this follow-up’s scope.
I inspected all six changed files and compared the follow-up changes with the previously reviewed head. The schema registration and expanded typed-node allowlist address the concrete CTC configuration failure from review 5700855628/comment 4414690353. The regression fixture now covers that configuration with SGD and Adam, including EMA tensors, current step, optimizer options, and Adam moments.
I also traced schema import order, companion checkpoint production, optimizer restoration, restricted annotation loading, and registration preservation. The EMA loader retains weights_only=True and changes optimizer state only after successful loading. The callback documentation remains consistent with that path.
This was a follow-up review, retaining the historical moderate-impact threshold for new findings—not a fresh broad review. Static source review only; I did not execute tests, build the documentation, or independently verify commit-author/sign-off identities.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
|
[🤖]: Hi @pzelasko 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully. So it might be time to merge this PR or get some approvals. |
nithinraok
left a comment
There was a problem hiding this comment.
The restricted EMA load improves checkpoint safety, but it needs to support the structured MultiTaskDecodingConfig that EncDecMultiTaskModel can add to its own config. Please register that trusted schema and add a companion-checkpoint resume test for it. Keep the existing tests that reject unsupported pickle objects.
The new tests cover CTC structured config, SGD and Adam state, and rejected reducers. They do not cover the multitask schema. The callback guide describes the restricted loading policy, but the supported NeMo-generated config case needs the compatibility fix above.
|
/ok to test c0dc27b |
|
/review |
c0dc27b to
08ea606
Compare
|
/ok to test 08ea606 |
|
/review |
There was a problem hiding this comment.
Yes—this PR now adds only tests and documentation. During deduplication, the shared serialization/schema support and EMA loading implementation were consolidated into #16504, which has since merged into main. I verified that main contains both restricted EMA loading and MultiTaskDecodingConfig registration. This follow-up adds the dedicated plain/CTC/multitask SGD/Adam resume regressions, rejection cases, evaluation coverage, and callback documentation. I updated the description to remove the stale stack instructions and make that scope explicit.
|
[🤖]: Hi @pzelasko 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully. So it might be time to merge this PR or get some approvals. |
Signed-off-by: Piotr Żelasko <[email protected]>
08ea606 to
af4deb7
Compare
What does this PR do ?
Add dedicated EMA companion-checkpoint regression coverage and documentation for the implementation already merged into main in #16504.
Collection: Common, ASR.
Implementation is already in main via #16504. This PR targets main and adds only EMA regression tests and documentation; it makes no additional runtime changes.
Changelog
Usage
Existing EMA training and evaluation interfaces remain unchanged. The loading implementation and schema registrations were delivered by #16504; this follow-up adds their dedicated regression coverage and callback guide.
GitHub Actions CI
This follow-up targets main after #16504 merged. CI and review apply to the current published head.
Before your PR is "Ready for review"
Pre checks:
PR Type:
Additional Information
Validation previously run on these changes with Lightning/PyTorch Lightning 2.6.6, before the parent merged:
CUDA_VISIBLE_DEVICES='' OMP_NUM_THREADS=2 python -m pytest tests/collections/common/test_ema_checkpoint_security.py tests/collections/common/test_ema.py tests/utils/test_lightning_callback_defaults.py tests/core/test_lightning_checkpoint_compatibility.py tests/core/test_dependency_compatibility.py --cpu -q -m 'not pleasefixme' --timeout=180: 90 passed, 14 skipped.PYTHONPATH=/tmp/speech-checkpoint-loading CUDA_VISIBLE_DEVICES='' python -m sphinx -b html -W --keep-going -E docs/source /tmp/nov6-stack-docs: passed.pre-commit run --from-ref origin/codex/update-training-dependency-compatibility --to-ref HEAD, full-branchpre-commit run --from-ref origin/main --to-ref HEAD, and diff checks: passed.The new multitask and evaluation cases reproduced failures before the corresponding parent support was aligned. GPU/distributed workloads and released Canary inference fixtures were not validated locally; the relevant model assets are available to CI. Existing device-dependent tests remain skipped locally.