register sdpa operator with model config #662
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: Build and test Linux aarch64 wheels for Jetpack | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- nightly | |
- release/* | |
tags: | |
# NOTE: Binary build pipelines should only get triggered on release candidate builds | |
# Release candidate tags look like: v1.11.0-rc1 | |
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ | |
workflow_dispatch: | |
jobs: | |
generate-matrix: | |
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main | |
with: | |
package-type: wheel | |
os: linux-aarch64 | |
test-infra-repository: pytorch/test-infra | |
test-infra-ref: main | |
with-rocm: false | |
with-cpu: false | |
filter-matrix: | |
needs: [generate-matrix] | |
outputs: | |
matrix: ${{ steps.filter.outputs.matrix }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- uses: actions/checkout@v4 | |
with: | |
repository: pytorch/tensorrt | |
- name: Filter matrix | |
id: filter | |
env: | |
LIMIT_PR_BUILDS: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ciflow/binaries/all') }} | |
run: | | |
set -eou pipefail | |
echo "LIMIT_PR_BUILDS=${LIMIT_PR_BUILDS}" | |
echo '${{ github.event_name }}' | |
echo '${{ github.event.ref}}' | |
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }} | |
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}" --jetpack true --limit-pr-builds "${LIMIT_PR_BUILDS}")" | |
echo "${MATRIX_BLOB}" | |
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}" | |
build: | |
needs: filter-matrix | |
permissions: | |
id-token: write | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- repository: pytorch/tensorrt | |
pre-script: packaging/pre_build_script.sh | |
env-var-script: packaging/env_vars.txt | |
post-script: packaging/post_build_script.sh | |
smoke-test-script: packaging/smoke_test_script.sh | |
package-name: torch_tensorrt | |
name: Build torch-tensorrt whl package for jetpack | |
uses: ./.github/workflows/build_wheels_linux.yml | |
with: | |
repository: ${{ matrix.repository }} | |
ref: "" | |
test-infra-repository: pytorch/test-infra | |
test-infra-ref: main | |
build-matrix: ${{ needs.filter-matrix.outputs.matrix }} | |
pre-script: ${{ matrix.pre-script }} | |
env-var-script: ${{ matrix.env-var-script }} | |
post-script: ${{ matrix.post-script }} | |
package-name: ${{ matrix.package-name }} | |
smoke-test-script: ${{ matrix.smoke-test-script }} | |
trigger-event: ${{ github.event_name }} | |
architecture: "aarch64" | |
is-jetpack: true | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }} | |
cancel-in-progress: true |