web-llm icon indicating copy to clipboard operation
web-llm copied to clipboard

BufferSource argument is empty

Open DavidGOrtega opened this issue 10 months ago • 4 comments

When I try to load the wasm from local using http-server I have this error no matter if the mime type is application/wasm or application/octet-stream.

I have used always this server to serve local compiled models without any issue.

Uncaught (in promise) CompileError: WebAssembly.instantiate(): BufferSource argument is empty

DavidGOrtega avatar Apr 21 '24 11:04 DavidGOrtega

Thanks for the catch; should be fixed via https://github.com/mlc-ai/web-llm/pull/371/files#diff-28c3e3e43a126ec69590b3e436ce6386f7605089d4964f95146c6bd02a84b01c

CharlieFRuan avatar Apr 22 '24 04:04 CharlieFRuan

Still present in 0.2.35 @CharlieFRuan

DavidGOrtega avatar Apr 23 '24 18:04 DavidGOrtega

Thanks, looking into it now

DiegoCao avatar Apr 25 '24 16:04 DiegoCao

@DavidGOrtega May I ask before the indexedDB pull request, does the problem for this BufferSource exist?

DiegoCao avatar Apr 25 '24 16:04 DiegoCao