nv-accelerate-v100.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: nv-accelerate-v100
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - 'docs/**'
  6. - 'blogs/**'
  7. merge_group:
  8. branches: [ master ]
  9. schedule:
  10. - cron: "0 0 * * *"
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. unit-tests:
  16. runs-on: [self-hosted, nvidia, cu111, v100]
  17. steps:
  18. - uses: actions/checkout@v3
  19. - id: setup-venv
  20. uses: ./.github/workflows/setup-venv
  21. - name: Install pytorch
  22. run: |
  23. pip install -U --cache-dir $TORCH_CACHE torch torchvision --extra-index-url https://download.pytorch.org/whl/cu111
  24. python -c "import torch; print('torch:', torch.__version__, torch)"
  25. python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  26. - name: Install deepspeed
  27. run: |
  28. pip install .[dev,autotuning]
  29. ds_report
  30. - name: Python environment
  31. run: |
  32. pip list
  33. - name: HF Accelerate tests
  34. run: |
  35. unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
  36. git clone https://github.com/huggingface/accelerate
  37. cd accelerate
  38. git rev-parse --short HEAD
  39. # installing dependencies
  40. pip install .[testing]
  41. # force protobuf version due to issues
  42. pip install "protobuf<4.21.0"
  43. # tmp fix: force newer datasets version
  44. #pip install "datasets>=2.0.0"
  45. pip list
  46. pytest $PYTEST_OPTS --color=yes --durations=0 --verbose tests/deepspeed