mirror of
https://github.com/DrHo1y/ezrknn-llm.git
synced 2026-03-23 17:16:44 +07:00
41 lines
970 B
Bash
41 lines
970 B
Bash
#!/bin/bash
|
|
|
|
# Made by Pelochus
|
|
# Check for more info: https://github.com/Pelochus/ezrknn-llm/
|
|
|
|
message_print() {
|
|
echo
|
|
echo "#########################################"
|
|
echo $1
|
|
echo "#########################################"
|
|
echo
|
|
}
|
|
|
|
message_print "Checking root permission..."
|
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
echo "Please run this script as root!"
|
|
exit
|
|
fi
|
|
|
|
# message_print "Changing to repository..."
|
|
|
|
# git clone https://github.com/Pelochus/ezrknn-llm.git
|
|
# cd ezrknn-llm/
|
|
|
|
message_print "Installing RKNN LLM libraries..."
|
|
|
|
cp ./rkllm-runtime/runtime/Linux/librkllm_api/aarch64/* /usr/lib
|
|
cp ./rkllm-runtime/runtime/Linux/librkllm_api/include/* /usr/local/include
|
|
|
|
message_print "Compiling LLM runtime for Linux..."
|
|
|
|
cd ./rkllm-runtime/example
|
|
bash build-linux.sh
|
|
|
|
message_pint "Moving rkllm to /usr/bin..."
|
|
|
|
cp ./build/build_aarch64_release/llm_demo /usr/bin/rkllm # We also change the name for remembering how to call it from shell
|
|
|
|
message_print "Done!"
|