Replies: 3 comments 5 replies
-
The answer is:I am using kokoro-js, which uses latest transformers-js, which by default is using onnxruntime-node version 1.21, which doesn't have this capability yet. So I update the package.json to override to 1.22, and now I have a likely working webgpu backend.Except now my model is failing on both DML and webgpu backends in the same exact way, but still succeeding in the cpu backend....:
|
Beta Was this translation helpful? Give feedback.
-
Hi @ExeVirus, thank you for the feedback. There are 2 different problems:
|
Beta Was this translation helpful? Give feedback.
-
Further update, probably an actual bug in the webgpu implementation. I am converting the kokoro onnx model to different onnx opsets to try to avoid whatever error is baked into dml and webgpu backends, found a bug related to opset 11: "Error: WebGPU validation failed. Error while parsing WGSL: :49:43 error: expected ';' for variable declaration Some sort of bug with autogeneration of that WGSL code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, specifically @fs-eire,
Reading the current documentation on https://www.npmjs.com/package/onnxruntime-node,
I see that webGPU support is "experimental". So I try the @dev branch. Looks like webGPU is still not supported (this on a Nvidia 1660 Super with current drivers).
Then I try building from source, in release:
build.bat --parallel --build_nodejs --config Release
, take the resulting onnxruntime-common and onnxruntime-node dists/bin/lib and overwrite the contents of my test section (working with CPU EP no issue).That still doesn't give
webgpu
as a "supportedDevice" deep in transformers.js. Then I see a commit here in the last two weeks by you related to how to build that webgpu binding by adding:build.bat --parallel --build_nodejs --config Release --use_webgpu
, currently running that build and seeing where it takes me...Turing
Architecture, to be enumerable and usable on a Windows 10** machine with latest Node and this binding (albeit with possible bugs related to "experimental")?Thank you in advance,
Beta Was this translation helpful? Give feedback.
All reactions