Google 于 2026 年 7 月 9 日发布 LiteRT.js,这是其端侧推理库 LiteRT 的 JavaScript 绑定,通过 WebAssembly 在浏览器中直接执行 .tflite 模型。
Google 发布 LiteRT.js:通过 WebGPU 在浏览器中运行 .tflite 模型的 JavaScript 绑定
Google 于 2026 年 7 月 9 日发布 LiteRT.js,这是其端侧推理库 LiteRT 的 JavaScript 绑定,通过 WebAssembly 在浏览器中...
今日 AI 情报摘要
Google 于 2026 年 7 月 9 日发布 LiteRT.js,这是其端侧推理库 LiteRT 的 JavaScript 绑定,通过 WebAssembly 在浏览器中直接执行 .tflite 模型。
Google released LiteRT.js,:https://developers.google.com/edge/litert/web a JavaScript binding of LiteRT. LiteRT is Google’s on-device inference library, previously called TensorFlow Lite.
It is not a new model format. Rather, Google compiled its existing native runtime to WebAssembly and exposed it to JavaScript.
Earlier web AI solutions, including TensorFlow.js, relied on JavaScript-based kernels. Google describes those as less performant. LiteRT.js instead ships the native cross-platform runtime with its optimizations intact.
Consequently, web apps inherit work done elsewhere. Performance upgrades, quantization improvements, and hardware optimizations built for Android, iOS, and desktop arrive on the web too.
Under that runtime, LiteRT.js targets three backends:
Two related rules govern dispatch. First, LiteRT.js does not support partial delegation. A graph cannot split across CPU and GPU.
Second, delegation is all-or-nothing per model. If a model cannot be fully delegated to the chosen accelerator, LiteRT falls back to wasm execution. The CPU path has the widest operator coverage.
Given those backends, Google team reports two distinct results.
Against other web runtimes, LiteRT.js is up to 3x faster across CPU and GPU inference. That figure covers classical computer vision and audio processing models.
Against its own CPU execution, GPU or NPU delivers a 5–60x speedup . That applies to demanding real-time work like object tracking and audio transcription.
Both benchmarks ran in a controlled browser environment on a 2024 MacBook Pro with M4 Apple Silicon. Google notes results vary with local GPU, thermal throttling, and driver optimization. A “10x” figure circulating alongside the launch does not appear in the announcement.
LiteRT Torch converts PyTorch models to .tflite in a single step.
However, the prerequisites are strict. Your model must be exportable with torch.export.export , meaning TorchDynamo-exportable. It cannot contain Python conditional branches that depend on runtime tensor values. It also cannot have dynamic input or output dimensions, including the batch dimension.
For size, AI Edge Quantizer configures quantization schemes across different model layers. Pretrained .tflite models are also available on Kaggle and the LiteRT Hugging Face Community.
Once converted, the runtime code is short. This is the WebGPU path, verified against @litertjs/core v2.5.2:
That last block deserves attention. LiteRT.js does not garbage-collect tensors. Every Tensor must be deleted explicitly, or the app leaks device memory. The snippet in Google’s announcement post omits this step.
WebNN needs one extra flag. LiteRT.js requires JSPI, which bridges synchronous kernel scheduling with asynchronous device polling:
Before writing pre-processing, test with fake inputs. Run npm i @litertjs/model-tester , then npx model-tester . It runs your model on WebNN, WebGPU, and CPU using random inputs. Use model.getInputDetails() to read input names and shapes.
Those APIs back four demos Google shipped at launch:
Those demos raise an obvious question for existing web ML teams.
Importantly, the two are not mutually exclusive. Google positions LiteRT.js as a replacement for TF.js Graph Models specifically, not the whole library.
TensorFlow.js remains the recommended tool for pre- and post-processing. The @litertjs/tfjs-interop package passes tensors between them via runWithTfjsTensors . Avoid tensor.dataSync , which carries a significant penalty on the WebGPU backend.
The embed below animates the six pipeline stages across each backend.

Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.




情报判断
Aioga 编辑摘要:Google 于 2026 年 7 月 9 日发布 LiteRT.js,这是其端侧推理库 LiteRT 的 JavaScript 绑定,通过 WebAssembly 在浏览器中直接执行 .tflite 模型。 Aioga 将其归入「产品更新」方向,重点关注它对真实使用和行业竞争的影响。
背景分析:模型与研究类动态需要结合能力边界、开放方式、成本、可用性和真实任务表现判断,单项指标领先不等于已经形成稳定采用。
Aioga 判断:这条动态更适合作为行业观察信号,当前信息足以建立线索,但不足以推导长期结论。
影响分析:对相关团队而言,短期应先核对来源、可用范围和实际成本,再判断是否值得接入或跟进。 后续观察:继续观察官方文档、实际可用性、价格变化、开发者反馈和竞品回应。
来源与版权说明
本页正文由公开来源页面提取并按原有信息整理,同时保留来源、发布时间和原文入口。版权归原作者及来源网站所有,请通过原文链接核验和阅读来源版本。
抓取通道: RSS · 原始域名: marktechpost.com
来源: MarkTechPost(RSS)
原文链接: 打开原始来源
Aioga 归档: 查看情报页
Content record: source-page · Updated: 2026-07-15T07:36:17.000Z

API 中转站
统一接入主流 AI 模型 API,为开发、测试与生产环境提供稳定调用入口。
立即访问 api.w173.com