Description
System Info
Macos 15.3.2, with Intel UHD Graphics 630 1536 MB
chrome v135.
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
First I changed @xenova/transformers to @huggingface/transformers in worker.js file since @xenova/transformers gives an error complaining entry point not found.
After npm install, I run the program with npm run dev. When I open the browser at port 5173, I see https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/dist/ort-wasm-simd-threaded.jsep.mjs and https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/dist/ort-wasm-simd-threaded.jsep.wasm are downloaded. But there is not webgpu related files downloaded.
Does it mean webgpu is not used somehow?
I have turned on chrome #enable-unsafe-webgpu. And the version of chrome is 135.
Reproduction
source code: https://github.com/huggingface/transformers.js/tree/main/examples/webgpu-chat
replace @xenova/transformers with @huggingface/transformers in worker.js
npm install
npm run dev