AI Cloud Architect

LiteRT.js, Google's high performance Web AI Inference

GoogleAnnouncement by Ping Yu, Marko Ristić, Matthew Soulanille and Chintan ParikhGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

LiteRT.js lets web developers run .tflite and PyTorch-converted models in browsers via WebAssembly, using XNNPACK for CPU, WebGPU for GPU, and experimental WebNN for NPU.

Who it is for

Web developers who want to run models client-side in the browser instead of on a server.

Key points

  • Google says benchmarks show up to 3x speedup over other web runtimes on CPU and GPU, measured on one Apple M4 MacBook Pro.
  • Google says WebGPU or WebNN gives 5-60x speedup over CPU for real-time tasks, in the same single-device test.
  • WebNN support is described as experimental in Chrome and Edge.