Failed to load model after build #441
Closed
rogerdcarvalho
started this conversation in
General
Replies: 2 comments 1 reply
|
It's possible the you haven't included the binding binaries in the final build due to a missing configuration. You can do that using this command: npm create node-llama-cpp@latest -- --template electron-typescript-react |
0 replies
|
Which binding binaries do you reckon could be the culprit? I played with the template project and compared its build output with mine, and on first impression both seemed to contain the same content within node-llama-cpp and @node-llama-cpp in the asarUnpack directory as well as bundled within the .asar file. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm working on an electron app using node-llama-cpp. While debugging it works great. However, when I run 'npm run build', the resulting app package suddenly throws the error "Failed to load model". What could be the reason of this? I don't think that during build the model is not properly placed, because if it can't find the model file it normally throws "ENOENT: no such file or directory".
All reactions