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?

After completing this Learning Path, you'll be able to perform the following tasks:

  • 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'll need the following prerequisites:

  • 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 venv and pip support
  • On macOS or Linux, curl and unzip installed and available in your PATH
  • A Hugging Face account with access to the model repositories

Summary

AI-assisted

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.

Close
?
You’ll run an Arm-optimized TinySD text-to-image model locally on an Arm64 Android phone with ExecuTorch and XNNPACK. You’ll install and verify the Android command-line tools, build TinySD Studio, and download and import the TinySD INT8 package. Then, you’ll generate and save a 512 x 512 image and compare another seed. You’ll also trace the adapter, package importer, tokenizer, denoising loop, and image decoder, then choose an executable route for another model package.