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
It's possible to build `llama.cpp` for Android on your host system via CMake and the Android NDK. If you are interested in this path, ensure you already have an environment prepared to cross-compile programs for Android (i.e., install the Android SDK). Note that, unlike desktop environments, the Android environment ships with a limited set of native libraries, and so only those libraries are available to CMake when building with the Android NDK (see: https://developer.android.com/ndk/guides/stable_apis.)
37
+
38
+
Once you're ready and have cloned `llama.cpp`, invoke the following in the project directory:
Be aware that Android will not find the library path `lib` on its own and does not support `RPATH`, so we must specify `LD_LIBRARY_PATH` in order to run the installed executables. Refer to the previous section for information about `context-size` (very important!) and running other `examples`.
0 commit comments