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

WebAssembly.instantiate(): Import #0 "a" "a": function import requires a callable #143

Open
nfplay opened this issue Dec 8, 2024 · 1 comment

Comments

@nfplay
Copy link

nfplay commented Dec 8, 2024

Hi, first thank you for your stellar work on wllama!

I sometimes have this error upon trying to load an already downloaded model (any model, but i'm testing with qwen 2.5 1.5b and llama 3.2 1b):

"Loading "wllama.worker.js" from WLLAMA_MULTI_THREAD_WORKER_CODE
main.js:511 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #0 "a" "a": function import requires a callable
main.js:511 falling back to ArrayBuffer instantiation
main.js:511 failed to asynchronously prepare wasm: LinkError: WebAssembly.instantiate(): Import #0 "a" "a": function import requires a callable
main.js:511 Aborted(LinkError: WebAssembly.instantiate(): Import #0 "a" "a": function import requires a callable)"

A hard reload of the site normally fixes these, so probably has something to do with cached wllama.worker.js or something similar? What do you think?

Thanks,
Nuno

@ngxson
Copy link
Owner

ngxson commented Dec 8, 2024

wasm streaming compile failed

This means the wasm is invalid or corrupted, should be related to caching.

There is nothing wllama to prevent it from happen, it depends on caching behavior of your web server.

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

2 participants