Repository navigation
refactor(recipe)!: flatten Nemotron example directories - #6371
Conversation
Signed-off-by: Chen Cui <chcui@nvidia.com>
|
/nvskills-ci |
|
Automatic Claude reviews have been retired. To request a pull-request review, post a comment containing: Add |
Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
Signed-off-by: Chen Cui <chcui@nvidia.com>
|
/nvskills-ci |
Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
|
/ok to test ad4b24f |
Signed-off-by: Chen Cui <chcui@nvidia.com>
|
/ok to test 5dd4bb0 |
|
/nvskills-ci |
Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
kamran-nvidia
left a comment
There was a problem hiding this comment.
One blocking issue outside the diff, plus an inline note on the new layout test.
tests/unit_tests/doc_consistency/test_readme_consistency.py still points at the old Nano layout:
Megatron-Bridge/tests/unit_tests/doc_consistency/test_readme_consistency.py
Lines 430 to 437 in 8919acf
test_nemotron_and_qwen2_audio_finetune_launchers_use_exported_recipes raises FileNotFoundError for nemotron_3/nano/slurm_sft.sh on this branch. It passes on the base commit, and it runs in Launch_Unit_Tests_Core (passing on main here), so this will fail the L0 unit tests and Nemo_CICD_Test. The new reference scanner can't catch it because the path is assembled from separate Path components rather than a contiguous examples/models/nemotron/... string.
Fix:
- MODEL_EXAMPLES / "nemotron" / "nemotron_3" / "nano" / "slurm_sft.sh": (
+ MODEL_EXAMPLES / "nemotron" / "nemotron_3_nano" / "slurm_sft.sh": (
...
- MODEL_EXAMPLES / "nemotron" / "nemotron_3" / "nano" / "slurm_peft.sh": (
+ MODEL_EXAMPLES / "nemotron" / "nemotron_3_nano" / "slurm_peft.sh": (With that change all 23 tests in the file pass.
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """Check example discovery and links without importing GPU dependencies.""" |
There was a problem hiding this comment.
This file won't run in CI. pyproject.toml lists "examples" in norecursedirs, and pytest matches those patterns against directory names at any depth. So pytest tests/unit_tests (Launch_Unit_Tests_Core.sh) never enters tests/unit_tests/examples/. None of the three unit-test shards for this PR's base commit on main (run 37890877242) collected anything from that folder. It only passes when invoked by explicit path.
Could you move it to tests/unit_tests/doc_consistency/, next to test_readme_consistency.py? It's the same depth, so parents[3] still resolves to the repo root. I tried the move locally: it gets collected from tests/unit_tests and passes there.
The two existing tests this PR updates in tests/unit_tests/examples/ have the same problem, but that's pre-existing and probably needs its own fix.
Signed-off-by: Chen Cui <chcui@nvidia.com>
|
/ok to test e289c9f |
|
/nvskills-ci |
Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
|
/ok to test 03303a7 |
Signed-off-by: Chen Cui <chcui@nvidia.com>
|
/nvskills-ci |
|
/ok to test 7c09d64 |
What does this PR do ?
Flatten Nemotron example directories so each model has a direct, importable path under
examples/models/nemotron/.Changelog
Use Nano, Nano Omni, Super, Ultra, Lightning, Super VL order consistently in example tables, model indexes, navigation, and generated catalog listings.
Move Nano, Nano Omni, Super, Ultra, Lightning, and Super VL into their model-specific directories. Lightning and Super VL use
nemotron_3_5_*names.Remove the deprecated Nano v2 VL example script and two YAML overrides. Current docs point to the verified
v0.6.0guide for those historical examples; public model and recipe APIs are unchanged.Move the family index up one level and document the intentional example-path break. Public recipes and model conversion entry points are unchanged; all 35 examples for the six requested model families are retained.
Update current documentation, commands, test discovery, the verification card/catalog, and the skill card. Preserve verified historical branch links and correct archived 0.4.2 commands against that release's actual tree.
Add package-discovery and repository/link regression checks.
GitHub Actions CI
Primary area:
area:recipe.git diff --checkpassed.examples/conversion/compare_models.pylink is already broken on the base revision and is outside this refactor.Before your PR is "Ready for review"
Pre checks:
Additional Information
Breaking path change: saved commands and
examples.models.nemotron.*imports must use the new model directories. No compatibility aliases were added. Historical release checkouts retain their own layouts.