|
| 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