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
7 changes: 6 additions & 1 deletion .github/scripts/run_deploy_benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function run() {
example=$1
test_mode=$2
target_node=$3
clean_up=$4

lower_example=$(echo "$example" | tr '[:upper:]' '[:lower:]')
example_yaml_path="./$example/benchmark_$lower_example.yaml"
Expand All @@ -62,6 +63,10 @@ function run() {
extra_args="$extra_args --target-node $target_node"
echo "extra_args: $extra_args"
fi
if [ "$clean_up" = "false" ]; then
extra_args="$extra_args --no-clean-up"
echo "extra_args: $extra_args"
fi

python deploy_and_benchmark.py "${example_yaml_path}" $extra_args
}
Expand All @@ -87,7 +92,7 @@ case "$1" in
;;
--run)
pushd ../GenAIExamples
run $2 $3 $4
run $2 $3 $4 $5
popd
;;
--generate_report)
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/manual-deploy-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
description: "Runner label 'aise-perf'"
required: true
type: string
clean_up:
default: true
description: "Clean up the example deployment after running the workflow"
required: false
type: boolean
example_branch:
default: "main"
description: "GenAIExamples branch to trigger test scripts and config yaml"
Expand All @@ -23,7 +28,7 @@ on:
type: string
example:
default: "ChatQnA"
description: "The example to deploy and benchmark"
description: "The example to deploy and benchmark, [ChatQnA/DocSum]"
required: true
type: string
test_mode:
Expand All @@ -37,7 +42,7 @@ on:
required: false
type: string
deploy_args:
default: "charts_version=1.2.0#namespace=default#with_rerank=False#engine=vllm#max_batch_size=[8]#max_num_seqs=[8]"
default: "version=0-latest#namespace=default#with_rerank=False#engine=vllm#max_batch_size=[8]#max_num_seqs=[8]"
description: "The arguments for deploy, use # to separate the arguments"
required: false
type: string
Expand All @@ -53,6 +58,10 @@ jobs:
env:
conda_env_name: "OPEA_perf"
steps:
- name: Show All Inputs
run: |
echo "Inputs:"
echo '${{ toJson(inputs) }}'
- name: Clean Up Working Directory
run: |
sudo rm -rf ${{github.workspace}}/*
Expand Down Expand Up @@ -93,8 +102,9 @@ jobs:
export PATH=${HOME}/miniforge3/bin/:$PATH
source activate ${conda_env_name}

sed -i /^opea-eval/d ../GenAIExamples/requirements.txt
pip install -r ../GenAIExamples/requirements.txt
pip list
pip list
bash .github/scripts/run_deploy_benchmark.sh --generate_config ${{ inputs.example }} ${{ inputs.deploy_args }} ${{ inputs.benchmark_args }}

- name: Run deploy and benchmark
Expand All @@ -109,7 +119,7 @@ jobs:
export PYTHONPATH="${EVAL_PATH}"
echo "EVAL_PATH=${EVAL_PATH}"
fi
bash .github/scripts/run_deploy_benchmark.sh --run ${{ inputs.example }} ${{ inputs.test_mode }} ${{ inputs.target_node }}
bash .github/scripts/run_deploy_benchmark.sh --run ${{ inputs.example }} ${{ inputs.test_mode }} ${{ inputs.target_node }} ${{ inputs.clean_up }}

- name: Generate report
working-directory: ./Validation
Expand Down