Skip to content

Commit 6cc4a67

Browse files
authored
feat: run benchmarks on A100 (#34287)
1 parent d21dbd1 commit 6cc4a67

File tree

3 files changed

+885
-721
lines changed

3 files changed

+885
-721
lines changed

.github/workflows/benchmark.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ env:
1616
jobs:
1717
benchmark:
1818
name: Benchmark
19+
strategy:
20+
matrix:
21+
group: [aws-g5-4xlarge-cache, aws-p4d-24xlarge-plus]
1922
runs-on:
20-
group: aws-g5-4xlarge-cache
23+
group: ${{ matrix.group }}
2124
if: |
2225
(github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'run-benchmark') )||
2326
(github.event_name == 'push' && github.ref == 'refs/heads/main')
@@ -60,9 +63,13 @@ jobs:
6063
commit_id=$GITHUB_SHA
6164
fi
6265
commit_msg=$(git show -s --format=%s | cut -c1-70)
66+
df -h
6367
python3 benchmark/llama.py "${{ github.head_ref || github.ref_name }}" "$commit_id" "$commit_msg"
6468
env:
6569
HF_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
70+
# Enable this to see debug logs
71+
# HF_HUB_VERBOSITY: debug
72+
# TRANSFORMERS_VERBOSITY: debug
6673
PGHOST: ${{ secrets.TRANSFORMERS_BENCHMARKS_PGHOST }}
6774
PGUSER: transformers_benchmarks
6875
PGPASSWORD: ${{ secrets.TRANSFORMERS_BENCHMARKS_PGPASSWORD }}

0 commit comments

Comments
 (0)