翻篇收录说明
翻篇网页快照

Use LiteRT on Android | AI | Android Developers

https://developer.android.com/ai/custom

最近抓取:2026-12-04 15:45:50(北京时间)

最近内容变化:2026-12-02 02:02:46(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Use LiteRT in Google Play services to deploy high-performance, custom machine learning features in your Android app with CPU and GPU acceleration.

正文摘录

Android Developers Develop AI Guides Send feedback Use LiteRT on Android LiteRT on Android provides the essentials for deploying high-performance, custom ML features into your Android app. LiteRT for ML runtime Use LiteRT in Google Play services, Android's official ML inference runtime, to run high-performance ML inference in your app with the CompiledModel API. Learn more Hardware acceleration with LiteRT accelerators Use LiteRT accelerators to run your models on the CPU or GPU. The GPU accelerator runs models up to 1.4 times faster than the previous TensorFlow Lite GPU delegate, so you can deliver more fluid, lower-latency experiences to your users. Learn more NPU acceleration is available today in standalone LiteRT, and NPU support in Google Play services is coming soon. Learn more Enabled by Google Play services Google Play services delivers the LiteRT runtime and accelerators, so you don't bundle them in your APK. Removing the bundled LiteRT runtime and GPU accelerator saves up to ~8 MB of app size. Google Play services also keeps the runtime up to date without an app release. Learn more Build with your AI coding agent Use the LiteRT runtime skill with your coding agent, such as Agent Mode in Android Studio, to add LiteRT to your app, run a model on the CPU or GPU, or migrate an existing TensorFlow Lite app to LiteRT in Google Play services. Learn more Use LiteRT in Google Play services Android skill to implement on-device model inference and enable GPU acceleration without runtime overhead. To install the skill from the Android CLI, run: android skills add litert-runtime Use the LiteRT-LM Android skill to build an Android app that runs an open text LLM on-device on CPU or GPU using the LiteRT-LM Kotlin API. To install the skill from the Android CLI, run: android skills add litert-lm Code samples Explore the LiteRT Android code samples and test ML features on your device. Learn more Get started with LiteRT Add LiteRT in Google Play services to your app and run your first model. Learn more Send feedback Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates. Last updated 2026-11-18 UTC.