deepspeed

Форк
0
/
nv-transformers-v100.yml 
64 строки · 2.0 Кб
1
name: nv-transformers-v100
2

3
on:
4
  pull_request:
5
    paths-ignore:
6
      - 'docs/**'
7
      - 'blogs/**'
8
      - 'deepspeed/inference/v2/**'
9
      - 'tests/unit/inference/v2/**'
10
  merge_group:
11
    branches: [ master ]
12
  schedule:
13
    - cron: "0 0 * * *"
14

15
concurrency:
16
  group: ${{ github.workflow }}-${{ github.ref }}
17
  cancel-in-progress: true
18

19
jobs:
20
  unit-tests:
21
    runs-on: [self-hosted, nvidia, cu116, v100]
22

23
    steps:
24
      - uses: actions/checkout@v3
25

26
      - id: setup-venv
27
        uses: ./.github/workflows/setup-venv
28

29
      - name: Install pytorch
30
        run: |
31
          # use the same pytorch version as transformers CI
32
          pip install -U --cache-dir $TORCH_CACHE torch==2.0.1+cu118 --index-url https://download.pytorch.org/whl/cu118
33
          python -c "import torch; print('torch:', torch.__version__, torch)"
34
          python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
35

36
      - name: Install transformers
37
        run: |
38
          git clone https://github.com/huggingface/transformers
39
          cd transformers
40
          # if needed switch to the last known good SHA until transformers@master is fixed
41
          git checkout e7e9261a2
42
          git rev-parse --short HEAD
43
          pip install .
44

45
      - name: Install deepspeed
46
        run: |
47
          pip install .[dev,autotuning]
48
          ds_report
49

50
      - name: Python environment
51
        run: |
52
          pip list
53

54
      - name: HF transformers tests
55
        run: |
56
          unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
57
          cd transformers
58
          pip install .[testing]
59
          # find reqs used in ds integration tests
60
          find examples/pytorch -regextype posix-egrep -regex '.*(language-modeling|question-answering|summarization|image-classification|text-classification|translation).*/requirements.txt' -exec grep -v 'torch' {} \; | xargs -I {} pip install --upgrade {}
61
          # force protobuf version due to issues
62
          pip install "protobuf<4.21.0"
63
          pip list
64
          WANDB_DISABLED=true RUN_SLOW=1 pytest $PYTEST_OPTS tests/deepspeed
65

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.