azure-pipelines.yml 2.45 KB
Newer Older
1
2

jobs:
3
- job: Default
4
5
  timeoutInMinutes: 360
  pool:
6
    name: 'GPU_testing'
7
8
9

  strategy:
    matrix:
10
      Python36:
11
        python.version: '3.6'
12
13
14
15
16
17
      #Python35:
      #  python.version: '3.5'
      #Python37:
      #  python.version: '3.7'
      #Python38:
      #  python.version: '3.8'
18
19
20


  steps:
21
22
23
24
25
26
27
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'
      addToPath: true
      architecture: 'x64'
    displayName: 'Use Python $(python.version)'

28
  - script: |
29
30
31
32
      python -m pip install --upgrade pip
      pip install --user -r requirements.txt
      ./install.sh --pip_sudo
    displayName: 'Install dependencies'
33
34

  - script: |
35
36
      pre-commit run --all-files
    displayName: 'Formatting checks'
37
38

  - script: |
39
40
41
      pip install --user pylint
      pylint --exit-zero deepspeed/
    displayName: 'Code linter'
42
43

  - script: |
44
      pytest --forked --verbose tests/unit/
45
46
47
    displayName: 'Unit tests'

  - script: |
48
      ln -s /data/Megatron-LM/data DeepSpeedExamples/Megatron-LM/
49
      pip install --user -r DeepSpeedExamples/Megatron-LM/requirements.txt
50
      cd tests/model/
51
      pytest -s run_sanity_check.py
52
53
    displayName: 'Model tests'

54
55
56
57
58
59
   #BingBertSquad logs
  - task: PublishPipelineArtifact@1
    inputs:
      targetPath: '$(Build.SourcesDirectory)/tests/model/BingBertSquad/test/'
      artifactName: BingBertSquad_logs
    displayName: 'BingBertSquad log uploads'
60
    condition: always()
61

62
63
64
65
66
67
68
  # Megatron test logs
  #- task: PublishPipelineArtifact@1
  #  inputs:
  #    targetPath: '$(Build.SourcesDirectory)/tests/model/Megatron_GPT2/test/'
  #    artifactName: Megatron_GPT2_logs
  #  displayName: 'Megatron GPT2 log uploads'
  #  condition: always()
69

70
71
72
73
74
75
  #- task: PublishPipelineArtifact@1
  #  inputs:
  #    targetPath: '$(Build.SourcesDirectory)/tests/model/Megatron_GPT2/checkpoint_test_logs/'
  #    artifactName: Megatron_GPT2_checkpoint_logs
  #  displayName: 'Megatron GPT2 checkpoint log uploads'
  #  condition: always()
76

77

78
79
80
81
82
83
84
  #BingBert logs
  #- task: PublishPipelineArtifact@1
  #  inputs:
  #    targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/pretrain_test/'
  #    artifactName: BingBert_pretrain_logs
  #  displayName: 'BingBert pretrain logs'
  #  condition: always()
85

86
87
88
89
90
91
  #- task: PublishPipelineArtifact@1
  #  inputs:
  #    targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/checkpoint_test_logs/'
  #    artifactName: BingBert_checkpoint_logs
  #  displayName: 'BingBert checkpoint logs'
  #  condition: always()