Added steps to register dataset and the environment

This commit is contained in:
Setu Chokshi 2022-06-03 11:10:15 +08:00
Родитель 3b4b22b3a7
Коммит 12e42314ff
4 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,5 @@
$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json $schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
name: nvidia_pytorch name: nvidia_pytorch
version: 22.04-py3
build: build:
path: ../../../data-science/src/environment/ path: ../../../data-science/src/environment/
tags: tags:

Просмотреть файл

@ -95,7 +95,7 @@ outputs:
code: ../../../data-science/src code: ../../../data-science/src
environment: azureml:azureml:nvidia_pytorch:22.04-py3 environment: azureml:azureml:nvidia_pytorch@latest
command: >- command: >-
python train.py python train.py

Просмотреть файл

@ -44,6 +44,15 @@ stages:
script: | script: |
echo '$(System.DefaultWorkingDirectory)' echo '$(System.DefaultWorkingDirectory)'
tree $(System.DefaultWorkingDirectory) /f tree $(System.DefaultWorkingDirectory) /f
- template: templates/${{ variables.version }}/register-environment.yml@mlops-templates
parameters:
build_type: docker
environment_name: nvidia_pytorch # Not used for docker builds
environment_file: cv/aml-cli-v2/mlops/azureml/train/train-env.yml
- template: templates/${{ variables.version }}/register-dataset.yml@mlops-templates
parameters:
build_type: docker
environment_file: cv/aml-cli-v2/mlops/azureml/train/create_stanford_dogs_dataset.yaml
- template: templates/${{ variables.version }}/run-pipeline.yml@mlops-templates - template: templates/${{ variables.version }}/run-pipeline.yml@mlops-templates
parameters: parameters:
pipeline_file: cv/aml-cli-v2/mlops/azureml/train/pipeline.yaml pipeline_file: cv/aml-cli-v2/mlops/azureml/train/pipeline.yaml