Skip to content

Commit

Permalink
Add benchmark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed Apr 16, 2024
1 parent b9beaf3 commit b01a1f0
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Run Regression Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow-dispatch:

jobs:
test:
strategy:
matrix:
include:
- name: CUDA 2.2.2
runs-on: 4-core-ubuntu-gpu-t4
torch-spec: 'torch==2.2.2'
- name: CUDA 2.3 RC
runs-on: 4-core-ubuntu-gpu-t4
torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/test/cu121'
- name: CUDA Nightly
runs-on: 4-core-ubuntu-gpu-t4
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121'
- name: CPU 2.2.2
runs-on: 32-core-ubuntu
torch-spec: 'torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu'
- name: CPU 2.3 RC
runs-on: 32-core-ubuntu
torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/test/cpu'
- name: Nightly CPU
runs-on: 32-core-ubuntu
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cpu'
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ${{ matrix.torch-spec }}
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Install package
run: |
pip install .
- name: Run benchmark
run: |
cd benchmarks
python intmm.py --filepath intmm_shapes.csv
python intmm.py --filepath sam_vit_b_shapes.csv

0 comments on commit b01a1f0

Please sign in to comment.