Skip to content

[WebGPU/js] failed to inference ONNX model: Error: [WebGPU] Kernel "[Add] /decoder/F0.1/Add" failed. Error: Can't perform binary op on the given tensors. - Kokoro TTS #23403

Open
@xenova

Description

Describe the issue

Unable to run https://huggingface.co/onnx-community/Kokoro-82M-ONNX on WebGPU

2025-01-17 02:57:22.385599 [E:onnxruntime:, sequential_executor.cc:505 ExecuteKernel] Non-zero status code returned while running Add node. Name:'/decoder/F0.1/Add' Status Message: Failed to run JSEP kernel

The nodes are two float32 tensors, so I don't see why this should cause an issue.

Image

cc @guschmue

To reproduce

https://jsfiddle.net/hj9wfn36/

Urgency

Blocks WebGPU support for Transformers.js and kokoro-js

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.21.0-dev.20250114-228dd16893

Execution Provider

'webgpu' (WebGPU)

Metadata

Assignees

No one assigned

    Labels

    ep:WebGPUort-web webgpu providerplatform:webissues related to ONNX Runtime web; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions