Unverified Commit a9b6fd42 authored by J-shang's avatar J-shang Committed by GitHub
Browse files

Fix pipeline (#3386)

parent 464e33fe
...@@ -71,8 +71,14 @@ def _inverse_cluster_metadata(platform: str, metadata_config: list) -> dict: ...@@ -71,8 +71,14 @@ def _inverse_cluster_metadata(platform: str, metadata_config: list) -> dict:
inverse_config['amlConfig'] = kv['value'] inverse_config['amlConfig'] = kv['value']
elif kv['key'] == 'trial_config': elif kv['key'] == 'trial_config':
inverse_config['trial'] = kv['value'] inverse_config['trial'] = kv['value']
elif platform == 'adl':
for kv in metadata_config:
if kv['key'] == 'adl_config':
inverse_config['adlConfig'] = kv['value']
elif kv['key'] == 'trial_config':
inverse_config['trial'] = kv['value']
else: else:
raise RuntimeError('training service platform not found') raise RuntimeError('training service platform {} not found'.format(platform))
return inverse_config return inverse_config
class Config: class Config:
......
...@@ -343,6 +343,8 @@ def set_experiment(experiment_config, mode, port, config_file_name): ...@@ -343,6 +343,8 @@ def set_experiment(experiment_config, mode, port, config_file_name):
request_data['multiPhase'] = experiment_config.get('multiPhase') request_data['multiPhase'] = experiment_config.get('multiPhase')
if experiment_config.get('multiThread'): if experiment_config.get('multiThread'):
request_data['multiThread'] = experiment_config.get('multiThread') request_data['multiThread'] = experiment_config.get('multiThread')
if experiment_config.get('nniManagerIp'):
request_data['nniManagerIp'] = experiment_config.get('nniManagerIp')
if experiment_config.get('advisor'): if experiment_config.get('advisor'):
request_data['advisor'] = experiment_config['advisor'] request_data['advisor'] = experiment_config['advisor']
if request_data['advisor'].get('gpuNum'): if request_data['advisor'].get('gpuNum'):
...@@ -419,6 +421,9 @@ def set_experiment(experiment_config, mode, port, config_file_name): ...@@ -419,6 +421,9 @@ def set_experiment(experiment_config, mode, port, config_file_name):
request_data['clusterMetaData'].append(request_dict[platform]) request_data['clusterMetaData'].append(request_dict[platform])
request_data['clusterMetaData'].append( request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']}) {'key': 'trial_config', 'value': experiment_config['trial']})
elif experiment_config['trainingServicePlatform'] == 'adl':
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
response = rest_post(experiment_url(port), json.dumps(request_data), REST_TIME_OUT, show_error=True) response = rest_post(experiment_url(port), json.dumps(request_data), REST_TIME_OUT, show_error=True)
if check_response(response): if check_response(response):
return response return response
......
...@@ -7,7 +7,7 @@ schedules: ...@@ -7,7 +7,7 @@ schedules:
jobs: jobs:
- job: linux - job: linux
pool: NNI CI GPU3 pool: nni-ci-gpu-local
timeoutInMinutes: 120 timeoutInMinutes: 120
steps: steps:
...@@ -15,7 +15,7 @@ jobs: ...@@ -15,7 +15,7 @@ jobs:
echo "##vso[task.setvariable variable=PATH]${PATH}:${HOME}/.local/bin" echo "##vso[task.setvariable variable=PATH]${PATH}:${HOME}/.local/bin"
echo "##vso[task.setvariable variable=NNI_RELEASE]999.$(date -u +%Y%m%d%H%M%S)" echo "##vso[task.setvariable variable=NNI_RELEASE]999.$(date -u +%Y%m%d%H%M%S)"
python3 -m pip install --upgrade pip setuptools python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install pytest python3 -m pip install pytest
displayName: Prepare displayName: Prepare
...@@ -29,8 +29,9 @@ jobs: ...@@ -29,8 +29,9 @@ jobs:
- script: | - script: |
set -e set -e
python3 -m pip install scikit-learn==0.23.2 python3 -m pip install scikit-learn==0.23.2
python3 -m pip install torchvision==0.6.1 python3 -m pip install torchvision==0.7.0
python3 -m pip install torch==1.5.1 python3 -m pip install torch==1.6.0
python3 -m pip install 'pytorch-lightning>=1.1.1,<1.2'
python3 -m pip install keras==2.1.6 python3 -m pip install keras==2.1.6
python3 -m pip install tensorflow==2.3.1 tensorflow-estimator==2.3.0 python3 -m pip install tensorflow==2.3.1 tensorflow-estimator==2.3.0
python3 -m pip install thop python3 -m pip install thop
......
...@@ -12,7 +12,7 @@ jobs: ...@@ -12,7 +12,7 @@ jobs:
steps: steps:
- script: | - script: |
python -m pip install --upgrade pip setuptools python -m pip install --upgrade pip setuptools wheel
python -m pip install pytest python -m pip install pytest
displayName: Install Python tools displayName: Install Python tools
...@@ -27,7 +27,8 @@ jobs: ...@@ -27,7 +27,8 @@ jobs:
- script: | - script: |
python -m pip install scikit-learn==0.23.2 python -m pip install scikit-learn==0.23.2
python -m pip install keras==2.1.6 python -m pip install keras==2.1.6
python -m pip install torchvision===0.6.1 torch===1.5.1 -f https://download.pytorch.org/whl/torch_stable.html python -m pip install torch==1.6.0 torchvision==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install 'pytorch-lightning>=1.1.1,<1.2'
python -m pip install tensorflow==2.3.1 tensorflow-estimator==2.3.0 python -m pip install tensorflow==2.3.1 tensorflow-estimator==2.3.0
displayName: Install extra dependencies displayName: Install extra dependencies
......
...@@ -218,6 +218,7 @@ export namespace ValidationSchemas { ...@@ -218,6 +218,7 @@ export namespace ValidationSchemas {
maxExecDuration: joi.number().min(0).required(), maxExecDuration: joi.number().min(0).required(),
multiPhase: joi.boolean(), multiPhase: joi.boolean(),
multiThread: joi.boolean(), multiThread: joi.boolean(),
nniManagerIp: joi.string(),
versionCheck: joi.boolean(), versionCheck: joi.boolean(),
logCollection: joi.string(), logCollection: joi.string(),
advisor: joi.object({ advisor: joi.object({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment