-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major upgrade please see release notes
- Loading branch information
Showing
76 changed files
with
920 additions
and
2,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Azure Subscription Variables | ||
WORKSPACE_NAME = '' | ||
RESOURCE_GROUP = '' | ||
SUBSCRIPTION_ID = '' | ||
LOCATION = '' | ||
TENANT_ID = '' | ||
|
||
# Azure ML Workspace Variables | ||
EXPERIMENT_NAME = '' | ||
SCRIPT_FOLDER = './' | ||
BLOB_STORE_NAME = '' | ||
# Remote VM Config | ||
REMOTE_VM_NAME = '' | ||
REMOTE_VM_USERNAME = '' | ||
REMOTE_VM_PASSWORD = '' | ||
REMOTE_VM_IP = '' | ||
# AML Compute Cluster Config | ||
AML_CLUSTER_NAME = '' | ||
AML_CLUSTER_VM_SIZE = '' | ||
AML_CLUSTER_MAX_NODES = '' | ||
AML_CLUSTER_MIN_NODES = '' | ||
AML_CLUSTER_PRIORITY = 'lowpriority' | ||
# Training Config | ||
MODEL_NAME = '' | ||
# AML Pipeline Config | ||
TRAINING_PIPELINE_NAME = '' | ||
PIPELINE_CONDA_PATH = 'aml_config/conda_dependencies.yml' | ||
MODEL_PATH = '' | ||
# Image config | ||
IMAGE_NAME = '' | ||
IMAGE_DESCRIPTION = '' | ||
IMAGE_VERSION = '' | ||
# ACI Config | ||
ACI_CPU_CORES = '' | ||
ACI_MEM_GB = '' | ||
ACI_DESCRIPTION = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,5 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# this pipeline should be ignored for now | ||
parameters: | ||
pipelineType: 'training' | ||
|
||
steps: | ||
- script: | | ||
flake8 --output-file=$(Build.BinariesDirectory)/lint-testresults.xml --format junit-xml | ||
workingDirectory: '$(Build.SourcesDirectory)' | ||
displayName: 'Run code quality tests' | ||
enabled: 'true' | ||
|
||
- script: | | ||
pytest --junitxml=$(Build.BinariesDirectory)/unit-testresults.xml $(Build.SourcesDirectory)/tests/unit | ||
displayName: 'Run unit tests' | ||
enabled: 'true' | ||
env: | ||
SP_APP_SECRET: '$(SP_APP_SECRET)' | ||
|
||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testResultsFiles: '$(Build.BinariesDirectory)/*-testresults.xml' | ||
testRunTitle: 'Linting & Unit tests' | ||
failTaskOnFailedTests: true | ||
displayName: 'Publish linting and unit test results' | ||
enabled: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
pr: none | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
container: mcr.microsoft.com/mlops/python:latest | ||
|
||
|
||
variables: | ||
- group: devopsforai-aml-vg | ||
|
||
|
||
steps: | ||
- template: azdo-base-pipeline.yml | ||
|
||
- bash: | | ||
# Invoke the Python building and publishing a training pipeline | ||
python3 $(Build.SourcesDirectory)/ml_service/pipelines/build_train_pipeline.py | ||
failOnStderr: 'false' | ||
env: | ||
SP_APP_SECRET: '$(SP_APP_SECRET)' | ||
displayName: 'Train model using AML with Remote Compute' | ||
enabled: 'true' | ||
|
||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
Contents: | | ||
ml_service/pipelines/?(run_train_pipeline.py|*.json) | ||
code/scoring/** | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact' | ||
inputs: | ||
ArtifactName: 'mlops-pipelines' | ||
publishLocation: 'container' | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
TargetPath: '$(Build.ArtifactStagingDirectory)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
container: mcr.microsoft.com/mlops/python:latest | ||
|
||
|
||
variables: | ||
- group: devopsforai-aml-vg | ||
|
||
|
||
steps: | ||
- template: azdo-base-pipeline.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.