Skip to content

LinkError: WebAssembly.instantiate() #198

@yobi213

Description

@yobi213

I encountered an error after compiling a WebAssembly (Wasm) format using mlc-llm. The error message I received is as follows:

Init error, LinkError: WebAssembly.instantiate(): Import #2 module="env" function="_ZN3tvm7runtime15NVTXScopedRangeD1Ev" error: function import requires a callable

I've uploaded the compilation artifacts to the following locations:

Hugging Face Model Hub: Link
GitHub Repository: Link

The webllm npm server does not load when using the wasm file provided in my GitHub. However, when I replace only the wasm file with the wasm from mlc-ai repository and keep the rest of the Hugging Face model, the server can load the model. Here is the replacement wasm file link:

Replacement WebAssembly File

I'm wondering if this issue might be related to the version of emcc or my environment. I'm using a MacBook with a silicon chip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions