From 2f8652383d6e4a65d2aa64ac8ce72685c573324e Mon Sep 17 00:00:00 2001 From: Andrew Minh Nguyen Date: Thu, 26 Sep 2024 21:03:26 -0500 Subject: [PATCH] docs : clarify building Android on Termux --- docs/android.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/android.md b/docs/android.md index cec4358d9..903c3faf2 100644 --- a/docs/android.md +++ b/docs/android.md @@ -2,16 +2,18 @@ # Android ## Build on Android using Termux -[Termux](https://github.com/termux/termux-app#installation) is a method to execute `llama.cpp` on an Android device (no root required). +[Termux](https://termux.dev/en/) is an Android terminal emulator and Linux environment app (no root required). With Termux, you can install and run `llama.cpp` as if the environment were Linux. Once in the Termux shell: + ``` apt update && apt upgrade -y apt install git make cmake ``` It's recommended to move your model inside the `~/` directory for best performance: + ``` cd storage/downloads -mv model.gguf ~/ +mv {model}.gguf ~/ ``` [Get the code](https://github.com/ggerganov/llama.cpp#get-the-code) & [follow the Linux build instructions](https://github.com/ggerganov/llama.cpp#build) to build `llama.cpp`.