Run and profile ML Drift on Arm Mali GPUs
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.
Complete Android Studio initial setup, then install Android SDK Command-line Tools in SDK Manager. Set
ANDROID_HOME to your SDK directory, and add platform-tools and cmdline-tools/latest/bin to PATH.Run the commands from the ML Drift repository root. Download the vocabulary to
/tmp/sd_1_5/bpe_simple_vocab_16e6.txt.gz and the FP16 weights to /tmp/v1-5-pruned-emaonly-fp16.safetensors. Then, extract the model weights into /tmp/sd_1_5/.You need at least 2.13 GB of storage on both your host computer and Android device before downloading and deploying the model data.
In Functions, you can see sampled CPU function names, sample counts, and source locations. Use this view to identify frequently sampled CPU code. Its source attribution doesn’t cover the shaders running on the GPU.
Build the Android arm64 sample with
-c opt, --copt=-g, and --strip=never. These options keep release optimizations while retaining function names and source mappings for Streamline analysis.