Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for wrong task CLI arguments. #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergey-serebryakov
Copy link
Contributor

When users provide unrecognized task parameters on a command line (e.g., typo), MLCube configuration parser will report it and will raise a configuration error.
For instance, if task configuration section is:

tasks:
  download:
    parameters:
      inputs: {data_config: data.yaml}
      outputs: {data_dir: data/, log_dir: logs/}
  train:
    parameters:
      inputs: {data_dir: data/, train_config: train.yaml}
      outputs: {log_dir: logs/, model_dir: model/}

the following will raise a configuration error:

mlcube run --mlcube=. --task=download --platform=docker data_folder=/datasets/mnist

When users provide unrecognized task parameters on a command line (e.g., typo), MLCube configuration parser will report it and will raise a configuration error.
@github-actions
Copy link
Contributor

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant