Run ExecuTorch Llama 3.2 1B Instruct on an Android phone with Vulkan
Introduction
Prepare a Linux host and Android device for ExecuTorch Vulkan
Install ExecuTorch and download the model on the Linux host
Export the Vulkan PTE
Build the Android Vulkan runtime
Deploy and measure Llama 3.2 with ExecuTorch Vulkan on Android
Next Steps
Run ExecuTorch Llama 3.2 1B Instruct on an Android phone with Vulkan
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
No. You can export, quantize, and cross-compile on a Linux host without CUDA, ROCm, or a working Vulkan GPU.
Run
git clone --branch release/1.4 --recursive https://github.com/pytorch/executorch.git and git submodule update --init --recursive. Create the environment with python3.12 -m venv .venv, activate it with source .venv/bin/activate, then install the pinned PyTorch version 2.13.0+cpu before continuing.The exported Vulkan
.pte file is about 1.8 GB.Install the LunarG Vulkan SDK on the host and source its
setup-env.sh script. Run which glslc and glslc --version to confirm that the compiler is available to the build.Record model load time, prompt and decode throughput, total inference time, time to first token, RSS, and sampling time. The
PyTorchObserver summary also reports prefill_token_per_sec and decode_token_per_sec.