Skip to content

Commit

Permalink
Attempt to integrate rust benchmarking (mix of EZKL benches + existin…
Browse files Browse the repository at this point in the history
…g zk).. Going to pivot to python due to the difficulty of implementing a circuit for MNIST
  • Loading branch information
HudsonGraeme committed Dec 6, 2023
1 parent 401c981 commit 61a5f25
Show file tree
Hide file tree
Showing 144 changed files with 52,051 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:

jobs:
start-runner:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -160,12 +160,12 @@ jobs:
BENCHY_OUTPUT_DIR: "../../.benchmarks/${{ matrix.runner }}"
run: |
cargo bench -F metal
- name: Upload .benchmarks as artifact
uses: actions/upload-artifact@v3
with:
path: .benchmarks/

noir:
runs-on: ${{ matrix.runner }}
strategy:
Expand Down Expand Up @@ -219,7 +219,6 @@ jobs:
override: true

- uses: Swatinem/rust-cache@v2

- name: Run Leo benchmarks
working-directory: ./leo
env:
Expand All @@ -231,7 +230,6 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: .benchmarks/

commit:
runs-on: ubuntu-latest
needs: [polylang, miden, risc_zero, noir]
Expand All @@ -246,7 +244,6 @@ jobs:

- name: Combine results
run: ./combine.py

- name: Copy benchmark results to site
run: |
cp benchmarks.json site/src/fixtures/benchmarks.json
Expand All @@ -270,10 +267,5 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Stop EC2 instance
run: aws ec2 stop-instances --instance-ids ${{ env.INSTANCE_ID }}




12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
torch = "==2.1.0"

[dev-packages]

[requires]
python_version = "3.11"
169 changes: 169 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61a5f25

Please sign in to comment.