azure-pipelines.yml 2.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

jobs:
- job: Default
  timeoutInMinutes: 360
  pool:
    name: 'GPU_testing'

  strategy:
    matrix:
      Python36:
        python.version: '3.6'
      #Python35:
      #  python.version: '3.5'
      #Python37:
      #  python.version: '3.7'
      #Python38:
      #  python.version: '3.8'


  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'
      addToPath: true
      architecture: 'x64'
    displayName: 'Use Python $(python.version)'

  - script: |
      python -m pip install --upgrade pip
      pip install --user -r requirements.txt
      ./install.sh
    displayName: 'Install dependencies'

  - script: |
      pre-commit run --all-files
    displayName: 'Formatting checks'

  - script: |
      pip install --user pylint
      pylint --exit-zero deepspeed/
    displayName: 'Code linter'

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

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

S
Shaden Smith 已提交
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
   #BingBertSquad logs
  - task: PublishPipelineArtifact@1
    inputs:
      targetPath: '$(Build.SourcesDirectory)/tests/model/BingBertSquad/test/'
      artifactName: BingBertSquad_logs
    displayName: 'BingBertSquad log uploads'
    condition: always()

  # 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()

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

S
Shaden Smith 已提交
77

78 79 80 81 82 83 84 85 86 87 88 89 90 91
  #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()

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