Installation
To use WebNN before the Origin Trial milestone, complete these setup requirements.
Install GPU and NPU drivers for optimal compatibility and performance
Windows OS
| IHVs | GPU Driver | NPU Driver |
|---|---|---|
| Intel® Arc™ & Iris® Xe Graphics | Intel® Core™ Ultra NPU Driver | |
| TBD | TBD | |
| TBD | TBD | |
| TBD | TBD |
Enable WebNN
Install the latest Chrome Canary or Edge Canary
Navigate to about://flags in browser address bar
Search for Enables WebNN API and change it to Enabled
Exit browser
Run WebNN on Windows ML backend (CPU, GPU and NPU)
Window 11, version 24H2 or newer
Install Windows App SDK
| Chrome Version | Edge Version | Known compatible Windows App SDK Version |
|---|---|---|
| Canary | Canary | 1.8.1 [x64 ] [x86 ] [arm64 ] |
Install Execution Providers via the EP Catalog executable file
- Visit WebNN Execution Provider Catalog
- Download the ExecutionProviderCatalog.exe
- Run the executable file to install Execution Providers
C:\Users\webnn\Downloads>ExecutionProviderCatalog.exeThe Execution Providers (EPs) to be installed depend on your computer’s hardware configuration. It will display the following similar logs:
Creating dynamic dependency on Microsoft.WindowsAppRuntime.1.8_8wekyb3d8bbwe
Successfully created package dependency with ID: T:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Successfully added package dependency. Package: Microsoft.WindowsAppRuntime.1.8_8000.625.330.0_x64__8wekyb3d8bbwe
Package dependency will be automatically cleaned up when process exits
Got default ExecutionProviderCatalog
Found 1 providers
Provider 1:
Name: OpenVINOExecutionProvider
Calling EnsureReadyAsync...
EnsureReadyAsync started successfully
Waiting for EnsureReadyAsync to complete...
[SUCCESS] Provider ready successfully
Library Path: C:\Program Files\WindowsApps\MicrosoftCorporationII.WinML.Intel.OpenVINO.EP.1.8_1.8.15.0_x64__8wekyb3d8bbwe\ExecutionProvider\onnxruntime_providers_openvino_plugin.dllThe installation time may vary depending on your network speed
Navigate to about://flags in browser address bar
Search for ONNX Runtime backend for WebNN and change it to Enabled
Relaunch browser
Run WebNN on LiteRT backend (CPU and GPU)
Windows 11 versions prior to 24H2, Windows 10 and Linux
Navigate to about://flags in browser address bar
Search for ONNX Runtime backend for WebNN and change it to Disabled
Search for DirectML backend for WebNN and change it to Disabled
Relaunch browser
Debug
If you are a developer, visit the debug page for information about WebNN debugging options.
Last updated on