-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
.NETPull requests that update .net codePull requests that update .net codeep:WebGPUort-web webgpu providerort-web webgpu providermodel:transformerissues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.platform:webissues related to ONNX Runtime web; typically submitted using templateissues related to ONNX Runtime web; typically submitted using template
Description
Describe the issue
After upgrading to onnxruntime-web version 1.21.0-dev.20241205-d27fecd3d3 in this commit, Segment Anything models no longer work on WebGPU. WASM is correct (albeit slow). You can use https://huggingface.co/Xenova/slimsam-77-uniform for testing, as shown below.
To reproduce
- Check out the demo source code: https://github.com/huggingface/transformers.js-examples/blob/main/segment-anything-webgpu/index.js
- Update the import to
https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.1.1and see that everything works correctly. - Update the import to
https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.1.2and see that the output is incorrect.
Urgency
Since Segment Anything is quite a popular Transformers.js model, this is pretty important.
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.21.0-dev.20241205-d27fecd3d3
Execution Provider
'webgpu' (WebGPU)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeep:WebGPUort-web webgpu providerort-web webgpu providermodel:transformerissues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.platform:webissues related to ONNX Runtime web; typically submitted using templateissues related to ONNX Runtime web; typically submitted using template

