huggingface / huggingface/transformers.js-examples

WebGPU error in chromium 135

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

Hey there, I tried running the [WebGPU demo](https://huggingface.co/spaces/webml-community/text-to-speech-webgpu) but I end up getting an error when I hit "generate".

I'm running this under x86_64 linux with wayland with WebGPU using the Vulkan backend.

This is the stack trace:

```
worker-BKr81zhZ.js:8 Uncaught (in promise) TypeError: A float16 tensor's data must be type of function Float16Array() { [native code] }
at new U (worker-BKr81zhZ.js:8:18990)
at new U (worker-BKr81zhZ.js:2768:70178)
at A.addPastKeyValues (worker-BKr81zhZ.js:2763:36035)
at A.W [as _forward] (worker-BKr81zhZ.js:2763:21495)
at A.forward (worker-BKr81zhZ.js:2763:28162)
at A.generate (worker-BKr81zhZ.js:2763:34392)
at J_.generate (worker-BKr81zhZ.js:2774:943)
at nm.generate (worker-BKr81zhZ.js:2778:625)
at worker-BKr81zhZ.js:2778:2410
```

As well here's a screenshot from the debugger's stack

Image

Is this a case of the example being out of date or is there something I should change on my end in the browser flags to fix this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.