[LLM] fix chatglm main choice (#9073)
This commit is contained in:
parent
760183bac6
commit
6de2189e90
1 changed files with 5 additions and 1 deletions
|
|
@ -47,7 +47,11 @@ function starcoder {
|
|||
}
|
||||
|
||||
function chatglm {
|
||||
command="$lib_dir/main-chatglm_vnni -t $threads -n $n_predict ${filteredArguments[*]}"
|
||||
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[*]}"
|
||||
fi
|
||||
echo "$command"
|
||||
eval "$command"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue