fix Run Harness job
This commit is contained in:
parent
e1fcf54a0c
commit
02cb96e7f6
1 changed files with 7 additions and 24 deletions
29
.github/workflows/llm-harness-evaluation.yml
vendored
29
.github/workflows/llm-harness-evaluation.yml
vendored
|
|
@ -167,8 +167,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
- name: Run harness nightly
|
- name: Run harness
|
||||||
if: ${{github.event_name == 'schedule'}}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness
|
working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness
|
||||||
env:
|
env:
|
||||||
|
|
@ -180,26 +179,10 @@ jobs:
|
||||||
export HF_DATASETS_CACHE=$HARNESS_HF_HOME/datasets
|
export HF_DATASETS_CACHE=$HARNESS_HF_HOME/datasets
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /opt/intel/oneapi/setvars.sh
|
||||||
|
|
||||||
python run_llb.py \
|
# set --limit if it's pr-triggered to accelerate pr action
|
||||||
--model bigdl-llm \
|
if ${{github.event_name == 'pull_request'}}; then
|
||||||
--pretrained ${MODEL_PATH} \
|
export LIMIT="--limit 4"
|
||||||
--precision ${{ matrix.precision }} \
|
fi
|
||||||
--device ${{ matrix.device }} \
|
|
||||||
--tasks ${{ matrix.task }} \
|
|
||||||
--batch_size 1 --no_cache --output_path results \
|
|
||||||
|
|
||||||
- name: Run harness pr
|
|
||||||
if: ${{github.event_name == 'pull_request'}}
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness
|
|
||||||
env:
|
|
||||||
USE_XETLA: OFF
|
|
||||||
# SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS: 1
|
|
||||||
run: |
|
|
||||||
export HF_HOME=${HARNESS_HF_HOME}
|
|
||||||
export HF_DATASETS=$HARNESS_HF_HOME/datasets
|
|
||||||
export HF_DATASETS_CACHE=$HARNESS_HF_HOME/datasets
|
|
||||||
source /opt/intel/oneapi/setvars.sh
|
|
||||||
|
|
||||||
python run_llb.py \
|
python run_llb.py \
|
||||||
--model bigdl-llm \
|
--model bigdl-llm \
|
||||||
|
|
@ -208,7 +191,7 @@ jobs:
|
||||||
--device ${{ matrix.device }} \
|
--device ${{ matrix.device }} \
|
||||||
--tasks ${{ matrix.task }} \
|
--tasks ${{ matrix.task }} \
|
||||||
--batch_size 1 --no_cache --output_path results \
|
--batch_size 1 --no_cache --output_path results \
|
||||||
--limit 3 \
|
$LIMIT
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue