Skip to content

Commit

Permalink
ADLR/megatron-lm!2519 - chore: Fix local generator script
Browse files Browse the repository at this point in the history
  • Loading branch information
ko3n1g committed Jan 7, 2025
1 parent ab171c5 commit c8d12e6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions tests/test_utils/python_scripts/generate_local_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,33 @@ def load_script(config_path: str) -> str:
@click.option(
"--test-case", required=False, type=str, help="Returns a single test-case with matching name."
)
@click.option(
"--environment",
required=True,
type=str,
help="Pass 'lts' for PyTorch 24.01 and 'dev' for a more recent version.",
)
@click.option(
"--output-path",
required=True,
type=str,
help="Directory where the functional test will write its artifacts to (Tensorboard logs)",
default="/opt/megatron-lm",
)
def main(model: Optional[str], scope: Optional[str], test_case: Optional[str], output_path: str):
def main(
model: Optional[str],
scope: Optional[str],
test_case: Optional[str],
environment: str,
output_path: str,
):
workloads = common.load_workloads(
container_image='none', scope=scope, model=model, test_case=test_case, container_tag='none'
container_image='none',
scope=scope,
model=model,
test_case=test_case,
environment=environment,
container_tag='none',
)

for workload in workloads:
Expand Down

0 comments on commit c8d12e6

Please sign in to comment.