Back to the ticker

Qualcomm runs Stable Diffusion on an Android phone for the first time

Qualcomm AI Research has demonstrated Stable Diffusion v1.5, a model with more than 1 billion parameters, running entirely on an Android phone powered by a Snapdragon 8 Gen 2. The company reports image generation in under 15 seconds for 20 inference steps at 512x512 pixels, a workload that until then ran in the cloud.

Four generated images arranged in a two by two grid, each showing a fluffy kitten in a different set of armour, one holding a sword and one wearing a red cape
Images: Qualcomm. Sample outputs from the demo, generated on the phone.

To fit the model on the phone, Qualcomm quantised it from FP32 to INT8 using its AI Model Efficiency Toolkit and a post-training method called AdaRound, which adapts how individual weights are rounded. According to the company, the model needed no retraining after the conversion.

Inference runs through the Qualcomm AI Engine direct framework on the Hexagon processor, with the model prepared in Qualcomm AI Studio. The company sums up the result in its post.

This is the fastest inference on a smartphone and comparable to cloud latency.

  1. ONNX Runtime 1.5 adds a mobile build that ships only the operators a model uses
  2. George Hotz starts tinygrad, a framework that ports to an accelerator in about 25 ops