ci(review): strengthen model review invariants - #2994
Conversation
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Blind review-prompt validationI ran the updated The prompt produced two High findings:
Result: the new checkpoint-free initialization guideline flags both root causes fixed by #2991: active This was a faithful local subagent simulation of the review prompt, not a hosted GitHub Actions invocation. |
|
/ok to test dd79412 |
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
|
/ok to test 88899b6 |
Summary
nemo_automodel/components/models/<model>/and classify violations elsewhere as critical findingshidden_states: Tensor of shape [batch, sequence, hidden]., allow conventional dimension names without definitions, and require a compliant rewrite example in review findingsWhy
PR #2991 exposed a gap in checkpoint-free initialization review: DeepSeek-V4 random-init training left HyperConnection tensors uninitialized and left the HashGate route table all zeros, which violated DeepEP routing invariants and produced a NaN gradient norm on the first backward pass.
The review prompt also lacked a strict ownership gate for model-specific behavior and prescribed symbolic tensor layouts without a single reusable documentation format. These additions make model boundaries and tensor contracts concrete and actionable.
Developer impact
Model-specific architecture, initialization, weight-layout, and parallelization policy must stay with the owning model package. Tensor docstrings use a consistent semantic shape form, while review findings for unclear layouts must show an acceptable rewrite. Model changes that add parameters, buffers, routing tables, or random-init paths must demonstrate valid checkpoint-free initialization.
Validation
git diff --check -- .github/workflows/claude-review.yml.github/workflows/claude-review.ymlwithyaml.safe_loadFollow-up to #2991 and NVBug 6317402.