Skip to content
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

embeddings: Failed to execute 'postMessage' on 'Worker': #<Object> could not be cloned. #160

Open
ebanDev opened this issue Mar 3, 2025 · 0 comments

Comments

@ebanDev
Copy link

ebanDev commented Mar 3, 2025

Hi!

When running the embeddings model multilingual-e5-large-instruct-GGUF, I get the following error :

Uncaught (in promise) DataCloneError: Failed to execute 'postMessage' on 'Worker': #<Object> could not be cloned.
    at Proxy.runTaskLoop (@wllama_wllama.js?v=2fcdad4e:1563:19)
    at @wllama_wllama.js?v=2fcdad4e:1548:12
    at new Promise (<anonymous>)
    at Proxy.pushTask (@wllama_wllama.js?v=2fcdad4e:1546:12)
    at Proxy.wllamaAction (@wllama_wllama.js?v=2fcdad4e:1467:31)
    at Proxy.samplingInit (@wllama_wllama.js?v=2fcdad4e:2596:37)
    at Proxy.createEmbedding (@wllama_wllama.js?v=2fcdad4e:2510:16)
    at Proxy.runEmbeddings (wllama.ts:214:52)
    at submitNewThread (index.vue:204:73)
    at callWithErrorHandling (runtime-core.esm-bundler.js?v=2fcdad4e:197:19)

for context here is the part of wllama's code where the error comes from: worker.ts

You can have a look at the source code here: wllama.ts, note that the object passed to the embeddings provider is a string (as it should be).

PS: Please dont mind the crappy code 😅

Best,
Eban

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant