name: nv-transformers-v100 on: push: branches: - 'staging**' paths-ignore: - 'docs/**' pull_request: paths-ignore: - 'docs/**' schedule: - cron: "0 0 * * *" 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 - id: setup-venv uses: ./.github/workflows/setup-venv - name: Install pytorch run: | # use the same pytorch version as transformers CI pip install torch torchvision torchaudio -f https://download.pytorch.org/whl/torch_stable.html python -c "import torch; print('torch:', torch.__version__, torch)" python -c "import torch; print('CUDA available:', torch.cuda.is_available())" - name: Install deepspeed run: | pip install .[dev,autotuning] ds_report - name: Python environment run: | pip list - name: HF transformers tests run: | if [[ -d ./torch-extensions ]]; then rm -rf ./torch-extensions; fi 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 6268694e2 git rev-parse --short HEAD # scipy/sklearn required for tests, using the 'dev' extra forces torch re-install pip install .[testing] # find reqs used in ds integration tests 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 {} # force datasets version due to issues pip install datasets==2.2.2 # force protobuf version due to issues pip install "protobuf<4.21.0" pip list HF_DATASETS_CACHE=/blob/datasets_cache/ TRANSFORMERS_CACHE=/blob/transformers_cache/ WANDB_DISABLED=true TORCH_EXTENSIONS_DIR=./torch-extensions RUN_SLOW=1 pytest --color=yes --durations=0 --verbose tests/deepspeed