Skip to content

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.ci/scripts/gather_benchmark_configs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"samsung_galaxy_s24": "arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/98f8788c-2e25-4a3c-8bb2-0d1e8897c0db",
2525
"google_pixel_8_pro": "arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/d65096ab-900b-4521-be8b-a3619b69236a",
2626
"google_pixel_3_private_rooted": "arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/98d23ca8-ea9e-4fb7-b725-d402017b198d",
27+
"apple_iphone_15_private": "arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/55929353-2f28-4ee5-bdff-d1a95f58cb28",
2728
}
2829

2930
# Predefined benchmark configurations
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: apple-perf (private devices)
2+
3+
on:
4+
# TODO (huydhn): Disable the schedule run until we land the change to add device pool and device name
5+
# to separate between public and private iOS devices
6+
# schedule:
7+
# - cron: 0 0,4,8,12,16,20 * * *
8+
pull_request:
9+
paths:
10+
- .github/workflows/apple-perf-private-device-experiment.yml
11+
# push:
12+
# branches:
13+
# - main
14+
# paths:
15+
# - .github/workflows/apple-perf-private-device-experiment.yml
16+
# Note: GitHub has an upper limit of 10 inputs
17+
workflow_dispatch:
18+
inputs:
19+
models:
20+
description: Models to be benchmarked
21+
required: false
22+
type: string
23+
default: mv3,meta-llama/Llama-3.2-1B-Instruct-SpinQuant_INT4_EO8,meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8
24+
devices:
25+
description: Target devices to run benchmark
26+
required: false
27+
type: string
28+
default: apple_iphone_15_private
29+
benchmark_configs:
30+
description: The list of configs used the benchmark
31+
required: false
32+
type: string
33+
workflow_call:
34+
inputs:
35+
models:
36+
description: Models to be benchmarked
37+
required: false
38+
type: string
39+
default: mv3,meta-llama/Llama-3.2-1B-Instruct-SpinQuant_INT4_EO8,meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8
40+
devices:
41+
description: Target devices to run benchmark
42+
required: false
43+
type: string
44+
default: apple_iphone_15_private
45+
benchmark_configs:
46+
description: The list of configs used the benchmark
47+
required: false
48+
type: string
49+
50+
concurrency:
51+
group: apple-perf-private-devices-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
52+
cancel-in-progress: true
53+
54+
jobs:
55+
apple:
56+
uses: ./.github/workflows/apple-perf.yml
57+
secrets: inherit
58+
permissions:
59+
id-token: write
60+
contents: read
61+
with:
62+
models: ${{ inputs.models || 'mv3,meta-llama/Llama-3.2-1B-Instruct-SpinQuant_INT4_EO8,meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8' }}
63+
devices: apple_iphone_15_private
64+
benchmark_configs: ${{ inputs.benchmark_configs }}

0 commit comments

Comments
 (0)