File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ name: Benchmark v2 Framework
3
3
on :
4
4
workflow_call :
5
5
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
6
14
model_id :
7
15
description : ' Model ID to benchmark (e.g., meta-llama/Llama-2-7b-hf)'
8
16
required : false
54
62
jobs :
55
63
benchmark-v2 :
56
64
name : Benchmark v2
57
- strategy :
58
- matrix :
59
- # Use GPU-enabled runners for accurate benchmarking
60
- group : [aws-g5-4xlarge-cache]
61
65
runs-on :
62
- group : ${{ matrix.group }}
66
+ group : ${{ inputs.runner_group }}
67
+ labels : ${{ inputs.runner_labels }}
63
68
container :
64
69
image : huggingface/transformers-pytorch-gpu
65
70
options : --gpus all --privileged --ipc host --shm-size "16gb"
Original file line number Diff line number Diff line change 12
12
model_id :
13
13
description : ' Model ID to benchmark (leave empty for default models)'
14
14
required : false
15
- type : string
16
15
default : ' '
17
16
warmup_iterations :
18
17
description : ' Number of warmup iterations'
47
46
name : Benchmark v2 - Default Models
48
47
uses : ./.github/workflows/benchmark_v2.yml
49
48
with :
49
+ runner_group : " aws-g5-4xlarge-cache"
50
50
model_id : ${{ inputs.model_id || '' }}
51
51
warmup_iterations : ${{ inputs.warmup_iterations || 3 }}
52
52
measurement_iterations : ${{ inputs.measurement_iterations || 5 }}
You can’t perform that action at this time.
0 commit comments