You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- BPE pre-tokenization support has been added: https://github.com/ggerganov/llama.cpp/pull/6920
24
25
- MoE memory layout has been updated - reconvert models for `mmap` support and regenerate `imatrix`https://github.com/ggerganov/llama.cpp/pull/6387
25
26
- Model sharding instructions using `gguf-split`https://github.com/ggerganov/llama.cpp/discussions/6404
26
27
- Fix major bug in Metal batched inference https://github.com/ggerganov/llama.cpp/pull/6225
@@ -935,25 +936,35 @@ If your issue is with model generation quality, then please at least scan the fo
935
936
936
937
### Android
937
938
938
-
#### Building the Project using Android NDK
939
-
You can easily run `llama.cpp` on Android device with [termux](https://termux.dev/).
939
+
#### Build on Android using Termux
940
+
[Termux](https://github.com/termux/termux-app#installation) is a method to execute `llama.cpp` on an Android device (no root required).
941
+
```
942
+
apt update && apt upgrade -y
943
+
apt install git make cmake
944
+
```
940
945
941
-
First, install the essential packages for termux:
946
+
It's recommended to move your model inside the `~/` directoryforbest performance:
942
947
```
943
-
pkg install clang wget git cmake
948
+
cd storage/downloads
949
+
mv model.gguf ~/
944
950
```
945
-
Second, obtain the [Android NDK](https://developer.android.com/ndk) and then build with CMake:
946
951
947
-
You can execute the following commands on your computer to avoid downloading the NDK to your mobile. Of course, you can also do this in Termux.
952
+
[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`.
953
+
954
+
#### Building the Project using Android NDK
955
+
Obtain the [Android NDK](https://developer.android.com/ndk) and then build with CMake.
948
956
957
+
Execute the following commands on your computer to avoid downloading the NDK to your mobile. Alternatively, you can also do this in Termux:
Install [termux](https://termux.dev/) on your device and run `termux-setup-storage` to get access to your SD card.
965
+
966
+
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).
967
+
957
968
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:
958
969
959
970
(Assumed that you have pushed the built executable files to the /sdcard/llama.cpp/bin path using `adb push`)
0 commit comments