From 810da9426256439bef6f3ab486e674f0575c88c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 11 Nov 2026 12:09:58 +0100 Subject: [PATCH] Support custom targets in bench workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- .github/workflows/bench.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index c6438f2..03a50f7 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -9,8 +9,11 @@ on: required: false default: '' type: string + target: + required: false + default: '' + type: string skip_push: - description: 'Skip pushing benchmark results to the bucket' required: false default: false type: boolean @@ -22,6 +25,7 @@ permissions: jobs: bench: + if: ${{ !inputs.target }} name: ${{ matrix.backend.id }}:${{ matrix.target }} runs-on: ${{ matrix.backend.runner }} container: @@ -29,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - backend: + backend: &backend - id: gfx1151 runner: [self-hosted, Linux, devlab-dispatch, strix-halo] container: '' @@ -143,7 +147,7 @@ jobs: - unsloth/gpt-oss-20b-GGUF:Q5_K_S - unsloth/gpt-oss-20b-GGUF:Q6_K - unsloth/gpt-oss-20b-GGUF:Q8_0 - steps: + steps: &steps - uses: actions/checkout@v5 - name: Install @@ -196,3 +200,16 @@ jobs: VERSION=b$N python3 -m pip install -U --break-system-packages huggingface_hub python3 scripts/upload.py "$REPO/$VERSION" + + custom: + if: ${{ inputs.target != '' }} + name: ${{ matrix.backend.id }}:${{ matrix.target }} + runs-on: ${{ matrix.backend.runner }} + container: + image: ${{ matrix.backend.container }} + strategy: + matrix: + backend: *backend + target: + - ${{ inputs.target }} + steps: *steps