Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .main.commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61f31145dfb4cfaa7d285df12aa9abffb22ff485
b4ad280d352e7d3d57040f60a16f358da1a75893
8 changes: 6 additions & 2 deletions tests/unit_tests/doc_consistency/test_readme_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

REPO_ROOT = Path(__file__).resolve().parents[3]
RECIPES_DIR = REPO_ROOT / "src" / "megatron" / "bridge" / "recipes"
PERF_RECIPES_DIR = REPO_ROOT / "src" / "megatron" / "bridge" / "perf_recipes"
TRAINING_README = REPO_ROOT / "scripts" / "training" / "README.md"
DATASET_UTILS = REPO_ROOT / "src" / "megatron" / "bridge" / "recipes" / "utils" / "dataset_utils.py"
LLAMA_README = REPO_ROOT / "tutorials" / "recipes" / "llama" / "README.md"
Expand Down Expand Up @@ -81,9 +82,12 @@ def _read(p: Path) -> str:


def _defined_recipe_names() -> set[str]:
"""All recipe-config functions and public aliases under src/.../recipes/**."""
"""All recipe-config functions and public aliases under src/.../recipes/** and perf_recipes/**."""
names: set[str] = set()
for py in RECIPES_DIR.rglob("*.py"):
recipe_files = list(RECIPES_DIR.rglob("*.py"))
if PERF_RECIPES_DIR.is_dir():
recipe_files += list(PERF_RECIPES_DIR.rglob("*.py"))
for py in recipe_files:
tree = ast.parse(_read(py), filename=str(py))
for node in tree.body:
if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)) and node.name.endswith("_config"):
Expand Down
14 changes: 14 additions & 0 deletions tests/unit_tests/examples/test_glm_45v_slurm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import subprocess
from pathlib import Path
Expand Down
Loading
Loading