Last active
October 29, 2024 18:35
-
-
Save ethanc8/66ee3b6abf58e77943331d3a511a015e to your computer and use it in GitHub Desktop.
Executorch LLM tutorial
You can download the v0.2.0 APK from GitHub Actions or build it yourself from commit 6a1703e
(v0.2.0 with buildfixes for Android).
- Download and install the APK.
- Download and install Shizuku and aShell
- Open Shizuku, pair it with your device via wireless debugging, and start the Shizuku service.
- Download an Executorch model such as stories110M (you need the
tokenizer.bin
and the.pte
file) to your download folder (which is usually/sdcard/Download
) - Open aShell and type:
mkdir -p /data/local/tmp/llama
cp /sdcard/Download/tokenizer.bin /data/local/tmp/llama/tokenizer.bin
cp /sdcard/Download/xnnpack_llama2.pte /data/local/tmp/llama/xnnpack_llama2.pte
(make sure to change the file paths if they're different for your device or the model you're using!) 6. Open ExecuTorchLlamaDemo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now I'm getting the error "Load failed: 34".
I posted about this error at https://discuss.pytorch.org/t/android-demo-app-load-failed-34/203796.