Run optimized TinySD image generation from the Arm AI Portal on Arm-powered Android devices
Introduction
Prepare the Android command-line tools for TinySD Studio
Connect an Arm-based Android phone and run TinySD Studio
Run and compare TinySD image generation results
Understand the TinySD Studio Android application
(Optional) Use an image-generation model not currently supported by TinySD Studio
Next Steps
Run optimized TinySD image generation from the Arm AI Portal on Arm-powered Android devices
Introduction
Prepare the Android command-line tools for TinySD Studio
Connect an Arm-based Android phone and run TinySD Studio
Run and compare TinySD image generation results
Understand the TinySD Studio Android application
(Optional) Use an image-generation model not currently supported by TinySD Studio
Next Steps
Who is this for?
This Learning Path is for Android and machine learning developers who want to run an optimized text-to-image generation model locally on an Arm-based Android device.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Install the Android command-line tools and required SDK packages.
- Build TinySD Studio and run it on an Arm-based Android phone.
- Download, package, and import the TinySD ExecuTorch model, then generate a 512 x 512 image.
- Compare images generated from the same prompt with different seeds.
- Understand how the application adapter works and choose a route for another model package.
Prerequisites
Before starting, you will need the following:
- A development machine supported by Android Studio
- An Arm-based Android phone with Android 9 or later and 4 GB of free storage, or a development machine that can run an Arm64 Android emulator
- A USB data cable when using a physical phone
- A Java 17 or later JDK
- Git installed and available in your
PATH - Python 3 with
venvandpipsupport - On macOS or Linux,
curlandunzipinstalled and available in yourPATH - A Hugging Face account with access to the model repositories
Summary
This summary was 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.
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.
MODEL_ID to Arm/tiny-sd-int8-xnnpack-executorch-vivo-x300, the Hugging Face repository for this application. Use the same value when you run the model downloader.test -d "$ANDROID_HOME/platforms/android-35". In Windows PowerShell, run Test-Path "$env:ANDROID_HOME\platforms\android-35". The PowerShell check returns True when the platform directory exists.TinySdImageGenerationAdapter.java connects the shared application interface to ClipTokenizer.java, ModelImporter.java, and TinySdRunner.java. The tokenizer produces 77 CLIP token IDs, and the runner calls the ExecuTorch text encoder, UNet, and VAE decoder. ScheduleData.java loads the DPM-Solver++ values.