Files
ezrknn-llm/rkllm-runtime/examples/rkllm_api_demo
2024-11-02 12:30:25 +01:00
..
2024-10-11 16:49:16 +08:00
2024-05-09 17:31:27 +08:00
2024-10-11 16:49:16 +08:00
2024-11-02 12:30:25 +01:00

Aarch64 Linux Demo

Build

To execute, run:

bash build-linux.sh

Install

Push the compiled llm_demo file and librkllmrt.so file to the device:

cp build/build_linux_aarch64_Release/llm_demo /usr/bin
cp ../../runtime/Linux/librkllm_api/aarch64/librkllmrt.so /usr/local/lib

To exit the LLM enter either exit or quit.

Run

adb shell
cd /userdata/llm
export LD_LIBRARY_PATH=./lib
taskset f0 ./llm_demo /path/to/your/rkllm/model

Android Demo

Build

Ensure the ANDROID_NDK_PATH option in the build-android.sh script is correctly configured:

ANDROID_NDK_PATH=/path/to/your/android-ndk-r18b

To execute, run:

bash build-android.sh

Install

Push the compiled llm_demo file and librkllmrt.so file to the device:

adb push build/build_android_arm64-v8a_Release/llm_demo /userdata/llm
adb push ../../runtime/Android/librkllm_api/arm64-v8a/librkllmrt.so /userdata/llm/lib

Run

adb shell
cd /userdata/llm
export LD_LIBRARY_PATH=./lib
taskset f0 ./llm_demo /path/to/your/rkllm/model