Skip to content

Commit 1159b36

Browse files
authored
Consolidate WebNN installation instructions (#325)
* Consolidate WebNN installation instructions * Remove source link
1 parent 4b9bc05 commit 1159b36

1 file changed

Lines changed: 1 addition & 47 deletions

File tree

README.md

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -44,53 +44,7 @@ WebNN Samples is currently hosted on GitHub Pages, with model files stored on Am
4444

4545
### WebNN Installation Guides
4646

47-
To get started with WebNN on Intel AI PCs you will need:
48-
* Window 11, version 21H2 or newer
49-
* It's recommended to install the latest [Intel® Arc™ & Iris® Xe Graphics on Windows](https://www.intel.com/content/www/us/en/download/785597/intel-arc-iris-xe-graphics-windows.html) for improved WebNN compatibility and performance
50-
51-
1. Download and install the latest [Chrome Canary](https://www.google.com/chrome/canary/) or [Edge Canary](https://www.microsoft.com/en-us/edge/download/insider?form=MA13FJ)
52-
2. Navigate to `about://flags` in browser address bar
53-
3. Search for `Enables WebNN API` and change it to "Enabled"
54-
4. Exit browser
55-
56-
#### Running WebNN on CPU or GPU
57-
1. Launch Chrome Canary or Edge Canary
58-
59-
* **Notes**:
60-
61-
1. Running WebNN on Qualcomm GPUs is disabled by default. You can use the `--disable_webnn_for_gpu=0` flag to bypass.
62-
2. If you run WebNN on Intel GPUs with old driver versions between 31.0.101.5518 and 32.0.101.6083, the performance may not be good enough, because the DirectML execution of metacommands on these drivers is disabled by default due to some stability bugs. You can use `--disable_dml_meta_commands_for_gpu=0` to bypass. However, the functionality is not guaranteed.
63-
64-
#### Running WebNN on NPU
65-
At present, the [image classification](https://webmachinelearning.github.io/webnn-samples/image_classification/) and [object detection](https://webmachinelearning.github.io/webnn-samples/object_detection/) samples support NPU.
66-
67-
* Window 11, version 24H2 or newer
68-
* It's recommended to install the latest [Intel® Core™ Ultra NPU Driver on Windows](https://www.intel.com/content/www/us/en/download/794734/intel-npu-driver-windows.html) for improved WebNN compatibility and performance
69-
70-
1. Download the latest redistributable [Microsoft.AI.DirectML](https://www.nuget.org/packages/Microsoft.AI.DirectML/1.15.2), rename the "microsoft.ai.directml.\<version>.nupkg" to "microsoft.ai.directml.\<version>.nupkg.zip" and extract it
71-
2. Copy `\bin\x64-win\DirectML.dll` to Canary's version directory:
72-
73-
Chrome: `%LOCALAPPDATA%\Google\Chrome SxS\Application\<version>\`
74-
75-
Edge: `%LOCALAPPDATA%\Microsoft\Edge SxS\Application\<version>\`
76-
77-
- `%LOCALAPPDATA%` means `C:\Users\<username>\AppData\Local\`
78-
- Note that Canary frequently updates automatically. When this occurs, you'll need to recopy the DirectML.dll to the new version's directory
79-
3. Launch Canary in Windows Command Line:
80-
81-
Chrome:
82-
```bash
83-
"%LOCALAPPDATA%\Google\Chrome SxS\Application\chrome.exe" --use-redist-dml
84-
```
85-
Edge:
86-
```bash
87-
"%LOCALAPPDATA%\Microsoft\Edge SxS\Application\msedge.exe" --use-redist-dml
88-
```
89-
90-
* **Notes**:
91-
92-
1. Running WebNN on NPU requires a higher version of DirectML.dll than the one in the Windows system. Using the `--use-redist-dml` flag will allow Canary to load the downloaded DirectML.dll with a sufficiently high version.
93-
2. Since the NPU drivers may be blocked by default if they are not the latest [Intel® Core™ Ultra NPU Driver on Windows](https://www.intel.com/content/www/us/en/download/794734/intel-npu-driver-windows.html), you can use the `--disable_webnn_for_npu=0` flag to bypass. However, the functionality is not guaranteed.
47+
Please visit [WebNN Installation Guides](https://webnn.io/en/learn/get-started/installation) to get started with WebNN on Intel AI PCs.
9448

9549
## Support and Feedback
9650
If you encounter any issues or have feedback on the WebNN Samples, please open an issue on the repository. We appreciate your input and will strive to address any problems as quickly as possible.

0 commit comments

Comments
 (0)