nv-accelerate-v100.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: nv-accelerate-v100
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. - 'staging**'
  7. paths-ignore:
  8. - 'docs/**'
  9. pull_request:
  10. paths-ignore:
  11. - 'docs/**'
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. unit-tests:
  17. runs-on: [self-hosted, nvidia, cu111, v100]
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: environment
  21. run: |
  22. echo "JobID: $AISC_NODE_INSTANCE_ID"
  23. nvidia-smi
  24. which python
  25. python --version
  26. which nvcc
  27. nvcc --version
  28. pip install --upgrade pip
  29. pip uninstall --yes torch torchvision triton
  30. pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu111
  31. python -c "import torch; print('torch:', torch.__version__, torch)"
  32. python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  33. - name: Python environment
  34. run: |
  35. pip list
  36. - name: Install deepspeed
  37. run: |
  38. pip uninstall --yes deepspeed
  39. pip install .[dev,autotuning]
  40. ds_report
  41. - name: HF Accelerate tests
  42. run: |
  43. if [[ -d ./torch-extensions ]]; then rm -rf ./torch-extensions; fi
  44. git clone https://github.com/huggingface/accelerate
  45. cd accelerate
  46. # installing dependencies
  47. pip install .[testing]
  48. # force protobuf version due to issues
  49. pip install "protobuf<4.21.0"
  50. # tmp fix: force newer datasets version
  51. pip install "datasets>=2.0.0"
  52. pip list
  53. HF_DATASETS_CACHE=/blob/datasets_cache/ TRANSFORMERS_CACHE=/blob/transformers_cache/ TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --verbose tests/deepspeed