E2E performance #132
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E performance | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
install_ipex: | ||
description: Install Intel PyTorch Extension | ||
type: boolean | ||
default: true | ||
suite: | ||
description: Test suite | ||
type: choice | ||
options: | ||
- all | ||
- huggingface | ||
- timm_models | ||
- torchbench | ||
default: all | ||
mode: | ||
description: Inference/Training | ||
type: choice | ||
options: | ||
- all | ||
- inference | ||
- training | ||
default: all | ||
dtype: | ||
description: Data type | ||
type: choice | ||
options: | ||
- all | ||
- amp_bf16 | ||
- amp_fp16 | ||
- bfloat16 | ||
- float16 | ||
- float32 | ||
default: all | ||
models: | ||
description: Run all models or a subset | ||
type: choice | ||
options: | ||
- all | ||
- subset | ||
default: subset | ||
only_one_model: | ||
description: Run only this one model | ||
type: string | ||
default: "" | ||
runner_label: | ||
description: Runner label, keep empty for default | ||
type: string | ||
default: "" | ||
TORCH_COMPILE_DEBUG: | ||
description: TORCH_COMPILE_DEBUG | ||
type: string | ||
default: "" | ||
permissions: read-all | ||
env: | ||
TRITON_DISABLE_LINE_INFO: 1 | ||
USE_AOT_DEVLIST: pvc | ||
PYTHON_VERSION: "3.10" | ||
BENCHMARK_REPO: weishi-deng/benchmark.git | ||
BENCHMARK_BRANCH: main | ||
INSTALL_IPEX: ${{ inputs.install_ipex }} | ||
TORCH_XPU_OPS_COMMIT: 39522db63ce045f52c9d61a286018c266cd00479 | ||
jobs: | ||
setup: | ||
name: Setup | ||
runs-on: | ||
- glados | ||
- spr | ||
- cpu | ||
outputs: | ||
suite: ${{ steps.set-matrix.outputs.suite }} | ||
mode: ${{ steps.set-matrix.outputs.mode }} | ||
dtype: ${{ steps.set-matrix.outputs.dtype }} | ||
models: ${{ steps.set-matrix.outputs.models }} | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Set matrix | ||
id: set-matrix | ||
run: | | ||
if [[ -z "${{ inputs.suite }}" || "${{ inputs.suite }}" == "all" ]]; then | ||
suite='["huggingface", "timm_models", "torchbench"]' | ||
else | ||
suite='["${{ inputs.suite }}"]' | ||
fi | ||
if [[ -z "${{ inputs.mode }}" || "${{ inputs.mode }}" == "all" ]]; then | ||
mode='["inference", "training"]' | ||
else | ||
mode='["${{ inputs.mode }}"]' | ||
fi | ||
if [[ -z "${{ inputs.dtype }}" || "${{ inputs.dtype }}" == "all" ]]; then | ||
dtype='["amp_bf16", "amp_fp16", "bfloat16", "float16", "float32"]' | ||
else | ||
dtype='["${{ inputs.dtype }}"]' | ||
fi | ||
if [[ -z "${{ inputs.models }}" ]]; then | ||
models="subset" | ||
else | ||
models="${{ inputs.models }}" | ||
fi | ||
echo "suite=$suite" >> $GITHUB_OUTPUT | ||
echo "mode=$mode" >> $GITHUB_OUTPUT | ||
echo "dtype=$dtype" >> $GITHUB_OUTPUT | ||
echo "models=$models" >> $GITHUB_OUTPUT | ||
print_inputs: | ||
name: Print inputs | ||
needs: setup | ||
runs-on: Linux | ||
steps: | ||
- name: Print inputs | ||
run: | | ||
echo "${{ toJSON(github.event.inputs) }}" | ||
- name: Print setup outputs | ||
run: | | ||
echo "${{ toJSON(needs.setup.outputs) }}" | ||
run_tests: | ||
name: Run test matrix | ||
needs: setup | ||
strategy: | ||
matrix: | ||
suite: ${{ fromJson(needs.setup.outputs.suite) }} | ||
mode: ${{ fromJson(needs.setup.outputs.mode) }} | ||
dtype: ${{ fromJson(needs.setup.outputs.dtype) }} | ||
fail-fast: false | ||
uses: ./.github/workflows/e2e-reusable.yml | ||
Check failure on line 133 in .github/workflows/e2e-performance.yml GitHub Actions / .github/workflows/e2e-performance.ymlInvalid workflow file
|
||
with: | ||
install_ipex: ${{ inputs.install_ipex }} | ||
suite: ${{ matrix.suite }} | ||
mode: ${{ matrix.mode }} | ||
test_mode: performance | ||
dtype: ${{ matrix.dtype }} | ||
models: ${{ inputs.models }} | ||
only_one_model: ${{ inputs.only_one_model }} | ||
runner_label: ${{ inputs.runner_label }} | ||
TORCH_COMPILE_DEBUG: ${{ inputs.TORCH_COMPILE_DEBUG }} |