run-benchmarks.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Benchmarks
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. jobs:
  7. run_benchmarks:
  8. runs-on: ubuntu-latest
  9. timeout-minutes: 10
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Set up Python
  13. uses: actions/setup-python@v2
  14. with:
  15. python-version: 3.9
  16. - name: Cache dependencies
  17. uses: actions/cache@v2
  18. with:
  19. path: ~/.cache/pip
  20. key: Key-v1-3.9-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
  21. - name: Install dependencies
  22. run: |
  23. python -m pip install --upgrade pip
  24. pip install -r requirements.txt
  25. pip install -r requirements-dev.txt
  26. - name: Build bitsandbytes
  27. run: |
  28. pip install bitsandbytes==0.32.3
  29. - name: Build hivemind
  30. run: |
  31. pip install .
  32. - name: Benchmark
  33. run: |
  34. cd benchmarks
  35. python benchmark_throughput.py --preset minimalistic
  36. python benchmark_tensor_compression.py
  37. python benchmark_dht.py