mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
This reverts commit 3e135993bd.
Reverted https://github.com/pytorch/pytorch/pull/145923 on behalf of https://github.com/atalman due to reverting back to one cluster ([comment](https://github.com/pytorch/pytorch/pull/145923#issuecomment-2625022826))
121 lines
4.7 KiB
YAML
121 lines
4.7 KiB
YAML
name: unstable
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- ciflow/unstable/*
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
# There must be at least one job here to satisfy GitHub action workflow syntax
|
|
introduction:
|
|
if: github.repository_owner == 'pytorch'
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
steps:
|
|
- name: Introduce PyTorch unstable workflow
|
|
run: |
|
|
echo "PyTorch unstable workflow is used to host experimental or flaky jobs"
|
|
echo " that needs to be run for every commit, but doesn't block PR merging"
|
|
echo " as part of the stable pull or trunk workflows."
|
|
echo
|
|
echo "In addition, a new label called ciflow/unstable can be attached to the"
|
|
echo " PR to trigger this workflow. That can be done either manually or"
|
|
echo " automatically using PyTorch auto-label bot."
|
|
echo
|
|
echo "Once the jobs are deemed stable enough (% red signal < 5% and TTS < 3h),"
|
|
echo " they can graduate and move back to pull or trunk."
|
|
|
|
target-determination:
|
|
if: github.repository_owner == 'pytorch'
|
|
name: before-test
|
|
uses: ./.github/workflows/target_determination.yml
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
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 }}
|
|
|
|
# Moved from rocm-mi300.yml
|
|
|
|
linux-focal-rocm6_3-py3_10-build:
|
|
if: ${{ (github.event_name != 'schedule' || github.repository == 'pytorch/pytorch') && github.repository_owner == 'pytorch' }}
|
|
name: linux-focal-rocm6.3-py3.10
|
|
uses: ./.github/workflows/_linux-build.yml
|
|
needs: get-label-type
|
|
with:
|
|
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}"
|
|
build-environment: linux-focal-rocm6.3-py3.10
|
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
|
sync-tag: rocm-build
|
|
test-matrix: |
|
|
{ include: [
|
|
{ config: "default", shard: 1, num_shards: 6, runner: "linux.rocm.gpu.mi300.2" },
|
|
{ config: "default", shard: 2, num_shards: 6, runner: "linux.rocm.gpu.mi300.2" },
|
|
{ config: "default", shard: 3, num_shards: 6, runner: "linux.rocm.gpu.mi300.2" },
|
|
{ config: "default", shard: 4, num_shards: 6, runner: "linux.rocm.gpu.mi300.2" },
|
|
{ config: "default", shard: 5, num_shards: 6, runner: "linux.rocm.gpu.mi300.2" },
|
|
{ config: "default", shard: 6, num_shards: 6, runner: "linux.rocm.gpu.mi300.2" },
|
|
]}
|
|
secrets: inherit
|
|
|
|
linux-focal-rocm6_3-py3_10-test:
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
name: linux-focal-rocm6.3-py3.10
|
|
uses: ./.github/workflows/_rocm-test.yml
|
|
needs:
|
|
- linux-focal-rocm6_3-py3_10-build
|
|
- target-determination
|
|
with:
|
|
build-environment: linux-focal-rocm6.3-py3.10
|
|
docker-image: ${{ needs.linux-focal-rocm6_3-py3_10-build.outputs.docker-image }}
|
|
test-matrix: ${{ needs.linux-focal-rocm6_3-py3_10-build.outputs.test-matrix }}
|
|
secrets: inherit
|
|
|
|
# Moved from inductor-rocm-mi300.yml
|
|
|
|
linux-focal-rocm6_3-py3_10-inductor-build:
|
|
name: rocm6.3-py3.10-inductor
|
|
uses: ./.github/workflows/_linux-build.yml
|
|
needs: get-label-type
|
|
with:
|
|
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}"
|
|
build-environment: linux-focal-rocm6.3-py3.10
|
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
|
test-matrix: |
|
|
{ include: [
|
|
{ config: "inductor", shard: 1, num_shards: 2, runner: "linux.rocm.gpu.mi300.2" },
|
|
{ config: "inductor", shard: 2, num_shards: 2, runner: "linux.rocm.gpu.mi300.2" },
|
|
]}
|
|
secrets: inherit
|
|
|
|
linux-focal-rocm6_3-py3_10-inductor-test:
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
name: rocm6.3-py3.10-inductor
|
|
uses: ./.github/workflows/_rocm-test.yml
|
|
needs: linux-focal-rocm6_3-py3_10-inductor-build
|
|
with:
|
|
build-environment: linux-focal-rocm6.3-py3.10
|
|
docker-image: ${{ needs.linux-focal-rocm6_3-py3_10-inductor-build.outputs.docker-image }}
|
|
test-matrix: ${{ needs.linux-focal-rocm6_3-py3_10-inductor-build.outputs.test-matrix }}
|
|
secrets: inherit
|