transformers.js
transformers.js copied to clipboard
Example not working on Chrome/Arc v.124(M1 Mac)
System Info
M1 Mac Sonoma Using the example code.
Environment/Platform
- [X] Website/web-app
- [ ] Browser extension
- [ ] Server-side (e.g., Node.js, Deno, Bun)
- [ ] Desktop app (e.g., Electron)
- [ ] Other (e.g., VSCode extension)
Description
Using the repository from : https://github.com/xenova/transformers.js/tree/v3/examples/webgpu-chat and "@xenova/transformers": "github:xenova/transformers.js#v3", it gets stuck on ..loading model..
On the huggingface demo here is the output on the console:
Meanwhile on the local page, here is how the output looks like:
Reproduction
- Clone repo from https://github.com/xenova/transformers.js/tree/v3/examples/webgpu-chat
- npm i and do npm run dev;
- Go to url
- Load Model
- Model gets stuck on ...loading...
Duplicate of https://github.com/xenova/transformers.js/issues/748.
Thanks! Do you have a page where there's documentation on how to convert ONNX models to ONNX-Web models by any chance
Sure, we use Optimum, and you can find additional information there.
You can also use our helper conversion script for helping with quantization.
Sure, we use Optimum, and you can find additional information there.
You can also use our helper conversion script for helping with quantization.
Thanks Joshua!