Skip to content

Commit 51741f2

Browse files
authored
Merge pull request #22 from ibelem/fix-400x
Reducing Web AI Framework Overhead by 99%
2 parents 17e8335 + acefbcb commit 51741f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/en/blog/onnx2webnnreducing-web-ai-framework-overhead-by-400x.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: ONNX2WebNN - Reducing Web AI Framework Overhead by 400x
2+
title: ONNX2WebNN - Reducing Web AI Framework Overhead by 99%
33
description:
44
'WebNN is a privacy-first browser API enabling hardware-accelerated, client-side AI inference. While frameworks
55
offer convenience, they inflate bundle sizes (2-20 MB) and slow startup. Alternatively, using WebNN directly in
@@ -18,7 +18,7 @@ import InfoIcon from '../../../app/_components/icons/info.jsx'
1818

1919
<TopContent lang={props.params.lang} {...metadata} />
2020

21-
![ONNX2WebNN - Reducing Web AI Framework Overhead by 400x](/blog/onnx2webnn/article.png)
21+
![ONNX2WebNN - Reducing Web AI Framework Overhead by 99%](/blog/onnx2webnn/article.png)
2222

2323
Machine learning in web browsers has come a long way from the early days of running everything on CPUs through JavaScript. The Web Neural Network (WebNN) API represents the latest evolution - a browser standard that taps directly into hardware acceleration, whether that's your CPU, GPU, or NPU.
2424

content/zh/blog/onnx2webnnreducing-web-ai-framework-overhead-by-400x.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: ONNX2WebNN - 将 Web AI 框架开销减少 400
2+
title: ONNX2WebNN - 将 Web AI 框架开销降低至 1/400
33
description:
44
'WebNN 是一个隐私优先的浏览器 API,支持硬件加速的客户端 AI 推理。虽然框架提供了便利,但它们会增加包大小(2-20 MB)并减慢启动速度。
55
相比之下,直接在原生 JavaScript 中使用 WebNN 的开销极小(数十到数百 KB)。ONNX2WebNN 和基于浏览器的代码生成器等工具可以自动将 ONNX 模型
@@ -17,7 +17,7 @@ import InfoIcon from '../../../app/_components/icons/info.jsx'
1717

1818
<TopContent lang={props.params.lang} {...metadata} />
1919

20-
![ONNX2WebNN - 将 Web AI 框架开销减少 400](/blog/onnx2webnn/article.png)
20+
![ONNX2WebNN - 将 Web AI 框架开销降低至 1/400](/blog/onnx2webnn/article.png)
2121

2222
浏览器中的机器学习从早期依赖 JavaScript 在 CPU 上运行的时代至今,已经取得了长足的进步。Web 神经网络(WebNN)API 代表了最新的演进 - 一个直接利用硬件加速的 Web 标准,无论是 CPU、GPU 还是 NPU。
2323

0 commit comments

Comments
 (0)