Google's on-device AI runtime tool expands medical model support and adds a way to produce identical deployment files from identical inputs. App developers processing diverse data offline gain model options.

Deployment teams face changes in managing execution settings and build results.

1. More paths for running medical models offline

Released on December 3, LiteRT-LM 0.20.1 adds on-device support for MedGemma 2 E4B.

Google's release notes describe offline healthcare AI workflows across mobile, desktop, and web, spanning text, medical images, audio, and tool calls.

The key addition is a path for using medical models that handle multiple input types on the device. Developers building applications that work without a network connection should review this change.

The release notes provide no runtime performance or medical accuracy figures. Adoption decisions requiring those metrics need separate validation.

2. Read NPU execution settings from the bundle

The new LlmNpuExecutorMetadata reads settings from model deployment bundles when NPU execution settings are not explicitly specified. This information resides in .litertlm bundle metadata, which describes the file.

Missing execution settings are retrieved from the deployment file.

Hand-written NPU components are disabled by default unless enabled through metadata or runtime settings. Developers migrating existing configurations should check where to store activation information.

An exception to this disabled default is updating the KV cache, which stores information from previous computations, in ring buffer models that cyclically reuse storage.

3. Python 3.10 users must choose between upgrading and pinning

The release notes announce the end of Python 3.10 support and a FutureWarning when importing the module in that environment. The 0.20.x series is the last to support Python 3.10.

The recommended path is to upgrade to Python 3.11 or later before v0.21.0 arrives, or pin the package to litert-lm==0.20.*. Teams maintaining application deployment environments must choose a runtime upgrade or package pinning.

4. Fix for double-counted initialization time

The C, Kotlin, Swift, and Python libraries and litert-lm benchmark fix a bug that counted engine creation time twice in benchmark initialization timing.

Measurements on these paths may now use a different calculation. Account for this change when comparing figures across versions.

5. Set a timestamp variable to reproduce identical bundles

litert-lm-builder supports builds that produce byte-identical .litertlm files from identical inputs. To use this feature, set the following timestamp variable in the build environment:

SOURCE_DATE_EPOCH

This goes beyond bundling the same model: it allows the generated file contents themselves to be reproduced.

In return for reproducible deployment artifacts, build teams must manage this environment variable as part of the build configuration.

This update expands on-device model choices and deployment reproducibility, while requiring development teams to manage execution settings alongside the build environment.