Skip to content

Commit

Permalink
Change step order
Browse files Browse the repository at this point in the history
Signed-off-by: ZePan110 <[email protected]>
  • Loading branch information
ZePan110 committed Dec 12, 2024
1 parent a8b7315 commit e646be6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/manual-accuary-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
fi
conda_version=$(conda --version 2>&1)
version=$(echo $conda_version | grep -oP 'conda \K[0-9]+\.[0-9]+\.[0-9]+' | cut -d. -f2)
if [[ $major_version -ge 6 ]]; then
if [[ $version -ge 6 ]]; then
source activate ${conda_env_name}
else
source ${HOME}/miniforge3/etc/profile.d/conda.sh
Expand All @@ -120,50 +120,50 @@ jobs:
pip install ragas==0.1.19
fi
- name: Launch Service
- name: Evaluation Prepare
shell: bash
if: ${{ matrix.dataset }} == 'en' && ${{ matrix.dataset }} == 'ChatQnA'
env:
HUGGINGFACEHUB_API_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
example: ${{ matrix.example }}
dataset: ${{ matrix.dataset }}
# IMAGE_REPO: 100.83.111.229:5000/opea
run: |
export PATH=${HOME}/miniforge3/bin/:$PATH
conda_version=$(conda --version 2>&1)
version=$(echo $conda_version | grep -oP 'conda \K[0-9]+\.[0-9]+\.[0-9]+' | cut -d. -f2)
if [[ $major_version -ge 6 ]]; then
if [[ $version -ge 6 ]]; then
source activate OPEA_acc
else
source ${HOME}/miniforge3/etc/profile.d/conda.sh
conda activate OPEA_acc
fi
[ ! -d "acc-log" ] && mkdir acc-log
cp ${{ github.workspace }}/Validation/.github/scripts/acc_test.sh ${{ github.workspace }}/GenAIExamples/${example}/benchmark/accuracy/
bash ${{ github.workspace }}/GenAIExamples/${example}/benchmark/accuracy/acc_test.sh --launch_service "${example}" "${dataset}" | tee ${{ github.workspace }}/acc-log/${example}-${dataset}-launch_service.txt
bash ${{ github.workspace }}/GenAIExamples/${example}/benchmark/accuracy/acc_test.sh --eval_prepare "${example}" "${dataset}" | tee ${{ github.workspace }}/acc-log/${example}-${dataset}-eval_prepare.txt
- name: Evaluation Prepare
shell: bash
if: ${{ matrix.dataset }} == 'en' && ${{ matrix.dataset }} == 'ChatQnA'
- name: Launch Service
env:
HUGGINGFACEHUB_API_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
example: ${{ matrix.example }}
dataset: ${{ matrix.dataset }}
# IMAGE_REPO: 100.83.111.229:5000/opea
run: |
export PATH=${HOME}/miniforge3/bin/:$PATH
conda_version=$(conda --version 2>&1)
version=$(echo $conda_version | grep -oP 'conda \K[0-9]+\.[0-9]+\.[0-9]+' | cut -d. -f2)
if [[ $major_version -ge 6 ]]; then
if [[ $version -ge 6 ]]; then
source activate OPEA_acc
else
source ${HOME}/miniforge3/etc/profile.d/conda.sh
conda activate OPEA_acc
fi
[ ! -d "acc-log" ] && mkdir acc-log
cp ${{ github.workspace }}/Validation/.github/scripts/acc_test.sh ${{ github.workspace }}/GenAIExamples/${example}/benchmark/accuracy/
bash ${{ github.workspace }}/GenAIExamples/${example}/benchmark/accuracy/acc_test.sh --eval_prepare "${example}" "${dataset}" | tee ${{ github.workspace }}/acc-log/${example}-${dataset}-eval_prepare.txt
bash ${{ github.workspace }}/GenAIExamples/${example}/benchmark/accuracy/acc_test.sh --launch_service "${example}" "${dataset}" | tee ${{ github.workspace }}/acc-log/${example}-${dataset}-launch_service.txt
- name: Run Evaluation
env:
Expand All @@ -177,7 +177,7 @@ jobs:
export PATH=${HOME}/miniforge3/bin/:$PATH
conda_version=$(conda --version 2>&1)
version=$(echo $conda_version | grep -oP 'conda \K[0-9]+\.[0-9]+\.[0-9]+' | cut -d. -f2)
if [[ $major_version -ge 6 ]]; then
if [[ $version -ge 6 ]]; then
source activate OPEA_acc
else
source ${HOME}/miniforge3/etc/profile.d/conda.sh
Expand Down

0 comments on commit e646be6

Please sign in to comment.