diff --git a/.ci/scripts/test_model_e2e.sh b/.ci/scripts/test_model_e2e.sh index e1ba976b0cc..6ff3d633e55 100755 --- a/.ci/scripts/test_model_e2e.sh +++ b/.ci/scripts/test_model_e2e.sh @@ -284,7 +284,7 @@ elif [[ "$MODEL_NAME" == *whisper* ]] || [ "$MODEL_NAME" = "voxtral_realtime" ]; fi fi pip install datasets soundfile - pip install torchcodec==0.11.0 --extra-index-url https://download.pytorch.org/whl/test/cpu + pip install torchcodec==0.13.0 --index-url https://download.pytorch.org/whl/cpu python -c "from datasets import load_dataset;import soundfile as sf;sample = load_dataset('distil-whisper/librispeech_long', 'clean', split='validation')[0]['audio'];sf.write('${MODEL_DIR}/$AUDIO_FILE', sample['array'][:sample['sampling_rate']*30], sample['sampling_rate'])" fi diff --git a/.ci/scripts/test_wheel_package_qnn.sh b/.ci/scripts/test_wheel_package_qnn.sh index 763bd8733c1..72e7123da07 100644 --- a/.ci/scripts/test_wheel_package_qnn.sh +++ b/.ci/scripts/test_wheel_package_qnn.sh @@ -167,8 +167,8 @@ PY # ) echo "=== [$LABEL] Install torch==${TORCH_VERSION} ===" - # Install torch based on the pinned PyTorch version, preferring the PyTorch test index - "$PIPBIN" install torch=="${TORCH_VERSION}" --extra-index-url "https://download.pytorch.org/whl/test" + # Install torch based on the pinned PyTorch version. + "$PIPBIN" install --no-cache-dir torch=="${TORCH_VERSION}" --index-url "https://download.pytorch.org/whl/cpu" "$PIPBIN" install wheel # Install torchao based on the pinned commit from third-party/ao submodule diff --git a/.github/workflows/_android.yml b/.github/workflows/_android.yml index 6f152607d7c..5dbbe9b8285 100644 --- a/.github/workflows/_android.yml +++ b/.github/workflows/_android.yml @@ -70,7 +70,7 @@ jobs: API_LEVEL: 34 steps: - name: Setup SSH (Click me for login details) - uses: pytorch/test-infra/.github/actions/setup-ssh@main + uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.12 with: github-secret: ${{ secrets.GITHUB_TOKEN }} instructions: | diff --git a/.github/workflows/_link_check.yml b/.github/workflows/_link_check.yml index 2d55ff62ea1..d500c7f0806 100644 --- a/.github/workflows/_link_check.yml +++ b/.github/workflows/_link_check.yml @@ -15,14 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ inputs.ref }} - - name: Fetch base ref - run: | - if [ "${{ github.event_name }}" = "pull_request" ]; then - git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.base.sha }}" - else - git fetch --no-tags --depth=1 origin "${{ github.event.before }}" - fi - name: Lint URLs run: | ./scripts/lint_urls.sh $( @@ -48,14 +42,8 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ inputs.ref }} - - name: Fetch base ref - run: | - if [ "${{ github.event_name }}" = "pull_request" ]; then - git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.base.sha }}" - else - git fetch --no-tags --depth=1 origin "${{ github.event.before }}" - fi - name: Lint cross-references run: | ./scripts/lint_xrefs.sh $( @@ -81,14 +69,8 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ inputs.ref }} - - name: Fetch base ref - run: | - if [ "${{ github.event_name }}" = "pull_request" ]; then - git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.base.sha }}" - else - git fetch --no-tags --depth=1 origin "${{ github.event.before }}" - fi - name: Lint file sizes run: | chmod +x ./scripts/lint_file_size.sh diff --git a/.github/workflows/_test_backend.yml b/.github/workflows/_test_backend.yml index 6323c007f4a..1cd4cd30a00 100644 --- a/.github/workflows/_test_backend.yml +++ b/.github/workflows/_test_backend.yml @@ -51,7 +51,7 @@ jobs: flow: ${{ fromJSON(inputs.flows) }} suite: [models, operators] - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 with: ref: ${{ inputs.ref }} runner: ${{ inputs.runner-linux }} @@ -127,7 +127,7 @@ jobs: flow: ${{ fromJSON(inputs.flows) }} suite: [models, operators] - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" ref: ${{ inputs.ref }} diff --git a/.github/workflows/_test_cadence.yml b/.github/workflows/_test_cadence.yml index 2e98d21db1c..6873bf04c3d 100644 --- a/.github/workflows/_test_cadence.yml +++ b/.github/workflows/_test_cadence.yml @@ -30,7 +30,7 @@ on: jobs: test-aot: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 with: job-name: test-aot runner: ${{ inputs.runner }} @@ -50,7 +50,7 @@ jobs: python -m pytest backends/cadence/aot/tests/ -v -n auto --reruns 2 --reruns-delay 1 test-ops: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 with: job-name: test-ops runner: ${{ inputs.runner }} diff --git a/.github/workflows/_test_cortex_m_e2e.yml b/.github/workflows/_test_cortex_m_e2e.yml index 6b0398ca998..829a3ad0b02 100644 --- a/.github/workflows/_test_cortex_m_e2e.yml +++ b/.github/workflows/_test_cortex_m_e2e.yml @@ -19,7 +19,7 @@ on: jobs: run: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 strategy: matrix: model: ${{ fromJSON(inputs.models) }} diff --git a/.github/workflows/_test_riscv.yml b/.github/workflows/_test_riscv.yml index da19dfc9bda..392f802c07c 100644 --- a/.github/workflows/_test_riscv.yml +++ b/.github/workflows/_test_riscv.yml @@ -38,7 +38,7 @@ on: jobs: run: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 with: runner: linux.2xlarge docker-image: ${{ inputs.docker-image || 'ci-image:executorch-ubuntu-22.04-gcc11' }} diff --git a/.github/workflows/_unittest.yml b/.github/workflows/_unittest.yml index 15c87bd79e4..7aef9c709ce 100644 --- a/.github/workflows/_unittest.yml +++ b/.github/workflows/_unittest.yml @@ -27,7 +27,7 @@ on: jobs: linux: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -42,7 +42,7 @@ jobs: .ci/scripts/unittest-linux.sh --build-tool "${{ inputs.build-tool }}" --build-mode "${{ inputs.build-mode }}" --editable "${{ inputs.editable }}" macos: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-m1-stable @@ -57,7 +57,7 @@ jobs: windows: if: ${{ inputs.build-tool == 'cmake' }} - uses: pytorch/test-infra/.github/workflows/windows_job.yml@main + uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.12 with: ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} timeout: 120 diff --git a/.github/workflows/android-release-artifacts.yml b/.github/workflows/android-release-artifacts.yml index 0cf179109ed..df300300952 100644 --- a/.github/workflows/android-release-artifacts.yml +++ b/.github/workflows/android-release-artifacts.yml @@ -73,7 +73,7 @@ jobs: name: build-aar needs: check-if-aar-exists if: ${{ !github.event.pull_request.head.repo.fork && needs.check-if-aar-exists.outputs.should-skip != 'true' }} - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 secrets: inherit permissions: id-token: write diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml index 3c2692e2de7..0927ed5c007 100644 --- a/.github/workflows/apple.yml +++ b/.github/workflows/apple.yml @@ -85,7 +85,7 @@ jobs: name: build-demo-ios # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway if: ${{ !github.event.pull_request.head.repo.fork }} - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit with: default-packages: "" @@ -156,7 +156,7 @@ jobs: permissions: id-token: write contents: read - uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main + uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.12 with: device-type: ios # For iOS testing, the runner just needs to call AWS Device Farm, so there is no need to run this on macOS @@ -175,7 +175,7 @@ jobs: build-frameworks-ios: name: build-frameworks-ios needs: set-version - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-14-xlarge @@ -315,7 +315,7 @@ jobs: name: build-benchmark-app # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway if: ${{ !github.event.pull_request.head.repo.fork }} - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit with: default-packages: "" diff --git a/.github/workflows/build-cadence-runner.yml b/.github/workflows/build-cadence-runner.yml index 6f99958616f..5a17215fa07 100644 --- a/.github/workflows/build-cadence-runner.yml +++ b/.github/workflows/build-cadence-runner.yml @@ -18,7 +18,7 @@ concurrency: jobs: cpu-build: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read diff --git a/.github/workflows/build-presets.yml b/.github/workflows/build-presets.yml index 37854aed174..1220634f0fd 100644 --- a/.github/workflows/build-presets.yml +++ b/.github/workflows/build-presets.yml @@ -14,7 +14,7 @@ concurrency: jobs: apple: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: fail-fast: false matrix: @@ -34,7 +34,7 @@ jobs: ${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 )) zephyr: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 strategy: fail-fast: false matrix: @@ -73,7 +73,7 @@ jobs: cmake --preset ${{ matrix.preset }} cmake --build cmake-out -j$(( $(nproc) - 1 )) linux: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 strategy: fail-fast: false matrix: @@ -106,7 +106,7 @@ jobs: cmake --build cmake-out -j$(( $(nproc) - 1 )) windows: - uses: pytorch/test-infra/.github/workflows/windows_job.yml@main + uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.12 strategy: fail-fast: false matrix: diff --git a/.github/workflows/build-wheels-aarch64-linux.yml b/.github/workflows/build-wheels-aarch64-linux.yml index b5eb14f076a..d3159752e97 100644 --- a/.github/workflows/build-wheels-aarch64-linux.yml +++ b/.github/workflows/build-wheels-aarch64-linux.yml @@ -22,12 +22,12 @@ on: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.12 with: package-type: wheel os: linux-aarch64 test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 with-cuda: disabled with-rocm: disabled python-versions: '["3.10", "3.11", "3.12", "3.13"]' @@ -47,12 +47,12 @@ jobs: smoke-test-script: .ci/scripts/wheel/test_linux_aarch64.py package-name: executorch name: ${{ matrix.repository }} - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.12 with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} submodules: recursive env-var-script: .ci/scripts/wheel/envvar_linux.sh diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml index a4c737e3ce3..51774a78ae3 100644 --- a/.github/workflows/build-wheels-linux.yml +++ b/.github/workflows/build-wheels-linux.yml @@ -22,12 +22,12 @@ on: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.12 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 with-cuda: disabled with-rocm: disabled python-versions: '["3.10", "3.11", "3.12", "3.13"]' @@ -47,12 +47,12 @@ jobs: smoke-test-script: .ci/scripts/wheel/test_linux.py package-name: executorch name: ${{ matrix.repository }} - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.12 with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} submodules: recursive env-var-script: .ci/scripts/wheel/envvar_linux.sh diff --git a/.github/workflows/build-wheels-macos.yml b/.github/workflows/build-wheels-macos.yml index 06603ed42e3..71474f345d7 100644 --- a/.github/workflows/build-wheels-macos.yml +++ b/.github/workflows/build-wheels-macos.yml @@ -22,12 +22,12 @@ on: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.12 with: package-type: wheel os: macos-arm64 test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 with-cuda: disabled with-rocm: disabled python-versions: '["3.10", "3.11", "3.12", "3.13"]' @@ -47,12 +47,12 @@ jobs: smoke-test-script: .ci/scripts/wheel/test_macos.py package-name: executorch name: ${{ matrix.repository }} - uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.12 with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} submodules: recursive delocate-wheel: false diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 6d986c82592..1aaff8e4a34 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -25,12 +25,12 @@ permissions: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.12 with: package-type: wheel os: windows test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 with-cuda: disabled with-rocm: disabled python-versions: '["3.10", "3.11", "3.12", "3.13"]' @@ -48,12 +48,12 @@ jobs: smoke-test-script: .ci/scripts/wheel/test_windows.py package-name: executorch name: ${{ matrix.repository }} - uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.12 with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.12 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml index ae241c8e754..f75307492ca 100644 --- a/.github/workflows/claude-code.yml +++ b/.github/workflows/claude-code.yml @@ -8,7 +8,7 @@ on: jobs: claude-code: - uses: pytorch/test-infra/.github/workflows/_claude-code.yml@main + uses: pytorch/test-infra/.github/workflows/_claude-code.yml@release/2.12 with: setup_script: | pip install lintrunner==0.12.7 lintrunner-adapters==0.14.0 diff --git a/.github/workflows/cuda-perf.yml b/.github/workflows/cuda-perf.yml index ada2fb9e696..e154ff3ab3a 100644 --- a/.github/workflows/cuda-perf.yml +++ b/.github/workflows/cuda-perf.yml @@ -97,7 +97,7 @@ jobs: export-models: name: export-models needs: set-parameters - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -148,7 +148,7 @@ jobs: - set-parameters - export-models if: always() - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -414,7 +414,7 @@ jobs: echo "::endgroup::" - name: Upload benchmark results to dashboard - uses: pytorch/test-infra/.github/actions/upload-benchmark-results@main + uses: pytorch/test-infra/.github/actions/upload-benchmark-results@release/2.12 with: benchmark-results-dir: benchmark-results/v3 dry-run: false diff --git a/.github/workflows/cuda-windows.yml b/.github/workflows/cuda-windows.yml index aae27121bd0..98a88df85e2 100644 --- a/.github/workflows/cuda-windows.yml +++ b/.github/workflows/cuda-windows.yml @@ -27,7 +27,7 @@ jobs: name: export-model-cuda-windows-artifact # Skip this job if the pull request is from a fork (HuggingFace secrets are not available) if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -115,7 +115,7 @@ jobs: test-model-cuda-windows-e2e: name: test-model-cuda-windows-e2e needs: export-model-cuda-windows-artifact - uses: pytorch/test-infra/.github/workflows/windows_job.yml@main + uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.12 strategy: fail-fast: false matrix: diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index f19b937994f..1c43ca163b3 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -34,7 +34,7 @@ jobs: cuda-version: ["12.6", "13.0"] name: test-executorch-cuda-build-${{ matrix.cuda-version }} - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -71,7 +71,7 @@ jobs: test-models-cuda: name: test-models-cuda - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -106,7 +106,7 @@ jobs: unittest-cuda: name: unittest-cuda - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -156,7 +156,7 @@ jobs: name: export-model-cuda-artifact # Skip this job if the pull request is from a fork (HuggingFace secrets are not available) if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -301,7 +301,7 @@ jobs: test-model-cuda-e2e: name: test-model-cuda-e2e needs: export-model-cuda-artifact - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -419,7 +419,7 @@ jobs: name: test-cuda-pybind needs: export-model-cuda-artifact # This job downloads models exported by export-model-cuda-artifact and runs them using pybind. - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index e27efcd1f08..aac5a8baa99 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -19,7 +19,7 @@ concurrency: jobs: build: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -98,7 +98,7 @@ jobs: permissions: id-token: write contents: write - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 secrets: inherit with: secrets-env: DOC_BUILD_GITHUB_TOKEN diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index b77e5497f79..c9805b5e480 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -66,7 +66,7 @@ jobs: mkdir "${GITHUB_WORKSPACE}" - name: Setup SSH (Click me for login details) - uses: pytorch/test-infra/.github/actions/setup-ssh@main + uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.12 with: github-secret: ${{ secrets.GITHUB_TOKEN }} @@ -74,12 +74,12 @@ jobs: uses: actions/checkout@v3 - name: Setup Linux - uses: pytorch/test-infra/.github/actions/setup-linux@main + uses: pytorch/test-infra/.github/actions/setup-linux@release/2.12 - name: Build docker image id: build-docker-image timeout-minutes: 145 - uses: pytorch/test-infra/.github/actions/calculate-docker-image@main + uses: pytorch/test-infra/.github/actions/calculate-docker-image@release/2.12 with: docker-image-name: ci-image:${{ matrix.docker-image-name }} always-rebuild: true @@ -87,5 +87,5 @@ jobs: force-push: true - name: Teardown Linux - uses: pytorch/test-infra/.github/actions/teardown-linux@main + uses: pytorch/test-infra/.github/actions/teardown-linux@release/2.12 if: always() diff --git a/.github/workflows/metal.yml b/.github/workflows/metal.yml index 7230f6660e6..f0dafe0a87a 100644 --- a/.github/workflows/metal.yml +++ b/.github/workflows/metal.yml @@ -23,7 +23,7 @@ concurrency: jobs: test-metal-builds: name: test-executorch-metal-build - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-m2-stable @@ -40,7 +40,7 @@ jobs: test-metal-modules: name: test-metal-backend-modules - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-m2-stable @@ -65,7 +65,7 @@ jobs: test-metal-qwen35-moe-tiny: name: test-metal-qwen35-moe-tiny - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-m2-stable @@ -164,7 +164,7 @@ jobs: name: export-model-metal-artifact # Skip this job if the pull request is from a fork (HuggingFace secrets are not available) if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit strategy: fail-fast: false @@ -235,7 +235,7 @@ jobs: test-model-metal-e2e: name: test-model-metal-e2e needs: export-model-metal-artifact - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: fail-fast: false matrix: diff --git a/.github/workflows/mlx.yml b/.github/workflows/mlx.yml index c4be146f862..64e94d1c1fb 100644 --- a/.github/workflows/mlx.yml +++ b/.github/workflows/mlx.yml @@ -26,7 +26,7 @@ permissions: {} jobs: test-mlx: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" job-name: test-mlx @@ -77,7 +77,7 @@ jobs: echo "::endgroup::" test-mlx-qwen35-moe: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" job-name: test-mlx-qwen35-moe @@ -133,7 +133,7 @@ jobs: fail-fast: false matrix: suite: [models, operators] - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" job-name: test-mlx-backend-${{ matrix.suite }} @@ -175,7 +175,7 @@ jobs: fi test-mlx-parakeet: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" job-name: test-mlx-parakeet @@ -233,7 +233,7 @@ jobs: # Maintainers can opt-in by applying the ciflow/mlx label, which # pushes a ciflow/mlx/ tag that re-runs this workflow with secrets. if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit with: default-packages: "" @@ -294,7 +294,7 @@ jobs: # Requires HuggingFace secrets — skip on fork PRs. # Maintainers can opt-in by applying the ciflow/mlx label. if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit with: default-packages: "" @@ -372,7 +372,7 @@ jobs: # Requires HuggingFace secrets — skip on fork PRs. # Maintainers can opt-in by applying the ciflow/mlx label. if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit with: default-packages: "" @@ -423,7 +423,7 @@ jobs: test-mlx-stories110m: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" job-name: test-mlx-stories110m @@ -516,7 +516,7 @@ jobs: use-custom: false qconfig: "4w" runner: "macos-15-xlarge" - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 secrets: inherit with: default-packages: "" diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 30cbb487aa7..e97202fd526 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -21,13 +21,13 @@ jobs: environment: ${{ (github.event_name == 'schedule') && 'update-commit-hash' || '' }} steps: - name: update-pytorch-commit-hash - uses: pytorch/test-infra/.github/actions/update-commit-hash@main + uses: pytorch/test-infra/.github/actions/update-commit-hash@release/2.12 if: ${{ github.event_name == 'schedule' }} with: repo-name: pytorch branch: main pin-folder: .ci/docker/ci_commit_pins - test-infra-ref: main + test-infra-ref: release/2.12 updatebot-token: ${{ secrets.UPDATEBOT_TOKEN }} pytorchbot-token: ${{ secrets.GH_PYTORCHBOT_TOKEN }} @@ -49,7 +49,7 @@ jobs: test-static-hf-llm-qnn-linux: name: test-static-hf-llm-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 01bff087124..3934ace210c 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -42,7 +42,7 @@ jobs: test-models-linux: name: test-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index c2787681d4e..2e2db5b8d6c 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -23,7 +23,7 @@ jobs: test-qnn-wheel-packages-linux: name: test-qnn-wheel-packages-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -50,7 +50,7 @@ jobs: test-setup-linux-gcc: name: test-setup-linux-gcc - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -75,7 +75,7 @@ jobs: test-models-linux-basic: name: test-models-linux-basic - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -119,7 +119,7 @@ jobs: test-models-linux: name: test-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -172,7 +172,7 @@ jobs: test-parakeet-xnnpack-linux: name: test-parakeet-xnnpack-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -205,7 +205,7 @@ jobs: test-voxtral-realtime-xnnpack-linux: name: test-voxtral-realtime-xnnpack-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -242,7 +242,7 @@ jobs: test-llama-runner-linux: # Test Both linux x86 and linux aarch64 name: test-llama-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -292,7 +292,7 @@ jobs: test-llama-runner-linux-android: name: test-llama-runner-linux-android - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -317,7 +317,7 @@ jobs: test-custom-ops-linux: name: test-custom-ops-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -341,7 +341,7 @@ jobs: test-selective-build-linux: name: test-selective-build-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -366,7 +366,7 @@ jobs: test-multimodal-linux: if: ${{ !github.event.pull_request.head.repo.fork }} name: test-multimodal-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -404,7 +404,7 @@ jobs: test-moshi-linux: name: test-moshi-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -436,7 +436,7 @@ jobs: test-quantized-aot-lib-linux: name: test-quantized-aot-lib-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -459,7 +459,7 @@ jobs: test-binary-size-linux-gcc: name: test-binary-size-linux-gcc - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -494,7 +494,7 @@ jobs: test-binary-size-linux: name: test-binary-size-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -530,7 +530,7 @@ jobs: test-arm-cortex-m-size-test: name: test-arm-cortex-m-size-test - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -615,7 +615,7 @@ jobs: test-mcu-cortex-m-backend: name: test-mcu-cortex-m-backend - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -682,7 +682,7 @@ jobs: test-qnn-buck-build-linux: name: test-qnn-buck-build-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -716,7 +716,7 @@ jobs: test-arm-backend-no-driver: name: test-arm-backend-no-driver - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -751,7 +751,7 @@ jobs: test-llama-runner-qnn-linux: name: test-llama-runner-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -790,7 +790,7 @@ jobs: test-static-llama-qnn-linux: name: test-static-llama-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -824,7 +824,7 @@ jobs: test-sqnr-static-llm-qnn-linux: name: test-sqnr-static-llm-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -858,7 +858,7 @@ jobs: test-qnn-models-linux: name: test-qnn-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -897,7 +897,7 @@ jobs: test-qnn-passes-linux: name: test-qnn-passes-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -931,7 +931,7 @@ jobs: test-qnn-delegate-linux: name: test-qnn-delegate-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -969,7 +969,7 @@ jobs: test-phi-3-mini-runner-linux: name: test-phi-3-mini-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -999,7 +999,7 @@ jobs: test-qnn-python-imports-linux: name: test-qnn-python-imports-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1047,7 +1047,7 @@ jobs: test-eval_llama-wikitext-linux: name: test-eval_llama-wikitext-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1075,7 +1075,7 @@ jobs: # TODO(larryliu0820): Fix this issue before reenabling it: https://gist.github.com/larryliu0820/7377ecd0d79dbc06076cec8d9f2b85d2 # test-eval_llama-mmlu-linux: # name: test-eval_llama-mmlu-linux - # uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + # uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 # permissions: # id-token: write # contents: read @@ -1102,7 +1102,7 @@ jobs: test-llama_runner_eager-linux: name: test-llama_runner_eager-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1129,7 +1129,7 @@ jobs: test-lora-linux: name: test-lora-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1156,7 +1156,7 @@ jobs: test-lora-multimethod-linux: name: test-lora-multimethod-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1183,7 +1183,7 @@ jobs: test-mediatek-models-linux: name: test-mediatek-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1210,7 +1210,7 @@ jobs: test-openvino-linux: name: test-openvino-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1232,7 +1232,7 @@ jobs: test-build-wasm-linux: name: test-build-wasm-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1260,7 +1260,7 @@ jobs: unittest-wasm-bindings: name: unittest-wasm-bindings - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1305,7 +1305,7 @@ jobs: pnpm test unittest-nxp-neutron: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1352,7 +1352,7 @@ jobs: name: test-samsung-quantmodels-linux # Skip this job if the pull request is from a fork (secrets are not available) if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1390,7 +1390,7 @@ jobs: name: test-samsung-models-linux # Skip this job if the pull request is from a fork (secrets are not available) if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1428,7 +1428,7 @@ jobs: test-vulkan-models-linux: name: test-vulkan-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1469,7 +1469,7 @@ jobs: test-vulkan-operators-linux: name: test-vulkan-operators-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1529,7 +1529,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, 'install_requirements.sh') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/pull.yml') name: test-coreml-bc-macos (${{ matrix.runner }}) - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 permissions: id-token: write contents: read @@ -1561,7 +1561,7 @@ jobs: nxp-build-test: name: nxp-build-test - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read diff --git a/.github/workflows/test-pico2-build.yml b/.github/workflows/test-pico2-build.yml index c15c4235baa..945fd18b378 100644 --- a/.github/workflows/test-pico2-build.yml +++ b/.github/workflows/test-pico2-build.yml @@ -20,7 +20,7 @@ concurrency: jobs: test-pico2-fp32-build: name: test-pico2-fp32-build - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -90,7 +90,7 @@ jobs: test-pico2-cmsis-build: name: test-pico2-cmsis-nn-build - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index 5a6720cdfad..1a6dbd9a6f0 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -27,7 +27,7 @@ jobs: test-models-macos-cpu: name: test-models-macos-cpu - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: matrix: # Mac runners are expensive and limited, and non reliable. @@ -65,7 +65,7 @@ jobs: test-arm-backend-zephyr: name: test-arm-backend-zephyr - uses: pytorch/test-infra/.github/workflows/linux_job.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.12 strategy: matrix: include: @@ -96,7 +96,7 @@ jobs: test-models-linux-aarch64: name: test-models-linux-aarch64 - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -146,7 +146,7 @@ jobs: test-custom-ops-macos: name: test-custom-ops-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: matrix: include: @@ -169,7 +169,7 @@ jobs: test-selective-build-macos: name: test-selective-build-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: matrix: include: @@ -192,7 +192,7 @@ jobs: test-demo-backend-delegation: name: test-demo-backend-delegation - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -219,7 +219,7 @@ jobs: test-arm-backend-ethos-u: name: test-arm-backend-ethos-u - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -270,7 +270,7 @@ jobs: test-arm-backend-vkml: name: test-arm-backend-vkml - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -318,7 +318,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, '.ci/scripts/setup-conda.sh') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/trunk.yml') name: test-coreml-delegate - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-14-xlarge @@ -348,7 +348,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, '.ci/scripts/utils.sh') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/trunk.yml') name: test-static-llama-ane - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-m1-stable @@ -371,7 +371,7 @@ jobs: test-llama-torchao-lowbit: name: test-llama-torchao-lowbit - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 with: default-packages: "" runner: macos-m1-stable @@ -393,7 +393,7 @@ jobs: test-llama-runner-linux: # Test Both linux x86 and linux aarch64 name: test-llama-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -468,7 +468,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, '.ci/scripts/setup-macos.sh') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/trunk.yml') name: test-llama-runner-mac - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: matrix: dtype: [fp32] @@ -504,7 +504,7 @@ jobs: test-torchao-huggingface-checkpoints: name: test-torchao-huggingface-checkpoints - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -552,7 +552,7 @@ jobs: test-multimodal-macos: if: ${{ !github.event.pull_request.head.repo.fork }} name: test-multimodal-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 permissions: id-token: write contents: read @@ -592,7 +592,7 @@ jobs: test-qnn-model: name: test-qnn-model - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -618,7 +618,7 @@ jobs: test-qnn-optimum-model: name: test-qnn-optimum-model - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -653,7 +653,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, '.ci/scripts/setup-macos.sh') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/trunk.yml') name: test-models-macos-coreml - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: matrix: model: [dl3, edsr, efficient_sam, emformer_join, emformer_transcribe, ic3, ic4, mobilebert, mv2, mv3, resnet50, vit, w2l] @@ -707,7 +707,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, '.ci/scripts/setup-macos.sh') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/trunk.yml') name: test-models-macos-mps - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 strategy: fail-fast: false with: @@ -735,7 +735,7 @@ jobs: # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway if: ${{ !github.event.pull_request.head.repo.fork }} name: test-huggingface-transformers-xnnpack - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -835,7 +835,7 @@ jobs: contains(needs.changed-files.outputs.changed-files, '.github/workflows/trunk.yml') ) name: test-huggingface-transformers-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.12 permissions: id-token: write contents: read @@ -898,7 +898,7 @@ jobs: test-llama-runner-qnn-linux: name: test-llama-runner-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -955,7 +955,7 @@ jobs: needs: changes # has dependency on changes jobs defined above if: needs.changes.outputs.qnn == 'true' name: test-static-llama-qnn-eval-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.12 permissions: id-token: write contents: read @@ -1000,7 +1000,7 @@ jobs: docker-image: ci-image:executorch-ubuntu-22.04-clang12 test-models-windows: - uses: pytorch/test-infra/.github/workflows/windows_job.yml@main + uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.12 strategy: fail-fast: false matrix: diff --git a/.github/workflows/update-viablestrict.yml b/.github/workflows/update-viablestrict.yml index b77914d622a..2fd0ae1fc7b 100644 --- a/.github/workflows/update-viablestrict.yml +++ b/.github/workflows/update-viablestrict.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Update viable/strict id: update - uses: pytorch/test-infra/.github/actions/update-viablestrict@main + uses: pytorch/test-infra/.github/actions/update-viablestrict@release/2.12 with: repository: pytorch/executorch stable-branch: viable/strict diff --git a/.github/workflows/windows-msvc.yml b/.github/workflows/windows-msvc.yml index 1f6586cb3cc..d2ec2379496 100644 --- a/.github/workflows/windows-msvc.yml +++ b/.github/workflows/windows-msvc.yml @@ -20,7 +20,7 @@ concurrency: jobs: build-windows-msvc: name: build-windows-msvc - uses: pytorch/test-infra/.github/workflows/windows_job.yml@main + uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.12 with: ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} timeout: 60 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e60788c4d94..f94e121e4e4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -358,7 +358,7 @@ for their help in the PR comments. See https://hud.pytorch.org/hud/pytorch/executorch/main for the current state of the CI (continuous integration) jobs. If `main` is broken, consider rebasing -your PR onto the `viable/strict` branch, which points to the most recent +your PR onto the `release/1.3` branch, which points to the most recent all-green commit.   diff --git a/backends/arm/requirements-arm-models-test.txt b/backends/arm/requirements-arm-models-test.txt index c6a1d94aef2..83ca107a773 100644 --- a/backends/arm/requirements-arm-models-test.txt +++ b/backends/arm/requirements-arm-models-test.txt @@ -4,8 +4,8 @@ # LICENSE file in the root directory of this source tree. diffusers[torch] @ git+https://github.com/huggingface/diffusers.git@a7cb14efbe4b255f4c8721c91a04f0ef40f4a05a -# ng_model_gym deps needed by NSS model tests -pydantic -slangtorch -rich +# ng_model_gym deps needed by NSS model tests since we install ng_model_gym with --no-deps +pydantic==2.10.4 +slangtorch==1.3.11 +rich==13.9.3 setuptools==80.10.2 diff --git a/backends/arm/scripts/install_models_for_test.sh b/backends/arm/scripts/install_models_for_test.sh index d6a7b9cdec0..fdfad627af3 100644 --- a/backends/arm/scripts/install_models_for_test.sh +++ b/backends/arm/scripts/install_models_for_test.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright 2025 Arm Limited and/or its affiliates. +# Copyright 2025-2026 Arm Limited and/or its affiliates. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. @@ -8,7 +8,7 @@ set -e pip install -r backends/arm/requirements-arm-models-test.txt # Install model gym repository -git clone https://github.com/arm/neural-graphics-model-gym.git +git clone --branch v0.2.0 --depth 1 https://github.com/arm/neural-graphics-model-gym.git cd neural-graphics-model-gym # Remove model-converter installation from model-gym repository (to prevent overwriting executorch version) if [[ "$(uname)" == "Darwin" ]]; then @@ -18,4 +18,4 @@ else fi pip install . --no-deps cd .. -rm -rf neural-graphics-model-gym \ No newline at end of file +rm -rf neural-graphics-model-gym diff --git a/docs/README.md b/docs/README.md index da9e6a6a5df..bc9a0360f17 100644 --- a/docs/README.md +++ b/docs/README.md @@ -40,7 +40,7 @@ To build the documentation locally: 1. Clone the ExecuTorch repo to your machine. ```bash - git clone -b viable/strict https://github.com/pytorch/executorch.git && cd executorch + git clone -b release/1.3 https://github.com/pytorch/executorch.git && cd executorch ``` 1. If you don't have it already, start either a Python virtual environment: diff --git a/docs/source/getting-started.md b/docs/source/getting-started.md index 447ef3f2e31..d1a964e7788 100644 --- a/docs/source/getting-started.md +++ b/docs/source/getting-started.md @@ -174,7 +174,7 @@ ExecuTorch provides C++ APIs, which can be used to target embedded or mobile dev CMake is the preferred build system for the ExecuTorch C++ runtime. To use with CMake, clone the ExecuTorch repository as a subdirectory of your project, and use CMake's `add_subdirectory("executorch")` to include the dependency. The `executorch` target, as well as kernel and backend targets will be made available to link against. The runtime can also be built standalone to support diverse toolchains. See [Using ExecuTorch with C++](using-executorch-cpp.md) and [Building from Source](using-executorch-building-from-source.md) for a detailed description of build integration, targets, and cross compilation. ``` -git clone -b viable/strict https://github.com/pytorch/executorch.git +git clone -b release/1.3 https://github.com/pytorch/executorch.git ``` ```cmake # Set CMAKE_CXX_STANDARD to 17 or above. @@ -238,4 +238,4 @@ ExecuTorch provides a high-degree of customizability to support diverse hardware - [Using ExecuTorch with C++](using-executorch-cpp.md) for embedded and mobile native development. - [Profiling and Debugging](using-executorch-troubleshooting.md) for developer tooling and debugging. - [API Reference](export-to-executorch-api-reference.rst) for a full description of available APIs. -- [Examples](https://github.com/pytorch/executorch/tree/main/examples) for demo apps and example code. \ No newline at end of file +- [Examples](https://github.com/pytorch/executorch/tree/main/examples) for demo apps and example code. diff --git a/docs/source/using-executorch-building-from-source.md b/docs/source/using-executorch-building-from-source.md index 170c3f8758d..ccb498004e7 100644 --- a/docs/source/using-executorch-building-from-source.md +++ b/docs/source/using-executorch-building-from-source.md @@ -43,7 +43,7 @@ portability details. ## Environment Setup Clone the ExecuTorch repository from GitHub and create a conda environment. Venv can be used in place of conda. ```bash - git clone -b viable/strict https://github.com/pytorch/executorch.git + git clone -b release/1.3 https://github.com/pytorch/executorch.git cd executorch conda create -yn executorch python=3.10 conda activate executorch diff --git a/docs/source/using-executorch-ios.md b/docs/source/using-executorch-ios.md index f974e76d46f..298aebdb249 100644 --- a/docs/source/using-executorch-ios.md +++ b/docs/source/using-executorch-ios.md @@ -104,7 +104,7 @@ xcode-select --install 2. Clone ExecuTorch: ```bash -git clone -b viable/strict https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules && cd executorch +git clone -b release/1.3 https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules && cd executorch ``` 3. Set up [Python](https://www.python.org/downloads/macos/) 3.10+ and activate a virtual environment: @@ -958,4 +958,4 @@ rm -rf .xcodeproj/project.xcworkspace/xcshareddata/swiftpm \ ~/Library/Caches/com.apple.dt.Xcode \ ~/Library/Developer/Xcode/DerivedData ``` -**Note:** Ensure Xcode is fully quit before running the terminal command to avoid conflicts with active processes. \ No newline at end of file +**Note:** Ensure Xcode is fully quit before running the terminal command to avoid conflicts with active processes. diff --git a/examples/models/moshi/mimi/install_requirements.sh b/examples/models/moshi/mimi/install_requirements.sh index 9fc12f64bc9..40a4ada442c 100755 --- a/examples/models/moshi/mimi/install_requirements.sh +++ b/examples/models/moshi/mimi/install_requirements.sh @@ -8,7 +8,7 @@ set -x sudo apt install ffmpeg -y -pip install torchcodec==0.11.0 --extra-index-url https://download.pytorch.org/whl/test/cpu +pip install torchcodec==0.13.0 --index-url https://download.pytorch.org/whl/cpu pip install moshi==0.2.11 pip install bitsandbytes soundfile einops # Run llama2/install requirements for torchao deps diff --git a/extension/benchmark/apple/Benchmark/README.md b/extension/benchmark/apple/Benchmark/README.md index 25e78a39462..55f93e5e6ba 100644 --- a/extension/benchmark/apple/Benchmark/README.md +++ b/extension/benchmark/apple/Benchmark/README.md @@ -24,7 +24,7 @@ It provides a flexible framework for dynamically generating and running performa To get started, clone the ExecuTorch repository and cd into the source code directory: ```bash -git clone -b viable/strict https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules && cd executorch +git clone -b release/1.3 https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules && cd executorch ``` This command performs a shallow clone to speed up the process. diff --git a/extension/llm/tokenizers b/extension/llm/tokenizers index b642403834a..0b10f027bc6 160000 --- a/extension/llm/tokenizers +++ b/extension/llm/tokenizers @@ -1 +1 @@ -Subproject commit b642403834a67c8ef14a7109dcd1bb5e5f3cb68a +Subproject commit 0b10f027bc66e9d372e3321c9fa0142d1c52891b diff --git a/install_requirements.py b/install_requirements.py index 53204ffd3ee..abf4b0e8ad1 100644 --- a/install_requirements.py +++ b/install_requirements.py @@ -61,6 +61,7 @@ def install_requirements(use_pytorch_nightly): "-m", "pip", "install", + "--no-cache-dir", "-r", "requirements-dev.txt", *TORCH_PACKAGE, @@ -122,6 +123,7 @@ def install_optional_example_requirements(use_pytorch_nightly): "-m", "pip", "install", + "--no-cache-dir", *DOMAIN_LIBRARIES, "--extra-index-url", torch_url, diff --git a/pyproject.toml b/pyproject.toml index bb3beda32b1..86c9d59779a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,7 +61,7 @@ dependencies=[ "packaging", "pandas>=2.2.2; python_version >= '3.10'", "parameterized", - "pytorch-tokenizers", + "pytorch-tokenizers>=1.3.0", "pyyaml", "ruamel.yaml", "sympy", @@ -74,6 +74,8 @@ dependencies=[ "scikit-learn==1.7.1", "hydra-core>=1.3.0", "omegaconf>=2.3.0", + "torch>=2.12.0a0", + "torchao>=0.17.0", ] [project.optional-dependencies] diff --git a/requirements-examples.txt b/requirements-examples.txt index f1579edcb14..9d14d826b51 100644 --- a/requirements-examples.txt +++ b/requirements-examples.txt @@ -4,4 +4,6 @@ datasets == 3.6.0 # 4.0.0 deprecates trust_remote_code and load scripts. For now timm == 1.0.7 torchsr == 1.0.4 torchtune @ git+https://github.com/pytorch/torchtune.git@6f2aa7254458145f99d7004cbd6ebc8e53a06404 +torchaudio >= 2.11.0 +torchvision >= 0.27.0 transformers == 5.0.0rc1