attention_op_microbenchmark #172
This file contains hidden or 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: attention_op_microbenchmark | |
| on: | |
| push: | |
| tags: | |
| - ciflow/op-benchmark/* | |
| workflow_dispatch: | |
| schedule: | |
| # Run at 06:00 UTC everyday | |
| - cron: 0 7 * * * | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} | |
| cancel-in-progress: true | |
| permissions: | |
| id-token: write | |
| contents: read | |
| actions: read | |
| jobs: | |
| get-label-type: | |
| name: get-label-type | |
| uses: pytorch/pytorch/.github/workflows/_runner-determinator.yml@main | |
| if: ${{ (github.event_name != 'schedule' || github.repository == 'pytorch/pytorch') && github.repository_owner == 'pytorch' }} | |
| with: | |
| triggering_actor: ${{ github.triggering_actor }} | |
| issue_owner: ${{ github.event.pull_request.user.login || github.event.issue.user.login }} | |
| curr_branch: ${{ github.head_ref || github.ref_name }} | |
| curr_ref_type: ${{ github.ref_type }} | |
| check_experiments: arc,lf | |
| attn-microbenchmark-build: | |
| if: github.repository_owner == 'pytorch' | |
| uses: ./.github/workflows/_linux-build.yml | |
| with: | |
| runner: linux.12xlarge.memory | |
| build-environment: linux-jammy-cuda13.0-py3.10-gcc11-sm80 | |
| docker-image-name: ci-image:pytorch-linux-jammy-cuda13.0-cudnn9-py3-gcc11 | |
| cuda-arch-list: '8.0 9.0' | |
| test-matrix: | | |
| { include: [ | |
| { config: "attention_microbenchmark_test", shard: 1, num_shards: 1, runner: "linux.aws.a100" }, | |
| { config: "attention_microbenchmark_test", shard: 1, num_shards: 1, runner: "linux.aws.h100" }, | |
| ]} | |
| secrets: inherit | |
| attn-microbenchmark-test: | |
| name: attn-microbenchmark-test | |
| uses: ./.github/workflows/_linux-test.yml | |
| needs: attn-microbenchmark-build | |
| with: | |
| timeout-minutes: 500 | |
| build-environment: ${{ needs.attn-microbenchmark-build.outputs.build-environment }} | |
| docker-image: ${{ needs.attn-microbenchmark-build.outputs.docker-image }} | |
| test-matrix: ${{ needs.attn-microbenchmark-build.outputs.test-matrix }} | |
| secrets: inherit | |
| # B200 runner (OSDC), always use OSDC runner to test this workflow | |
| opmicrobenchmark-build-b200: | |
| if: github.repository_owner == 'pytorch' | |
| name: opmicrobenchmark-build-b200 | |
| uses: ./.github/workflows/_linux-build.yml | |
| needs: get-label-type | |
| with: | |
| runner_prefix: "mt-" | |
| runner: linux.r7i.4xlarge | |
| build-environment: linux-jammy-cuda13.0-py3.10-gcc11-sm100 | |
| docker-image-name: ci-image:pytorch-linux-jammy-cuda13.0-cudnn9-py3-gcc11 | |
| cuda-arch-list: '10.0' | |
| test-matrix: | | |
| { include: [ | |
| { config: "operator_microbenchmark_test", shard: 1, num_shards: 1, runner: "linux.dgx.b200" }, | |
| ]} | |
| use-arc: true | |
| python-version: "3.10" | |
| compiler: gcc11 | |
| cuda-version: "13.0" | |
| secrets: inherit | |
| opmicrobenchmark-test-b200: | |
| name: opmicrobenchmark-test-b200 | |
| uses: ./.github/workflows/_linux-test.yml | |
| needs: | |
| - opmicrobenchmark-build-b200 | |
| - get-label-type | |
| with: | |
| timeout-minutes: 500 | |
| build-environment: ${{ needs.opmicrobenchmark-build-b200.outputs.build-environment }} | |
| docker-image: ${{ needs.opmicrobenchmark-build-b200.outputs.docker-image }} | |
| test-matrix: ${{ needs.opmicrobenchmark-build-b200.outputs.test-matrix }} | |
| use-arc: true | |
| python-version: "3.10" | |
| compiler: gcc11 | |
| cuda-version: "13.0" | |
| secrets: inherit |