WebNN: Enable running WPT tests on ORT backend with default EPs [chromium/src : main]

0 views
Skip to first unread message

จิตรกัญญา เลิศพันธ์ (Gerrit)

unread,
Dec 7, 2025, 5:48:20 PM (12 days ago) Dec 7
to Miao, Bin, AyeAye, chromium...@chromium.org, Hu, Ningxin, Jiewei Qian, blink-...@chromium.org
Attention needed from Miao, Bin

จิตรกัญญา เลิศพันธ์ added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
จิตรกัญญา เลิศพันธ์ . resolved

shopping pay 0939899209

Open in Gerrit

Related details

Attention is currently required from:
  • Miao, Bin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0a9620cd483414a7b3472836b42e6290dcf117e9
Gerrit-Change-Number: 7221693
Gerrit-PatchSet: 1
Gerrit-Owner: Miao, Bin <bin....@intel.com>
Gerrit-CC: Hu, Ningxin <ningx...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: จิตรกัญญา เลิศพันธ์ <jitrkun...@gmail.com>
Gerrit-Attention: Miao, Bin <bin....@intel.com>
Gerrit-Comment-Date: Sun, 07 Dec 2025 22:47:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Hu, Ningxin (Gerrit)

unread,
Dec 8, 2025, 3:49:02 AM (12 days ago) Dec 8
to Miao, Bin, จิตรกัญญา เลิศพันธ์, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org
Attention needed from Miao, Bin

Hu, Ningxin added 3 comments

Patchset-level comments
Hu, Ningxin . resolved

@bin....@intel.com, I uploaded a separate CL [1] to fix the GPU test failure / crash issue [2].

[1]: https://chromium-review.googlesource.com/c/chromium/src/+/7236019
[2]: https://issues.chromium.org/issues/466848120

File services/webnn/host/execution_provider_initializer.cc
Line 125, Patchset 1 (Latest): const bool ignore_ihv_eps =
command_line->HasSwitch(switches::kWebNNOrtIgnoreIhvEps);

// If ignore IHV EPs, return empty list.
if (ignore_ihv_eps) {
return {};
}
Hu, Ningxin . unresolved

Could we skip calling `gpu_host_->EnsureWebNNExecutionProvidersReady` in service-side instead?

File third_party/blink/web_tests/VirtualTestSuites
Line 5569, Patchset 1 (Latest): "--enable-features=WebMachineLearningNeuralNetwork,WebNNDirectML",
"--disable-features=WebNNOnnxRuntime"
Hu, Ningxin . unresolved

Should we also change NPU tests to ORT backend? At least we can test whether the NPU to CPU fallback path works.

Open in Gerrit

Related details

