Skip to content

[WebGPU] Error running Xenova/musicgen-small #1308

Open
@vonner04

Description

@vonner04

System Info

@huggingface/transformers": "^3.5.1"
"react": "^18.2.0"

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

I am using the musicgen-web example from the example in transformer.js repo.

I updated the imports accordingly to the huggingface/transformers version in system info.

When I change the device from wasm to webgpu the music that gets generated is just a loud electrical hum.

2025-05-04.10-50-35.mp4

Reproduction

Steps to reproduce the behaviour:

  1. clone the repository
  2. use the musicgen-web example
  3. update the dependency via npm install @huggingface/transformers
  4. change device wasm to device: webgpu
  5. npm install and run the example
  6. generate music with any configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions