You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this code in the Browser and try to embed the same string "Hello world!" vs when I embed it in the browser (using WASM) I get entirely different values
Embed a string using mixedbread-ai/mxbai-embed-large-v1 in console using Bun (Node should behave the same) (dtype resolves to cpu)
Embed the same string in browser (dtype resolves to wasm)
The values are different for the same piece of code
This makes any kind of RAG development impossible.
Update
Switching between wasm and webgpu on the browser also gives entirely different results (different from cpu). It seems like the behaviour is quite different with different backends. I don't think this should be the case
The text was updated successfully, but these errors were encountered:
System Info
"@huggingface/transformers": "3.0.2"
Bun v1.1.30-canary.28+2f8c20ef8 (macOS arm64)
Chrome Version 131.0.6778.70 arm64
Environment/Platform
Description
Take this piece of code
When I run this code in the Browser and try to embed the same string "Hello world!" vs when I embed it in the browser (using WASM) I get entirely different values
Using bun
Using browser
Reproduction
This makes any kind of RAG development impossible.
Update
wasm
andwebgpu
on the browser also gives entirely different results (different fromcpu
). It seems like the behaviour is quite different with different backends. I don't think this should be the caseThe text was updated successfully, but these errors were encountered: