Google Tensor SDK 2.2: Gemma Quantization, TPU Benchmarks, On-Device AI Distribution
Google released Tensor SDK 2.2 with support for compiling fine-tuned Gemma models on Pixel TPUs, new quantization options reducing model size to 2.84GB, an experimental agent for automated benchmarking, and on-device AI distribution via Google Play, while maintaining restrictions on publishing comparative benchmark results.
Reading font

Tensor SDK 2.2 Release Overview
Google updated its Tensor SDK to version 2.2 on November 24, adding support for compiling fine-tuned language models and measuring inference performance and energy consumption. The SDK works with LiteRT (formerly TensorFlow Lite) to execute machine learning workloads on the dedicated Tensor Processing Units (TPUs) inside Google Pixel smartphones. The latest version supports the Tensor G5 and G6 chipsets used in the Pixel 10 and Pixel 11 series respectively.
Google also expanded its model garden with over 30 new models covering speech synthesis, audio classification, image generation, face recognition, and text recognition. Running inference locally avoids sending model inputs to remote endpoints, though applications may still transmit data separately. Google's Android development guide lists device storage, available memory, and battery consumption as deployment constraints.
Compiling Models for Local Inference
According to Google's release notes, developers can now export fine-tuned Gemma 4 E2B checkpoints and compile them for Tensor G5 and G6 processors. The compilation process packages the model into a .litertlm package for execution on the device's TPU. Google also provides pre-compiled versions of Gemma 4 E2B, Gemma 3 1B, and EmbeddingGemma, allowing deployment without compiling custom checkpoints.
Quantization Configurations for Gemma 4 E2B
Google's post-training quantization configurations for the Gemma 4 E2B model differ in model size, decoding latency, and accuracy. Reducing weight precision decreases memory requirements and decoding latency, while keeping higher precision for specific model components helps maintain accuracy.
8-bit Transformer configuration : produces a 4.20 GB model package.
4-bit configuration : produces a 2.84 GB package; recommended for simpler tasks or domain-fine-tuned models.
Mixed-precision configurations : two variants at 3.06 GB and 3.47 GB, both retaining 8-bit precision in attention and per-layer projections; the larger variant also keeps 8-bit precision in some MLP components, recommended for devices with more memory running complex inference tasks.
Quantization-aware training (QAT) model : listed at 2.74 GB as a baseline.
These numbers represent compiled model package sizes, not total runtime memory consumption.
Experimental Agent Skill for Compilation and Packaging
The SDK update introduces an experimental agent skill that automates LiteRT model compilation, benchmarking, and packaging. Developers can compile models on a separate workstation and then test on a connected Pixel smartphone. The packaging process generates a Google Play AI package, an NPU runtime module, a CPU fallback model, and a Kotlin loader for integration into Android Gradle projects. Developers can test whether the packaged app executes on the TPU or falls back to CPU.
However, the agent skill currently does not support language models (LLMs) or .litertlm model packages. Developers using Gemma checkpoints must follow Google's separate language model compilation and deployment workflow.
On-Device AI Distribution via Google Play
Through Google Play's on-device AI distribution system, developers can deliver models during app installation, via background download, or on-demand. Device targeting allows distributing different model configurations based on target hardware. Apps using background or on-demand delivery require network connectivity to download models before local inference can run. Downloading more than 200 MB over a mobile network requires user consent.
Measuring Inference Performance with LiteRT Telemetry
The SDK introduces the LiteRT telemetry interface to measure TPU tile execution time in microseconds and average TPU energy per inference in microjoules. The execution time metric separates TPU compute from CPU-side processing overhead and scheduling latency. Developers can configure telemetry hooks via environment variables and retrieve reports using Android Debug Bridge (ADB).
Google's experimental agent skill also logs inference latency and peak memory consumption, enabling comparison of CPU and TPU execution performance on compatible Pixel devices. GPU benchmarking is not yet supported. Benchmark results can be exported in JSON format along with raw execution logs and formatted reports.
The Tensor SDK update follows the release of LiteRT-LM v0.20.0 , Google's runtime for local language model execution. The runtime now reads NPU execution settings from model package metadata if not explicitly configured by the developer.
Hardware and Benchmarking Limitations
Google's Tensor SDK requires ahead-of-time (AOT) compilation for TPU-accelerated inference and does not currently support just-in-time (JIT) compilation on client devices. The broader LiteRT framework supports both compilation methods via hardware acceleration from Qualcomm, MediaTek, Samsung, and Intel, and developers can compile for multiple hardware vendors and processor versions in a single workflow.
According to Google's LiteRT documentation ( https://developers.google.com/edge/litert/next/npu), AOT compilation reduces initialization overhead and memory consumption, while JIT compilation allows model distribution without pre-prepared processor-specific binaries but introduces additional processing during initialization.
Although the November 24 release notes announce optimized Gemma 4 E2B compilation support for both Tensor G5 and G6, Google's detailed custom checkpoint compilation guide primarily targets Tensor G6. The documentation recommends pre-compiled language models for Tensor G5 devices.
Access to the Tensor SDK compiler remains gated by Google's Beta testing program. Local compilation requires an x86-64 Linux workstation with at least 16 GB of RAM; Google recommends 64 GB or more for large model inputs. Developers on Windows or macOS can use Google Colab as a remote Linux compilation environment. Device-side benchmarking is performed on a computer connected to a Pixel 10 or Pixel 11 with USB debugging enabled.
Licensing and Distribution Terms
According to Google's release notes, the revised SDK and compiler terms allow third-party distribution and internal benchmarking but retain restrictions on publishing benchmark results externally. The public Tensor SDK and Compiler License Agreement (last updated October 28) Section 4.16 prohibits publishing benchmark comparisons between Google Tensor and other devices. Section 4.17 separately restricts distribution of Tensor-related performance data. The public license still limits SDK redistribution, while the November 24 release notes state that third-party distribution is now permitted.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.