ipex-llm/python/llm/dev/benchmark/run-benchmark-tests.sh
Yuwen Hu 65212451cc [LLM] Small update to performance tests (#9106)
* small updates to llm performance tests regarding model handling

* Small fix
2023-10-09 16:55:25 +08:00

17 lines
499 B
Bash

# Performance tests usually use dedicated machines, see below to set env vars, e.g. model paths
# The following environment variables should be ready
# ORIGINAL_LLAMA2_PATH
# LLAMA2_BASELINE
# LLM_DIR
if [ -z "$THREAD_NUM" ]; then
THREAD_NUM=2
fi
export OMP_NUM_THREADS=$THREAD_NUM
######## LLAMA2
# transformers
echo ">>> Testing LLAMA2 transformers API"
taskset -c 0-$((THREAD_NUM - 1)) python python/llm/dev/benchmark/pipelines/llama2_test.py --repo-id-or-model-path $LLAMA2_7B_ORIGIN_PATH