AI Cloud Architect

Accelerating on-device AI: A look at Arm and Google AI Edge optimization

GoogleHow-to by Chintan Parikh, Dillon Sharlet, Na Li and Gian Marco IodiceGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A walkthrough of converting, quantizing and running Stability AI's stable-audio-open-small on Arm CPUs with SME2, using LiteRT, AI Edge Quantizer and Model Explorer.

Who it is for

Mobile and edge developers who want to run generative audio models on phones or laptops without a dedicated accelerator.

Key points

  • Post reports about 2x faster audio generation on an M4 MacBook (10 s to 4.3 s) and on an SME2 Android device (14 s to 6.6 s), single thread.
  • The DiT submodule was quantized from FP32 to dynamic INT8, which the post says gives about 3x speed and 4x smaller memory use.
  • Post says the generated audio keeps perceptual parity with the FP32 version.

Timeline

Posts about LiteRT, oldest first.

  1. Update to an existing featureUnlocking Peak Performance on Qualcomm NPU with LiteRT · Google · Announcement
  2. New featureMediaTek NPU and LiteRT: Powering the next generation of on-device AI · Google · Announcement
  3. Generally availableLiteRT: The Universal Framework for On-Device AI · Google · Announcement
  4. Blog postBuilding real-world on-device AI with LiteRT and NPU · Google · Blog post
  5. This postAccelerating on-device AI: A look at Arm and Google AI Edge optimization
  6. New featureML Drift: Next-Gen GPU AI/ML Inference at the Edge · Google · Announcement
  7. New featureNative Model Authoring for Edge with LiteRT Tensor API · Google · Announcement
  8. How-toSmaller apps and faster GPU inference with LiteRT in Google Play services · Google · How-to