|
| 1 | +name: apple-perf (private devices) |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: 0 0,4,8,12,16,20 * * * |
| 6 | + pull_request: |
| 7 | + paths: |
| 8 | + - .github/workflows/apple-perf-private-device-experiment.yml |
| 9 | + push: |
| 10 | + branches: |
| 11 | + - main |
| 12 | + paths: |
| 13 | + - .github/workflows/apple-perf-private-device-experiment.yml |
| 14 | + # Note: GitHub has an upper limit of 10 inputs |
| 15 | + workflow_dispatch: |
| 16 | + inputs: |
| 17 | + models: |
| 18 | + description: Models to be benchmarked |
| 19 | + required: false |
| 20 | + type: string |
| 21 | + default: mv3,meta-llama/Llama-3.2-1B-Instruct-SpinQuant_INT4_EO8,meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8 |
| 22 | + devices: |
| 23 | + description: Target devices to run benchmark |
| 24 | + required: false |
| 25 | + type: string |
| 26 | + default: apple_iphone_15_private |
| 27 | + benchmark_configs: |
| 28 | + description: The list of configs used the benchmark |
| 29 | + required: false |
| 30 | + type: string |
| 31 | + workflow_call: |
| 32 | + inputs: |
| 33 | + models: |
| 34 | + description: Models to be benchmarked |
| 35 | + required: false |
| 36 | + type: string |
| 37 | + default: mv3,meta-llama/Llama-3.2-1B-Instruct-SpinQuant_INT4_EO8,meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8 |
| 38 | + devices: |
| 39 | + description: Target devices to run benchmark |
| 40 | + required: false |
| 41 | + type: string |
| 42 | + default: apple_iphone_15_private |
| 43 | + benchmark_configs: |
| 44 | + description: The list of configs used the benchmark |
| 45 | + required: false |
| 46 | + type: string |
| 47 | + |
| 48 | +concurrency: |
| 49 | + 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' }} |
| 50 | + cancel-in-progress: true |
| 51 | + |
| 52 | +jobs: |
| 53 | + apple: |
| 54 | + uses: ./.github/workflows/apple-perf.yml |
| 55 | + secrets: inherit |
| 56 | + permissions: |
| 57 | + id-token: write |
| 58 | + contents: read |
| 59 | + with: |
| 60 | + models: ${{ inputs.models || 'mv3,meta-llama/Llama-3.2-1B-Instruct-SpinQuant_INT4_EO8,meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8' }} |
| 61 | + devices: apple_iphone_15_private |
| 62 | + benchmark_configs: ${{ inputs.benchmark_configs }} |
0 commit comments