页面简介
LiteRT (formerly TensorFlow Lite) is Google's framework for running ML and generative AI models on-device, with CPU, GPU, and NPU acceleration.
正文摘录
Home Products Google AI Edge LiteRT Send feedback LiteRT is Google's high-performance, cross-platform inference runtime for deploying models on edge devices. Efficient conversion, runtime, and optimization for on-device AI. Get Started with LiteRT Deploy LLMs with LiteRT-LM Build from LiteRT GitHub Download LiteRT models from HF Cross-platform deployment Deploy across mobile, web, desktop, and IoT. Generative AI Engineered with superior support for LLMs, Diffusion, and more generative models. Hardware acceleration CPU, GPU, and NPU hardware acceleration with SOTA performance across leading edge platforms. Multi-framework conversion Direct export and quantization from PyTorch, TensorFlow, and JAX into .tflite format. Trusted by prominent Google apps 250K+ applications, billions of global users Migrate your TensorFlow Lite app Local GenAI & assistants Run open-weight LLMs like Gemma on-device with LiteRT-LM, without a server round trip. View Gemma 4 sample app → Real-time image segmentation Run real-time, multi-class image segmentation from the camera on CPU, GPU, or NPU. View segmentation demo → Live speech recognition Transcribe speech on-device with open-weight ASR models like Whisper, Moonshine, and Parakeet on CPU, GPU, or NPU. View speech sample app → On-device vision-language Run the FastVLM vision-language model on-device with NPU acceleration on Qualcomm devices. View FastVLM demo → Streaming text-to-speech Synthesize natural speech fully offline, with playback starting after the first sentence while the rest streams in. View TTS sample app → IoT & edge robotics Deploy lightweight models, such as anomaly detection and sensor fusion, to microcontrollers and embedded devices. Explore microcontroller docs → 1. Convert 2. Quantize 3. Deploy & Accelerate Convert Convert PyTorch, JAX, or TensorFlow models to .tflite, or start from pre-trained .tflite models. Explore conversion Quantize Use the LiteRT quantizer to quantize your models post-training. Explore optimization Run Deploy your model with LiteRT and pick the optimal accelerator for your app. Run your first inference LiteRT Runtime for ML High-performance runtime for ML workloads. Tailored for hardware-accelerated execution across CPU, GPU, and NPU backends with advanced features such as zero-copy buffer interoperability and async execution. Explore LiteRT Supported Silicon → LiteRT-LM for LLM LiteRT-LM is an orchestration layer built on the LiteRT Runtime that powers the LLM execution loop—seamlessly integrating hardware-accelerated inference, multimodal inputs, constrained decoding, and agentic tool calling. Explore LiteRT-LM Gemma 4 Guide → Install LiteRT Packages LiteRT Runtime LiteRT-LM Python # Platform: Linux, macOS, Windows (Python 3.9+) pip install ai-edge-litert Android (Kotlin) // Platform: Android (API 24+) | In app/build.gradle.kts implementation("com.google.ai.edge.litert:litert:2.3.0") // Optional: include for GPU acceleration implementation("com.google.ai.edge.litert:litert-gpu:2.3.0") iOS (Swift) // Platform: iOS 15+, macOS 12+ // Swift Package Manager support is in progress. // For a production iOS build today, see the LiteRT-LM tab. Web (JS) # Platform: Web (Browsers & Node.js) npm install @litertjs/core C++ # Platform: Linux, Android NDK, macOS, Windows # In CMakeLists.txt (link LiteRT C++ SDK) target_link_libraries(${PROJECT_NAME} PRIVATE litert_cc_api) CLI Tools # Platform: Linux, macOS, Windows | Model conversion & benchmarking pip install litert-cli-nightly Python # Platform: Linux, macOS, Windows | LiteRT-LM Python SDK pip install litert-lm-api Android (Kotlin) // Platform: Android (API 24+) | In app/build.gradle.kts implementation("com.google.ai.edge.litertlm:litertlm-android:latest.release") iOS (Swift) // Platform: iOS 15+, macOS 12+ (Apple Silicon GPU) // In Package.swift dependencies: .package(url: "https://github.com/google-ai-edge/LiteRT-LM", from: "0.16.0") // In target dependencies: .product(name: "LiteRTLM", package: "LiteRT-LM") Web (JS) # Platform: Web (WebGPU required) npm install @litert-lm/core C++ # Platform: Linux, Android NDK, macOS, Windows # Option A: prebuilt C API (headers + shared libs), no build required. # Download litert_lm_c_api-*.zip from github.com/google-ai-edge/LiteRT-LM/releases target_include_directories(${PROJECT_NAME} PRIVATE ${LITERT_LM_SDK}/include) target_link_libraries(${PROJECT_NAME} PRIVATE ${LITERT_LM_SDK}/lib/linux_x86_64/liblitert-lm.so) # Option B: build LiteRT-LM from source, then link the C++ aggregate target. target_link_libraries(${PROJECT_NAME} PRIVATE LiteRTLM::Aggregate) CLI Tools # Platform: Linux, macOS, Windows | On-Device LLM runner & test harness pip install litert-lm Full LiteRT-LM API guide → Quick start, streaming, GPU, multimodal input, and tool use in Python, Kotlin, Swift, and JavaScript. Supported Platforms: Android • iOS • Web • Linux • macOS • Windows LiteRT Guide → CLI Guide → LiteRT-LM Guide → End-to-end sample applications Complete, runnable open-source sample applications across Android, iOS, Web, desktop, and IoT for LiteRT and LiteRT-LM. Explore sample apps Explore open-weight LLMs & models Pre-converted, ready-to-deploy models on Hugging Face including Gemma 4, Llama 3.2, Qwen 3.5, and MobileNet. Browse Hugging Face Collections Try on-device Gemma: AI Edge Gallery app Experience offline LLMs running entirely on your mobile device with LiteRT-LM. Download the open-source sample app on Google Play and GitHub. Get it on Google Play GitHub source → Blogs and announcements Stay up to date with the latest announcements, technical deep dives, and performance benchmarks on the LiteRT news and blogs page. Explore more blogs LiteRT GitHub community Contribute directly to the project and collaborate with core developers. Hugging Face Hub Access optimized open-weight models on the Hugging Face Hub. Collaboration & feature intake Submit feature requests and collaborate with the LiteRT team. Start your LiteRT journey Ready to build? Explore the docs and ship your first on-device model. Explore the Docs Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated 2026-10-18 UTC.