




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
演講人:付俊偉胡寧馨,
英特爾首席工程師,
W3C
Web
Neural
Network
(WebNN)
標(biāo)準(zhǔn)的起草和主
要編輯者,
Chromium
committer
and
Chromium
WebNN
組件的主要擁有者張敏,
IntelWebNN
團隊的技術(shù)經(jīng)理,
Chromium
and
ONNX
Runtime
WebNN
EP
的開發(fā)者,WebNN
developer
preview的作者付俊偉,
英特爾高級軟件工程師,
Chromium
committer
and
Chromium
WebNN的
基礎(chǔ)架構(gòu)設(shè)計和Chromium
Shape
Detection
API
主要開發(fā)者
03
如何使用WebNN
02
WebNN的架構(gòu)設(shè)計
04
WebNN的性能對比
01
WebNN出現(xiàn)的背景目
錄WebNN
ExecutionProviderofONNX
RuntimeWebwithGPUaccelerationfrom
DirectML.
Runningon
Intel?CoreUltra7
processor
155Hwith
integratedArcGPU.https://microsoft.github.io/webnn-developer-preview/WebNNOperationmatMulgathersigmoidsoftmaxDirectMLGEMMGATHERLOGISTICSOFTMAXTFLiteBATH_MATMULGATHERACTIVATION_SIGMOIDACTIVATION_SOFTMAXCoreMLmatmulgather_along_axissigmoidsoftmaxStableDiffusioni
Image
DecoderImageGenerationText
EncoderAcat
under
the
snowUnetStep1UnetStep4UnetStep2UnetStep3框架WebAPIAPIextensionsWebGPUWebNNWeb引擎Web
Browser(e.g.,Chrome/Edge)JavaScriptRuntime(e.g.,
Electron/Node.js)運用場景系統(tǒng)MLAPIs硬件Transformers.jsTensorFlow.jsMediaPipeWebONNXRuntime
WebWebAssemblyBackground
SegmentationGPUNPUImageClassificationCPUNoiseSuppressionOtherML
OSAPIsNatural
LanguageObject
DetectionWindowsStudio
EffectsTFLiteCoreMLDirectMLComputational
Graph(Web)
inputoutput
WebNN
為Web帶來了神經(jīng)網(wǎng)絡(luò)的統(tǒng)一抽象CompiledGraph
(Native)device
type:
cpu/gpu/npupowerpreference:high-perf/low-powerOutputBuffers
(CPU/GPU)InputBuffers
(CPU/GPU)MLGraphMLContextMLGraphBuildertmptmpWebNN
API
二
Other
Web
APIFused
conv2doutputbiasfilterinput↓
createbuild
↓compute
Dataflow
Call
flowcompileconv2daddreluRendererProcessGPU/Utility
ProcessApps/FrameworksNativeMLAPIsOS
DriversHardwareWeb
ApplicationWebNNMojo
ClientWebNNMojo
ServerJS
ML
FrameworksMLGraphBuilderMLGraphMLContext
↓
BNNS/MPSDirectMLMCDMDirectMLBackendCoreMLCoreMLBackendTFLiteBackendTFLiteXNNPACK/
DelegateNPUCPUGPUmacOS
WindowsAndroid/ChromeOS/LinuxChromiumIPCWasmKernelsinputWebNN
GraphIntermediateWasmKernelsBrowserswithWebNN
supportWeb
ApplicationTensorFlowLiteWebONNXRuntime
WebNPUGPUCPUNative
CPUKernelsNativeNPUKernelsNative
GPUKernels
母
ONNX
1.18
release
WasmKernelsWebGL
KernelsWebGPU
KernelsWebNN
GraphPost-ProcessingConv2dMatMulTensorF2Pre-processingIntegrationStatusPrototype
Availableintermediateintermediateweightsweightsbiasweb
Assemblybackend
web
NN
backendWebNN
ExecutionProviderofONNX
RuntimeWebwithGPUaccelerationfrom
DirectML.
Runningon
Intel?CoreUltra7
processor
155Hwith
integratedArcGPU.https://microsoft.github.io/webnn-developer-preview/VanillaJS(plainJavaScript)useofWebNNAPI,with
NPUaccelerationfrom
DirectML.Runningon
Intel?CoreUltra7
processor
155Hwith
integrated
Intel?AI
Boost
NPU.4.4.53.03.1
3.31.2
3.03.23.03.23.03.12.
.03.12.
.03.12.8
2.93.12.92.52.52.72.32.21.81.01.01.01.01.01.01.01.01.01.01.01.01.01.01.0The
average
performanceof
listed
15
models
onwebNN
Oncpu
isabout
93%of
nativeXNN
packMediaPipeModelsInferencePerformance(Normalized
/HigherisBetter)100.0%90.0%
80.0%
70.0%
60.0%
50.0%
40.0%
30.0%
20.0%
10.0%
0.0%?Browser:
Chrome
Canary
118.0.5943.0?DUT:Dell/Linux/i7-1260P,
singlep-core?Workloads:
MediaPipe
solutionmodels
(FP32,batch=1)
WebNNXNNPackNative
XNNPackWebNNvsNative5.04.5
4.03.53.02.5
2.0
1.5
1.0
0.5
0.0WebNNvs.
Nat
ive
RatioInferenceSpeedup3.2
3.3
WasmSIMD?CPU:Intel(R)Core(TM)Ultra7
155H
3.80
GHz?
GPU:
Intel(R)
Arc(TM)
Graphics
WebNN
GPU
Native
DirectML
WebNN
GPU
vs.
Native
DirectML?GPUDriver:3512weoNN
Direct
ML
is
about83%
of
native
DML
On87.9
87.3
87.4
88.882.6
82.471.4100001000100101120.0100.080.060.040.020.00.095.089.5
87.676.5?
Browser:Chrome
Canary126.0.6459.0?
OS:Windows11Pro23H2?
DUT:
Asus
Zenbook88.178.672.0
71.591.4
93.286.779.0WebNN
DirectMLvs.
Native
DirectMLInferenceT
ime(ms)(Logscale)95.673.0Percentage(%)91.585.381.575.881.586.1%73.4%62.7%?
Browser:Chrome
Canary126.0.6459.0?
OS:Windows11Pro23H2?
DUT:
Asus
Zenbook?CPU:Intel(R)Core(TM)Ultra7
155H
3.80
GHz?
NPU:Intel(R)AI
Boost?
NPU
Driver:381The
averageperformance
oflisted
4models
onWebNNDirectMLis
about
80%
of
native
DML
onMTL
NPUMobileNetV2SqueezeNet
1.0ResNet50v1EffiecientNet
Lite4 WebNN
DirectML
NPUNative
NPUWebNN
NPUvs
Native100.0%90.0%80.0%
70.0%
60.0%
50.0%
40.0%
30.0%
20.0%
10.0%
0.0%8.007.006.005.004.003.002.001.000.00WebNNDirectMLvs
Nativeon
MTLNPUWebNNvs
Nat
ive
(%)InferenceT
ime
(ms)95.8%SpeechtoText
PoC
Demofor
KhanAcademy
Khanmigo.WebNN
ExecutionProviderofONNX
RuntimeWebwith
NPUaccelerationfrom
DirectML.
Runningon
Intel?CoreUltra7
processor
155Hwith
integrated
Intel?AI
Boost
NPU.?
在Microsoft
Edge
和
chrome
開發(fā)版本上試用
weoNN?
打開about://flags
網(wǎng)址
和
搜索Enables
web
NN
APPI"
、
weoNN
?
web
NN
標(biāo)
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 右下肢感染患者的護理
- 體育經(jīng)紀(jì)行業(yè)管理
- 搶救物品操作技術(shù)
- 2024年山東濟南重工集團有限公司招聘考試真題
- 2024年鄰水縣招聘社區(qū)工作者考試真題
- 2025年03月煙臺萊陽市京劇團工作人員(2人)筆試歷年參考題庫考點剖析附解題思路及答案詳解
- 2025大學(xué)生國家助學(xué)貸款合同樣本下載
- 2025年北京市租賃合同標(biāo)準(zhǔn)范本示例
- 2025年03月浙江溫州市中共蒼南縣紀(jì)委公開招聘編外用工3人筆試歷年參考題庫考點剖析附解題思路及答案詳解
- 2025年小學(xué)教師資格考試《綜合素質(zhì)》教育活動設(shè)計題(含答案)教育倫理案例分析
- 《靜電的危害及消除》課件
- Booking a room at the hotel(入住酒店英語)
- 員工身心健康情況排查表
- 《私募股權(quán)投資基金基礎(chǔ)知識》教材知識要點精講
- 危險化學(xué)品經(jīng)營企業(yè)安全評價細(xì)則
- 幼兒園安全教育課件:《私自離園危險多》
- 23秋國家開放大學(xué)《液壓氣動技術(shù)》形考任務(wù)1-3參考答案
- 瀘西電解鋁廠施工方案
- 035-花籃螺桿懸挑腳手架施工技術(shù)交底
- 人教版四年級數(shù)學(xué)下冊 (小數(shù)的意義)小數(shù)的意義和性質(zhì)課件
- 10以內(nèi)數(shù)字的分解和組成
評論
0/150
提交評論