12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- name: nv-torch18-v100
- on:
- push:
- branches:
- - 'master'
- - 'staging**'
- paths-ignore:
- - 'docs/**'
- pull_request:
- paths-ignore:
- - 'docs/**'
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
- jobs:
- unit-tests:
- runs-on: [self-hosted, nvidia, cu111, v100]
- steps:
- - uses: actions/checkout@v2
- - name: environment
- run: |
- nvidia-smi
- which python
- python --version
- which nvcc
- nvcc --version
- pip install --upgrade pip
- pip uninstall --yes torch torchvision
- pip install torch==1.8.2+cu111 torchvision==0.9.2+cu111 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
- 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 uninstall --yes transformers
- pip install .
- - name: Python environment
- run: |
- pip list
- - name: Install deepspeed
- run: |
- pip uninstall --yes deepspeed
- pip install .[dev,1bit,autotuning,sparse_attn]
- ds_report
- - name: Unit tests
- run: |
- unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
- if [[ -d ./torch-extensions ]]; then rm -rf ./torch-extensions; fi
- cd tests
- TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --forked --verbose -n 4 unit/ --torch_ver="1.8" --cuda_ver="11.1"
- TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --forked --verbose -m 'sequential' unit/ --torch_ver="1.8" --cuda_ver="11.1"
|