Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Support aml in hybrid pipeline (#4124)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkSnail authored Sep 6, 2021
1 parent 31fa181 commit dfba3ae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pipelines/integration-test-hybrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ jobs:
--remote_pwd $(password_in_docker) \
--remote_port $(docker_port) \
--nni_manager_ip $(manager_ip) \
--subscription_id $(subscription_id) \
--resource_group $(resource_group) \
--workspace_name $(workspace_name) \
--compute_target $(compute_target) \
--config_version v2
python3 nni_test/nnitest/run_tests.py --config config/integration_tests_config_v2.yml --ts hybrid
displayName: Integration test
Expand Down
7 changes: 6 additions & 1 deletion test/config/training_service_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ hybrid:
user:
password:
port:
- platform: local
- platform: local
- platform: aml
subscriptionId:
resourceGroup:
workspaceName:
computeTarget:
4 changes: 4 additions & 0 deletions test/nni_test/nnitest/generate_ts_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ def update_training_service_config(args):
config[args.ts]['trainingService'][0]['machineList'][0]['host'] = args.remote_host
config[args.ts]['trainingService'][0]['machineList'][0]['password'] = args.remote_pwd
config[args.ts]['trainingService'][0]['machineList'][0]['port'] = args.remote_port
config[args.ts]['trainingService'][2]['subscriptionId'] = args.subscription_id
config[args.ts]['trainingService'][2]['resourceGroup'] = args.resource_group
config[args.ts]['trainingService'][2]['workspaceName'] = args.workspace_name
config[args.ts]['trainingService'][2]['computeTarget'] = args.compute_target
config[args.ts]['nni_manager_ip'] = args.nni_manager_ip
dump_yml_content(TRAINING_SERVICE_FILE_V2, config)

Expand Down

0 comments on commit dfba3ae

Please sign in to comment.