Package: pipelinelocalrun
AML Pipeline Local Run GuideThis repository contains sdk code to run aml pipeline locally.
So far there are 2 job running modes supported in pipeline local run:Native:  this mode means run the job in native processContainer:  this mode the local pipeline executor will help building the container based on the environment defined in pipeline job component.limitations:Only support CommandJob (SweepJob and DistributedJob are not supported)Pure local run with local metrics/UI support (need to run local server container if want to see ui)project structurepiprunengine: main pkg for pipeline local executortests:  unit test to run all sample pipelines (defined in notebookxx)notebookxx: unit test pipeline definition and related resources.prerequisitesDockerazure ml devplat-v2 sdkpython version > 3.7How to run it1.1 clone this repo to local1.2 create a new python env with condacondacreate-n<local_run_env>python=3.91.3 install the local run sdkfind the latest wheel in release folder and install it in the new created envpipinstallpipelinelocalrun==0.1.91.4 install jupyter if want to run in notebookpipinstalljupyter1.5 start local web server if want to try local ui & mlflow (optional)dockerrun-eAML_LOCAL_RUN_DB_PATH="/metadata/localrun.db"-eLOCALUI_START=true-p127.0.0.1:4999:80/tcp-p127.0.0.1:8080:8080/tcp-p127.0.0.1:3001:3001/tcp-p127.0.0.1:5000:5000/tcp--mounttype=bind,source='<current-user-home-path>\.azureml\piprun',target=/metadata<image_name:tag><current-user-home-path>:for windows:C:\Users\<username>for linux:/home/<username><image_name:tag>is the image built in step 2.41.6 how to use in code/notebookimport the local run func from the install pkgfrompiprunengineimportrunfollowing the normal steps in the notebook to build your pipeline(you can ignore all steps which need interaction with aml workspace)start pipeline local runoutput_root_dir="./local-run-output/notebook_1a_native"# set pipeline namepipeline.name="test-pipeline"run(output_root_dir=output_root_dir,job=pipeline,experiment_name="test")note: by default it runs in CONTAINER mode and it will build the curated container locally and run in container mode.1.7 try with notebook demonotebook1a/pipeline_with_components_from_yaml.ipynbnotebook1b/pipeline_with_python_function_components.ipynbnotebook2c/nyc_taxi_data_regression.ipynbnotebook1d/pipeline_with_non_python_components.ipynbContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.TrademarksThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must followMicrosoft's Trademark & Brand Guidelines.
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.