run-benchmarks.yml 950 B

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