change download path

This commit is contained in:
pengyb2001 2024-02-06 21:12:51 +08:00
parent 2c4e610743
commit e627727b4b

View file

@ -174,30 +174,25 @@ 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
DATE=$(date +%Y-%m-%d)
OUTPUT_PATH="results_$DATE"
echo "OUTPUT_PATH=$OUTPUT_PATH" >> $GITHUB_ENV
echo "output_path=$OUTPUT_PATH" >> $GITHUB_OUTPUT
python run_llb.py \ python run_llb.py \
--model bigdl-llm \ --model bigdl-llm \
--pretrained ${MODEL_PATH} \ --pretrained ${MODEL_PATH} \
--precision ${{ matrix.precision }} \ --precision ${{ matrix.precision }} \
--device ${{ matrix.device }} \ --device ${{ matrix.device }} \
--tasks ${{ matrix.task }} \ --tasks ${{ matrix.task }} \
--batch_size 1 --no_cache --output_path $OUTPUT_PATH --batch_size 1 --no_cache --output_path results
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: harness_results name: harness_results
path: path:
${{ github.workspace }}/python/llm/dev/benchmark/harness/${{ env.OUTPUT_PATH }}/** ${{ github.workspace }}/python/llm/dev/benchmark/harness/results/**
- name: echo single result - name: echo single result
shell: bash shell: bash
working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness/${{ env.OUTPUT_PATH }}/ working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness/results/
run: | run: |
cat ${{ matrix.model_name }}/${{ matrix.device }}/${{ matrix.precision }}/${{ matrix.task }}/result.json cat ${{ matrix.model_name }}/${{ matrix.device }}/${{ matrix.precision }}/${{ matrix.task }}/result.json