azure-pipelines.yml 2.34 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
      pytest --forked --verbose tests/unit/
40
41
42
    displayName: 'Unit tests'

  - script: |
43
      ln -s /data/Megatron-LM/data DeepSpeedExamples/Megatron-LM/
44
      pip install --user -r DeepSpeedExamples/Megatron-LM/requirements.txt
45
      cd tests/model/
46
      pytest -s run_sanity_check.py
47
48
    displayName: 'Model tests'

49
50
51
52
53
54
   #BingBertSquad logs
  - task: PublishPipelineArtifact@1
    inputs:
      targetPath: '$(Build.SourcesDirectory)/tests/model/BingBertSquad/test/'
      artifactName: BingBertSquad_logs
    displayName: 'BingBertSquad log uploads'
55
    condition: always()
56

57
58
59
60
61
62
63
  # 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()
64

65
66
67
68
69
70
  #- 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()
71

72

73
74
75
76
77
78
79
  #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()
80

81
82
83
84
85
86
  #- task: PublishPipelineArtifact@1
  #  inputs:
  #    targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/checkpoint_test_logs/'
  #    artifactName: BingBert_checkpoint_logs
  #  displayName: 'BingBert checkpoint logs'
  #  condition: always()