[LLM] fix chatglm main choice (#9073)

This commit is contained in:
Yishuo Wang 2023-09-28 11:23:37 +08:00 committed by GitHub
parent 760183bac6
commit 6de2189e90

View file

@ -47,7 +47,11 @@ function starcoder {
} }
function chatglm { function chatglm {
if [[ $(lscpu | grep "amx_int8") ]]; then
command="$lib_dir/main-chatglm_amx -t $threads -n $n_predict ${filteredArguments[*]}"
else
command="$lib_dir/main-chatglm_vnni -t $threads -n $n_predict ${filteredArguments[*]}" command="$lib_dir/main-chatglm_vnni -t $threads -n $n_predict ${filteredArguments[*]}"
fi
echo "$command" echo "$command"
eval "$command" eval "$command"
} }