AI
Google Open-Sources ML Drift to Unify GPU AI Inference Across Devices
A new cross-platform GPU engine aims to simplify how developers deploy machine learning inference on heterogeneous mobile and desktop hardware.
InfoQ
Google has unveiled ML Drift, an open-source GPU acceleration framework that abstracts away the complexity of running AI models on varied hardware. The tool, released under Apache 2.0, sits at the heart of LiteRT and brings unified on-device inference to both mobile and desktop environments.
The Problem It Solves#
Developers building edge AI applications face a fragmented landscape: different GPU architectures from Arm, Intel, and Qualcomm, varying driver versions, and competing low-level graphics APIs. ML Drift bridges this gap by supporting OpenGL ES, OpenCL, Metal, and WebGPU in a single framework, allowing engineers to write code once without worrying about the specific hardware where it will ultimately run.
Technical Foundation#
Under the hood, ML Drift introduces several architectural improvements. It unifies shader handling through tensor virtualization, adds support for five-dimensional tensors (crucial for spatial and transformer models), and includes extensible custom operations. The framework also incorporates hardware-specific tuning for major GPU vendors to maximize performance on their respective platforms.
On desktop, ML Drift leverages Dawn—Chromium's WebGPU implementation—to provide a unified API layer across Windows and Linux, sidestepping the need to code directly against DirectX or Vulkan. macOS retains native Metal support for optimal performance.
Real-World Performance#
Google has been quietly deploying ML Drift across its own products for some time. In YouTube Shorts, the framework cuts segmentation-effect latency by up to 40% on Android and iOS. Google Photos sees computational photography pipelines speed up by two seconds, while Adobe's Lightroom and Photoshop report 30% improvements on AI photo-editing features like subject and sky selection.
Snapchat achieved a 30% reduction in model latency for face and style-generation effects, enabling use of larger diffusion models on Android. Benchmarks using Gemma models show ML Drift consuming 12% less memory than competing frameworks like llama.cpp and MLX LM.
What's Changing#
Google is discontinuing updates to the legacy TensorFlow Lite GPU delegate, directing developers toward ML Drift and LiteRT instead. Engineers migrating existing models can use the , while those building custom runtimes have access to the on GitHub.

