AI Cloud Architect

Native Model Authoring for Edge with LiteRT Tensor API

GoogleAnnouncement by Ping Yu, Quentin Khan, Chintan Parikh and Lu WangGoogle Developers Blog

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

AI: Summary

What it is

LiteRT Tensor API lets developers write on-device models op by op in C++ and run them via LiteRT on CPU, GPU or NPU, or directly on CPU through XNNPACK.

Who it is for

Developers deploying models on-device across CPU, GPU and NPU who need low-level graph control or an end-to-end accelerator pipeline.

Key points

  • Graphs can be exported as .tflite for LiteRT or run directly with XNNPACK without a model file
  • Google says pre- and post-processing can share accelerator buffers so data avoids CPU round trips
  • Google reports SAM 2 runs about 1.5x faster than Apple MLX on a MacBook Pro (fp16), per its own tests
  • Google says the SAM 2 sample reached over 30 fps at 512x512 on WebGPU

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. How-toAccelerating on-device AI: A look at Arm and Google AI Edge optimization · Google · How-to
  6. New featureML Drift: Next-Gen GPU AI/ML Inference at the Edge · Google · Announcement
  7. This postNative Model Authoring for Edge with LiteRT Tensor API
  8. How-toSmaller apps and faster GPU inference with LiteRT in Google Play services · Google · How-to