-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught (in promise) Error: no available backend found. ERR: [webgpu] TypeError: Failed to fetch dynamically imported module: #761
Comments
As already mentioned in this comment, this will only work when onnxruntime-web 1.18.0 releases. |
@xenova also is it possible to install the onnxruntime-web from https://github.com/microsoft/onnxruntime/tree/rel-1.18.0 directly instead? |
@xenova I still get the error coz |
@xenova tried the same with 1.19.0-dev
I am a noob at javascript so I don't know how these |
@xenova can't run this example as well: I don't get it. I can easily run your huggingface spaces, then why not this? |
We recently updated the dependencies, so if you pull the latest changes from v3, delete your vite cache and try run it again, it should work. |
This is workaround: |
Thanks @congphuong , you are a fuckin life saver!!!!!!! |
@ucalyptus2 @congphuong Where did you made this changes? Thanks! |
System Info
Chrome v124
Environment/Platform
Description
backend-impl.ts:137 Uncaught (in promise) Error: no available backend found. ERR: [webgpu] TypeError: Failed to fetch dynamically imported module: http://localhost:5173/ort-wasm-simd-threaded.jsep.mjs at pt (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=61f84580:1386:13) at async e.create (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=61f84580:1906:20) at async createInferenceSession (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=61f84580:9952:10) at async constructSessions (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=61f84580:17549:21) at async Promise.all (index 0) at async Phi3ForCausalLM.from_pretrained (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=61f84580:17847:14) at async AutoModelForCausalLM.from_pretrained (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=61f84580:20680:14) at async Promise.all (index 1) at async load (http://localhost:5173/src/worker.js?worker_file&type=module:137:32)
Reproduction
npm run build && npm run dev on the webgpu-chat example directory in v3 branch
The text was updated successfully, but these errors were encountered: