Prerequisites
Android device
- Android 13 or later (API 33+).
- arm64-v8a architecture; a Snapdragon 8 Elite-class device is recommended.
- 8B: 8 GB or more of memory; 35B: 12–16 GB.
- Developer options and USB debugging enabled, with the device connected to the computer over USB.
Build computer
- Git, Bash, JDK 17+.
- Android SDK 35, adb, and an
sdkmanagerusable from the terminal. - NDK r28:
28.2.13676358. - CMake 3.21+ and Ninja.
- Python 3.10+ with NumPy and
huggingface_hub(which provides thehuggingface-clicommand). - The
md5sumcommand, which the model import script uses to check files. On macOS, install GNU coreutils to get it. - At least 30 GB of free disk space for model source files and the converted files.
1
Get the source and prepare the Android tools
~/Library/Android/sdk.Run the subsequent commands in the Edge0/android directory.2
Build and install the app
First build the local engine libraries. The first build needs a network connection to download the engine source:After that step succeeds, build the app:Connect the device, allow USB debugging in the on-device dialog, then confirm the connection:The device status should be You can also install the built APK directly; use either method:
device. If it shows unauthorized, allow the authorization on the device and check again. The steps below assume only one device is connected.Install the app:3
Download and convert the model
The model conversion script is in the repository’s The result is saved in The result is saved in
windows/tools/ directory. Android and Windows share this tool, and it runs on your current computer.Prepare 8B
models/edge0-8b-gguf/.Prepare 35B
models/edge0-35b-gguf/.Import onto the device only after conversion completes successfully.4
Import the model via adb
With the app installed and the device connected, run the command for the model you prepared:Or import 35B only:When both tiers are ready, you can import them at once:The script copies the model into the app’s private directory and checks that the files transferred completely. If the script reports missing files or a checksum mismatch, verify that the download and conversion steps completed successfully, then run the script again.
5
Load and chat
- Open Edge0 Chat.
- Go to Models and tap Refresh.
- Select a model and tap Load.
- Return to the chat screen, then enter and send a message.