Unverified Commit 0064e40e authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

Refactor integration test (step 10) - miscellaneous docs and help messages (#4901)

parent a9897ec0
...@@ -106,7 +106,7 @@ For example, with anaconda you can specify: ...@@ -106,7 +106,7 @@ For example, with anaconda you can specify:
Configure shared storage Configure shared storage
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remote training service support shared storage, which can help use your own storage during using NNI. Follow the guide `here <./shared_storage.rst>`__ to learn how to use shared storage. Remote training service support shared storage, which can help use your own storage during using NNI. Follow the guide :doc:`here <./shared_storage>` to learn how to use shared storage.
Monitor via TensorBoard Monitor via TensorBoard
^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
......
...@@ -222,6 +222,9 @@ def get_stopped_experiment_config_json(exp_id, exp_dir=None): ...@@ -222,6 +222,9 @@ def get_stopped_experiment_config_json(exp_id, exp_dir=None):
_logger.error('Id %s not exist!', exp_id) _logger.error('Id %s not exist!', exp_id)
return None return None
if experiment_metadata['status'] != 'STOPPED': if experiment_metadata['status'] != 'STOPPED':
_logger.error('Only stopped experiments can be resumed or viewed!') _logger.error(
'Only stopped experiments can be resumed or viewed! But retrieved metadata for %s is:\n%s',
exp_id, experiment_metadata
)
return None return None
return Config(exp_id, experiment_metadata['logDir']).get_config() return Config(exp_id, experiment_metadata['logDir']).get_config()
...@@ -8,7 +8,7 @@ pr: none ...@@ -8,7 +8,7 @@ pr: none
jobs: jobs:
- job: linux - job: linux
pool: nni-it pool: nni-it
timeoutInMinutes: 120 timeoutInMinutes: 60
steps: steps:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
......
...@@ -8,7 +8,7 @@ pr: none ...@@ -8,7 +8,7 @@ pr: none
jobs: jobs:
- job: linux - job: linux
pool: nni-it pool: nni-it
timeoutInMinutes: 120 timeoutInMinutes: 60
steps: steps:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
...@@ -18,12 +18,7 @@ jobs: ...@@ -18,12 +18,7 @@ jobs:
- template: templates/install-nni.yml - template: templates/install-nni.yml
- script: | - template: templates/install-customized-tuner.yml
set -e
cd examples/tuners/customized_tuner
python setup.py develop
nnictl algo register --meta meta_file.yml
displayName: Install customized tuner
- script: | - script: |
set -e set -e
......
...@@ -8,7 +8,7 @@ schedules: ...@@ -8,7 +8,7 @@ schedules:
jobs: jobs:
- job: linux - job: linux
pool: nni-it pool: nni-it
timeoutInMinutes: 120 timeoutInMinutes: 60
steps: steps:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
......
...@@ -8,7 +8,7 @@ schedules: ...@@ -8,7 +8,7 @@ schedules:
jobs: jobs:
- job: hybrid - job: hybrid
pool: nni-it pool: nni-it
timeoutInMinutes: 120 timeoutInMinutes: 90
steps: steps:
# FIXME: should use GPU here # FIXME: should use GPU here
......
...@@ -8,7 +8,7 @@ schedules: ...@@ -8,7 +8,7 @@ schedules:
jobs: jobs:
- job: linux - job: linux
pool: nni-it pool: nni-it
timeoutInMinutes: 120 timeoutInMinutes: 60
steps: steps:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
......
...@@ -15,7 +15,7 @@ jobs: ...@@ -15,7 +15,7 @@ jobs:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
parameters: parameters:
platform: windows platform: windows
python_venv: noop python_env: noop
- template: templates/install-nni.yml - template: templates/install-nni.yml
parameters: parameters:
......
...@@ -13,7 +13,7 @@ pr: none ...@@ -13,7 +13,7 @@ pr: none
jobs: jobs:
- job: remote_linux2linux - job: remote_linux2linux
pool: nni-it pool: nni-it
timeoutInMinutes: 140 timeoutInMinutes: 120
steps: steps:
# FIXME: GPU is not supported yet. # FIXME: GPU is not supported yet.
......
...@@ -12,14 +12,14 @@ variables: ...@@ -12,14 +12,14 @@ variables:
jobs: jobs:
- job: remote_windows2windows - job: remote_windows2windows
pool: nni-it-windows pool: nni-it-windows
timeoutInMinutes: 60 timeoutInMinutes: 120
steps: steps:
# FIXME: GPU is not supported yet. # FIXME: GPU is not supported yet.
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
parameters: parameters:
platform: windows platform: windows
python_venv: noop python_env: noop
- template: templates/install-nni.yml - template: templates/install-nni.yml
parameters: parameters:
......
...@@ -110,7 +110,7 @@ def test_concat_loader_with_ddp( ...@@ -110,7 +110,7 @@ def test_concat_loader_with_ddp(
model = BoringModel() model = BoringModel()
trainer = Trainer( trainer = Trainer(
strategy='ddp', strategy='ddp',
accelerator='auto', accelerator='cpu',
devices=num_devices, devices=num_devices,
replace_sampler_ddp=replace_sampler_ddp, replace_sampler_ddp=replace_sampler_ddp,
) )
......
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