Attention is currently required from:
  • Miao, Bin
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0a9620cd483414a7b3472836b42e6290dcf117e9
    Gerrit-Change-Number: 7221693
    Gerrit-PatchSet: 1
    Gerrit-Owner: Miao, Bin <bin....@intel.com>
    Gerrit-CC: Hu, Ningxin <ningx...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: จิตรกัญญา เลิศพันธ์ <jitrkun...@gmail.com>
    Gerrit-Attention: Miao, Bin <bin....@intel.com>
    Gerrit-Comment-Date: Mon, 08 Dec 2025 08:48:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Miao, Bin (Gerrit)

    unread,
    Dec 8, 2025, 9:38:22 PM (11 days ago) Dec 8
    to Hu, Ningxin, จิตรกัญญา เลิศพันธ์, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org
    Attention needed from Hu, Ningxin

    Miao, Bin added 3 comments

    Patchset-level comments
    Hu, Ningxin . resolved

    @bin....@intel.com, I uploaded a separate CL [1] to fix the GPU test failure / crash issue [2].

    [1]: https://chromium-review.googlesource.com/c/chromium/src/+/7236019
    [2]: https://issues.chromium.org/issues/466848120

    Miao, Bin

    I see that your CL has been merged. I have updated and rebased this CL and now I'm collecting WPT baseline results again.

    File services/webnn/host/execution_provider_initializer.cc
    Line 125, Patchset 1: const bool ignore_ihv_eps =

    command_line->HasSwitch(switches::kWebNNOrtIgnoreIhvEps);

    // If ignore IHV EPs, return empty list.
    if (ignore_ihv_eps) {
    return {};
    }
    Hu, Ningxin . resolved

    Could we skip calling `gpu_host_->EnsureWebNNExecutionProvidersReady` in service-side instead?

    Miao, Bin

    You are right, there is no need to call `gpu_host_->EnsureWebNNExecutionProvidersReady`.

    File third_party/blink/web_tests/VirtualTestSuites
    Line 5569, Patchset 1: "--enable-features=WebMachineLearningNeuralNetwork,WebNNDirectML",
    "--disable-features=WebNNOnnxRuntime"
    Hu, Ningxin . resolved

    Should we also change NPU tests to ORT backend? At least we can test whether the NPU to CPU fallback path works.

    Miao, Bin

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hu, Ningxin
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0a9620cd483414a7b3472836b42e6290dcf117e9
      Gerrit-Change-Number: 7221693
      Gerrit-PatchSet: 3
      Gerrit-Owner: Miao, Bin <bin....@intel.com>
      Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
      Gerrit-CC: Jiewei Qian <q...@chromium.org>
      Gerrit-CC: จิตรกัญญา เลิศพันธ์ <jitrkun...@gmail.com>
      Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Comment-Date: Tue, 09 Dec 2025 02:38:01 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Hu, Ningxin <ningx...@intel.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Miao, Bin (Gerrit)

      unread,
      Dec 9, 2025, 12:24:29 AM (11 days ago) Dec 9
      to Dai, Feng, Hu, Ningxin, จิตรกัญญา เลิศพันธ์, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org
      Attention needed from Hu, Ningxin

      Miao, Bin added 1 comment

      Patchset-level comments
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hu, Ningxin
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0a9620cd483414a7b3472836b42e6290dcf117e9
      Gerrit-Change-Number: 7221693
      Gerrit-PatchSet: 3
      Gerrit-Owner: Miao, Bin <bin....@intel.com>
      Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
      Gerrit-CC: Dai, Feng <feng...@intel.com>
      Gerrit-CC: Jiewei Qian <q...@chromium.org>
      Gerrit-CC: จิตรกัญญา เลิศพันธ์ <jitrkun...@gmail.com>
      Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Comment-Date: Tue, 09 Dec 2025 05:24:18 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Hu, Ningxin (Gerrit)

      unread,
      Dec 19, 2025, 12:56:08 AM (yesterday) Dec 19
      to Miao, Bin, Reilly Grant, Chromium LUCI CQ, Dai, Feng, จิตรกัญญา เลิศพันธ์, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-revie...@chromium.org, blink-...@chromium.org
      Attention needed from Miao, Bin

      Hu, Ningxin added 1 comment

      Patchset-level comments
      File-level comment, Patchset 10 (Latest):
      Hu, Ningxin . resolved

      @rei...@chromium.org and @rafael....@microsoft.com, we found WebNN WPT results on win11-blink-rel trybots are varying and depending on the tasks (machines?).

      For example [the pooling operators test](https://ci.chromium.org/ui/p/chromium/builders/try/win11-blink-rel/b8695183454377310561/test-results?q=ExactID%3A%3A%2F%2F%5C%3Ablink_wpt_tests%21webtest%3A%3Avirtual%2Fwebnn-service-with-gpu%2Fexternal%2Fwpt%2Fwebnn%2Fvalidation_tests%23pooling.https.any.html%3Fgpu+VHash%3Acab06a293434e127), when running on task [754863214a2faf11](https://chromium-swarm.appspot.com/task?id=754863214a2faf11&o=true&w=true), it fails to load ORT and falls back to TFLite.
      ```
      [7740:7896:1217/195800.733:ERROR:services\webnn\ort\platform_functions_ort.cc:106] [WebNN] Failed to create package dependency for package: Microsoft.WindowsAppRuntime.1.8_8wekyb3d8bbwe
      [7740:7896:1217/195800.735:ERROR:services\webnn\webnn_context_provider_impl.cc:451] [WebNN] Failed to create ONNX Runtime context: Failed to get ONNX Runtime platform functions.
      ```
      However, when running on task [7548473783b52d11](https://chromium-swarm.appspot.com/task?id=7548473783b52d11&o=true&w=true), it loads and uses ORT successfully.

      Do you know the difference between the two tasks? We may need Chrome infra team's help to install WinAppRuntime as Rafael shared in then email thread. Then we can get stable ORT backend test results and do the rebaseline.

      WDYT?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Miao, Bin
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0a9620cd483414a7b3472836b42e6290dcf117e9
      Gerrit-Change-Number: 7221693
      Gerrit-PatchSet: 10
      Gerrit-Owner: Miao, Bin <bin....@intel.com>
      Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Reviewer: Miao, Bin <bin....@intel.com>
      Gerrit-CC: Dai, Feng <feng...@intel.com>
      Gerrit-CC: Jiewei Qian <q...@chromium.org>
      Gerrit-CC: Reilly Grant <rei...@chromium.org>
      Gerrit-CC: จิตรกัญญา เลิศพันธ์ <jitrkun...@gmail.com>
      Gerrit-Attention: Miao, Bin <bin....@intel.com>
      Gerrit-Comment-Date: Fri, 19 Dec 2025 05:55:58 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Reilly Grant (Gerrit)

      unread,
      Dec 19, 2025, 5:33:47 PM (11 hours ago) Dec 19
      to Miao, Bin, Rafael Cintron, Reilly Grant, Chromium LUCI CQ, Dai, Feng, Hu, Ningxin, จิตรกัญญา เลิศพันธ์, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-revie...@chromium.org, blink-...@chromium.org
      Attention needed from Hu, Ningxin and Miao, Bin

      Reilly Grant added 1 comment

      Patchset-level comments
      Hu, Ningxin . resolved

      @rei...@chromium.org and @rafael....@microsoft.com, we found WebNN WPT results on win11-blink-rel trybots are varying and depending on the tasks (machines?).

      For example [the pooling operators test](https://ci.chromium.org/ui/p/chromium/builders/try/win11-blink-rel/b8695183454377310561/test-results?q=ExactID%3A%3A%2F%2F%5C%3Ablink_wpt_tests%21webtest%3A%3Avirtual%2Fwebnn-service-with-gpu%2Fexternal%2Fwpt%2Fwebnn%2Fvalidation_tests%23pooling.https.any.html%3Fgpu+VHash%3Acab06a293434e127), when running on task [754863214a2faf11](https://chromium-swarm.appspot.com/task?id=754863214a2faf11&o=true&w=true), it fails to load ORT and falls back to TFLite.
      ```
      [7740:7896:1217/195800.733:ERROR:services\webnn\ort\platform_functions_ort.cc:106] [WebNN] Failed to create package dependency for package: Microsoft.WindowsAppRuntime.1.8_8wekyb3d8bbwe
      [7740:7896:1217/195800.735:ERROR:services\webnn\webnn_context_provider_impl.cc:451] [WebNN] Failed to create ONNX Runtime context: Failed to get ONNX Runtime platform functions.
      ```
      However, when running on task [7548473783b52d11](https://chromium-swarm.appspot.com/task?id=7548473783b52d11&o=true&w=true), it loads and uses ORT successfully.

      Do you know the difference between the two tasks? We may need Chrome infra team's help to install WinAppRuntime as Rafael shared in then email thread. Then we can get stable ORT backend test results and do the rebaseline.

      WDYT?

      Reilly Grant

      I have an open thread with the infra team to help get WinAppRuntime installed on the bots so we can get reliable results.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hu, Ningxin
      • Miao, Bin
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0a9620cd483414a7b3472836b42e6290dcf117e9
      Gerrit-Change-Number: 7221693
      Gerrit-PatchSet: 10
      Gerrit-Owner: Miao, Bin <bin....@intel.com>
      Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Reviewer: Miao, Bin <bin....@intel.com>
      Gerrit-CC: Dai, Feng <feng...@intel.com>
      Gerrit-CC: Jiewei Qian <q...@chromium.org>
      Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
      Gerrit-CC: Reilly Grant <rei...@chromium.org>
      Gerrit-CC: จิตรกัญญา เลิศพันธ์ <jitrkun...@gmail.com>
      Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Attention: Miao, Bin <bin....@intel.com>
      Gerrit-Comment-Date: Fri, 19 Dec 2025 22:33:37 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Hu, Ningxin <ningx...@intel.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages