nv-torch-nightly-v100.yml 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
name: nv-torch-nightly-v100

on:
  schedule:
    - cron: "0 0 * * *"

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

11 12 13 14
permissions:
  contents: read
  issues: write

15 16
jobs:
  unit-tests:
17
    runs-on: [self-hosted, nvidia, cu116, v100]
18 19

    steps:
20
      - uses: actions/checkout@v3
21

M
Michael Wyatt 已提交
22 23 24 25
      - id: setup-venv
        uses: ./.github/workflows/setup-venv

      - name: Install pytorch
26
        run: |
27
          pip install --pre torch torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cu116
28 29 30 31 32 33 34 35 36 37 38 39 40 41
          python -c "import torch; print('torch:', torch.__version__, torch)"
          python -c "import torch; print('CUDA available:', torch.cuda.is_available())"

      - name: Install transformers
        run: |
          git clone https://github.com/huggingface/transformers
          cd transformers
          # if needed switch to the last known good SHA until transformers@master is fixed
          # git checkout 1cc453d33
          git rev-parse --short HEAD
          pip install .

      - name: Install deepspeed
        run: |
J
Jeff Rasley 已提交
42
          pip install .[dev,1bit,autotuning]
43 44
          ds_report

45 46 47 48
      - name: Python environment
        run: |
          pip list

49 50 51 52
      - name: Unit tests
        run: |
          unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
          cd tests
53 54
          pytest $PYTEST_OPTS --forked -n 4 unit/
          pytest $PYTEST_OPTS --forked -m 'sequential' unit/
55 56 57 58 59 60 61 62 63

      - name: Open GitHub issue if nightly CI fails
        if: failure()
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: .github/ISSUE_TEMPLATE/ci_failure_report.md
          update_existing: true