Skip to content

Commit 4857630

Browse files
committed
Pass in runner
1 parent e72be0e commit 4857630

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/benchmark_v2.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ name: Benchmark v2 Framework
33
on:
44
workflow_call:
55
inputs:
6+
runner_group:
7+
description: 'GH Actions runner group to use'
8+
required: false
9+
type: string
10+
runner_labels:
11+
description: 'GH Actions runner label to use'
12+
required: false
13+
type: string
614
model_id:
715
description: 'Model ID to benchmark (e.g., meta-llama/Llama-2-7b-hf)'
816
required: false
@@ -54,12 +62,9 @@ env:
5462
jobs:
5563
benchmark-v2:
5664
name: Benchmark v2
57-
strategy:
58-
matrix:
59-
# Use GPU-enabled runners for accurate benchmarking
60-
group: [aws-g5-4xlarge-cache]
6165
runs-on:
62-
group: ${{ matrix.group }}
66+
group: ${{ inputs.runner_group }}
67+
labels: ${{ inputs.runner_labels }}
6368
container:
6469
image: huggingface/transformers-pytorch-gpu
6570
options: --gpus all --privileged --ipc host --shm-size "16gb"

.github/workflows/benchmark_v2_caller.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
model_id:
1313
description: 'Model ID to benchmark (leave empty for default models)'
1414
required: false
15-
type: string
1615
default: ''
1716
warmup_iterations:
1817
description: 'Number of warmup iterations'
@@ -47,6 +46,7 @@ jobs:
4746
name: Benchmark v2 - Default Models
4847
uses: ./.github/workflows/benchmark_v2.yml
4948
with:
49+
runner_group: "aws-g5-4xlarge-cache"
5050
model_id: ${{ inputs.model_id || '' }}
5151
warmup_iterations: ${{ inputs.warmup_iterations || 3 }}
5252
measurement_iterations: ${{ inputs.measurement_iterations || 5 }}

0 commit comments

Comments
 (0)