From 7f0b8dd49528113c324429319e0a4d039220b9e1 Mon Sep 17 00:00:00 2001 From: Jeximo Date: Sun, 5 May 2024 19:47:24 -0300 Subject: [PATCH] Organized required packages per build type building llama.cpp with NDK on a pc doesn't require installing clang, cmake, git, or wget in termux. --- Further tidy on Android instructions README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Further tidy on Android instructions README.md b/Further tidy on Android instructions README.md index c70e4e247..217f50bd1 100644 --- a/Further tidy on Android instructions README.md +++ b/Further tidy on Android instructions README.md @@ -937,7 +937,7 @@ If your issue is with model generation quality, then please at least scan the fo [Termux](https://github.com/termux/termux-app#installation) is a method to execute `llama.cpp` on an Android device (no root required). ``` apt update && apt upgrade -y -apt install git +apt install git make cmake ``` It's recommended to move your model inside the `~/` directory for best performance: @@ -962,11 +962,6 @@ $ make Install [termux](https://github.com/termux/termux-app#installation) on your device and run `termux-setup-storage` to get access to your SD card (if Android 11+ then run the command twice). -Install the essential packages for termux: -``` -pkg install clang wget git cmake -``` - Finally, copy these built `llama` binaries and the model file to your device storage. Because the file permissions in the Android sdcard cannot be changed, you can copy the executable files to the `/data/data/com.termux/files/home/bin` path, and then execute the following commands in Termux to add executable permission: (Assumed that you have pushed the built executable files to the /sdcard/llama.cpp/bin path using `adb push`)