Skip to content

Commit

Permalink
Update tests on rolling driver (#952)
Browse files Browse the repository at this point in the history
Enable scratch page
  • Loading branch information
mengfei25 authored Oct 9, 2024
1 parent 7be5a9d commit c931d66
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/actions/inductor-xpu-e2e-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ inputs:
type: string
default: 'main'
description: Pytorch branch/commit
driver:
required: false
type: string
default: 'lts'
description: Driver lts/rolling

runs:
using: composite
Expand Down Expand Up @@ -82,9 +87,11 @@ runs:
fi
pip install numpy==1.26.4
- name: E2E Test (${{ inputs.suite }} ${{ inputs.dt }} ${{ inputs.mode }} ${{ inputs.scenario }})
shell: bash
env:
HUGGING_FACE_HUB_TOKEN: ${{ inputs.hf_token }}
NEOReadDebugKeys: ${{ inputs.driver == 'rolling' && '1' || '0' }}
DisableScratchPages: ${{ inputs.driver == 'rolling' && '1' || '0' }}
shell: bash
run: |
source activate e2e_ci
source .github/scripts/env.sh
Expand Down Expand Up @@ -147,9 +154,9 @@ runs:
done
- name: Summary E2E Test (${{ inputs.suite }} ${{ inputs.dt }} ${{ inputs.mode }} ${{ inputs.scenario }})
shell: bash
env:
HUGGING_FACE_HUB_TOKEN: ${{ inputs.hf_token }}
shell: bash
run: |
cd ../pytorch
rm -f inductor_log/summary_accuracy.csv
Expand All @@ -170,4 +177,3 @@ runs:
suite=$(echo ${{ inputs.suite }} |sed 's/,/ /g')
scenario=$(echo ${{ inputs.scenario }} |sed 's/,/ /g')
python inductor_summary.py -p ${dt} -s ${suite} -m ${mode} -sc ${scenario}
8 changes: 8 additions & 0 deletions .github/workflows/_linux_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@ on:
type: string
default: 'linux.idc.xpu'
description: Runner label
driver:
required: false
type: string
default: 'lts'
description: Driver lts/rolling

permissions: read-all

jobs:
Torch-XPU-UT-Tests:
runs-on: ${{ inputs.runner }}
timeout-minutes: 900
env:
NEOReadDebugKeys: ${{ inputs.driver == 'rolling' && '1' || '0' }}
DisableScratchPages: ${{ inputs.driver == 'rolling' && '1' || '0' }}
steps:
- name: Checkout torch-xpu-ops
uses: actions/checkout@v4
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/nightly_ondemand_rolling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
ut: ${{ github.event_name == 'schedule' && 'op_regression,op_regression_dev1,op_extended,op_ut,torch_xpu' || inputs.ut }}
pytorch: ${{ github.event_name == 'schedule' && 'main' || inputs.pytorch }}
python: ${{ github.event_name == 'schedule' && '3.10' || inputs.python }}
driver: rolling
runner: pvc_rolling

Linux-Weekly-UT-Tests-ABI-0-Rolling:
Expand All @@ -82,6 +83,7 @@ jobs:
with:
abi: 0
ut: op_regression,op_regression_dev1,op_extended,op_ut,torch_xpu
driver: rolling
runner: pvc_rolling

Linux-Nightly-Ondemand-E2E-Tests-Rolling:
Expand All @@ -94,6 +96,8 @@ jobs:
keep_torch_xpu_ops: ${{ github.event_name == 'schedule' && 'false' || inputs.keep_torch_xpu_ops }}
ut: ${{ github.event_name == 'schedule' && 'op_regression,op_regression_dev1,op_extended,op_ut,torch_xpu' || inputs.ut }}
python: ${{ github.event_name == 'schedule' && '3.10' || inputs.python }}
NEOReadDebugKeys: 1
DisableScratchPages: 1
outputs:
TORCH_BRANCH_ID: ${{ steps.pinned.outputs.TORCH_BRANCH_ID }}
TORCH_COMMIT_ID: ${{ steps.pinned.outputs.TORCH_COMMIT_ID }}
Expand Down Expand Up @@ -197,6 +201,7 @@ jobs:
mode: inference,training
scenario: accuracy
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling
- name: Nightly Torchbench BF16 Training Accuracy Test
if: github.event_name == 'schedule' && github.event.schedule == '30 13 * * 0-4'
uses: ./.github/actions/inductor-xpu-e2e-test
Expand All @@ -207,6 +212,7 @@ jobs:
scenario: accuracy
env_prepare: true
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling
- name: Nightly Timm_models FP16 Training Accuracy Test
if: github.event_name == 'schedule' && github.event.schedule == '30 13 * * 0-4'
uses: ./.github/actions/inductor-xpu-e2e-test
Expand All @@ -217,6 +223,7 @@ jobs:
scenario: accuracy
env_prepare: true
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling
# Weekly launch
- name: Weekly Huggingface Full Test
if: github.event_name == 'schedule' && github.event.schedule == '30 16 * * 5'
Expand All @@ -228,6 +235,7 @@ jobs:
mode: inference,training
scenario: accuracy,performance
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling
- name: Weekly Torchbench Full Test
if: github.event_name == 'schedule' && github.event.schedule == '30 16 * * 5'
uses: ./.github/actions/inductor-xpu-e2e-test
Expand All @@ -238,6 +246,7 @@ jobs:
mode: inference,training
scenario: accuracy,performance
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling
- name: Weekly Timm_models Full Test
if: github.event_name == 'schedule' && github.event.schedule == '30 16 * * 5'
uses: ./.github/actions/inductor-xpu-e2e-test
Expand All @@ -248,6 +257,7 @@ jobs:
mode: inference,training
scenario: accuracy,performance
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling
# On-demand launch
- name: OnDemand Test (${{ inputs.suite }} ${{ inputs.dt }} ${{ inputs.mode }} ${{ inputs.scenario }})
if: github.event_name != 'schedule'
Expand All @@ -259,6 +269,7 @@ jobs:
mode: ${{ inputs.mode }}
scenario: ${{ inputs.scenario }}
hf_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
driver: rolling

- name: Summarize archieve files
id: summary
Expand Down

0 comments on commit c931d66

Please sign in to comment.