TLDRocket
Sign in

Google Releases LiteRT.js: A JavaScript Binding of LiteRT That Runs .tflite Models in Browsers via WebGPU

MarkTechPost Michal Sutter

Google shipped LiteRT.js, letting .tflite AI models run straight inside your browser using WebGPU. No server round trips means faster, cheaper, more private AI in web apps.

Based on reporting by MarkTechPost, Michal Sutter — read the original for the full story.

Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error

Google just gave web developers a shortcut that skips the server entirely. LiteRT.js is a JavaScript binding for LiteRT — the on-device inference library formerly known as TensorFlow Lite — and it lets .tflite models run directly in the browser. Rather than writing a fresh set of JavaScript kernels like TensorFlow.js did, Google compiled its actual native runtime down to WebAssembly and exposed it to JS. That's a meaningful distinction: performance work done for Android, iOS, and desktop now shows up on the web for free.

Under the hood, LiteRT.js picks from three backends. CPU inference goes through XNNPACK with multi-threading and relaxed SIMD. GPU work runs on ML Drift, Google's GPU engine, via WebGPU. And NPU support rides on WebNN, which is still experimental in Chrome and Edge. The catch is that delegation is all-or-nothing — a model either runs entirely on one backend or falls back to wasm, with no splitting a graph across CPU and GPU. CPU still has the broadest operator support, which matters if your model uses less common ops.

On Google's own benchmarks, run on a 2024 MacBook Pro with an M4 chip, LiteRT.js beat other web runtimes by up to 3x on CPU and GPU inference for vision and audio models. Compared to its own CPU path, GPU or NPU acceleration delivered 5 to 60x speedups on heavier real-time tasks like object tracking and transcription. Google is careful to note these numbers move around depending on your GPU, thermal conditions, and driver quality — and a

Read more about this at: MarkTechPost

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.