From cc2eba43e400e276498e3fe303b2b9c2f1f0030c Mon Sep 17 00:00:00 2001 From: jomedinagomez Date: Thu, 10 Nov 2022 21:10:04 -0500 Subject: [PATCH] Update pipeline-train.py --- .../mlops/azureml/pipeline-train.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/nlp/python-sdk-v2/mlops/azureml/pipeline-train.py b/nlp/python-sdk-v2/mlops/azureml/pipeline-train.py index 293f3b3..c328a81 100644 --- a/nlp/python-sdk-v2/mlops/azureml/pipeline-train.py +++ b/nlp/python-sdk-v2/mlops/azureml/pipeline-train.py @@ -19,19 +19,19 @@ def get_config_parger(parser: argparse.ArgumentParser = None): group.add_argument( "--subscription_id", type=str, - required=True, + required=False, help="Subscription ID", ) group.add_argument( "--resource_group", type=str, - required=True, + required=False, help="Resource group name", ) group.add_argument( "--workspace_name", type=str, - required=True, + required=False, help="Workspace name", ) group.add_argument( @@ -129,14 +129,6 @@ def connect_to_aml(args): print( "Could not find config.json, using config.yaml refs to Azure ML workspace instead." ) - - # tries to connect using cli args if provided else using config.yaml - ml_client = MLClient( - subscription_id=args.subscription_id, - resource_group_name=args.resource_group, - workspace_name=args.workspace_name, - credential=credential, - ) return ml_client @@ -396,4 +388,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file