Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/Slice-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Slice-baseline-paddle

on:
workflow_dispatch:
inputs:
PR_ID:
required: false
type: string
COMMIT_ID:
required: false
type: string
schedule:
- cron: '0 20 * * 0'

Expand Down Expand Up @@ -43,3 +50,5 @@ jobs:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
slice-check: 'true'
SLICE_TEST_MODE: insert_baseline
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
12 changes: 11 additions & 1 deletion .github/workflows/_Slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ on:
type: string
required: false
default: 'paddle'
MANUALLY_PR_ID:
type: string
required: false
MANUALLY_COMMIT_ID:
type: string
required: false

env:
PR_ID: ${{ github.event.pull_request.number || '0' }}
Expand Down Expand Up @@ -105,7 +111,11 @@ jobs:
if [[ "${{ inputs.SLICE_BENCHMARK_FRAMEWORKS }}" == "torch" ]];then
python3.10 -m pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu118
else
python3.10 -m pip install $wheel_link
if [[ "${{ inputs.MANUALLY_PR_ID }}" == "" ]]; then
python3.10 -m pip install $wheel_link
else
python3.10 -m pip install https://paddle-github-action.bj.bcebos.com/PR/build/${{ inputs.MANUALLY_PR_ID }}/${{ inputs.MANUALLY_COMMIT_ID }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
fi
fi
python3.10 -m pip install -r PaddleTest/framework/e2e/api_benchmark/requirement.txt
cd PaddleTest/framework/slice_benchmark
Expand Down
Loading