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

Hash generation failed: Error: Failed to deserialize compiled model: invalid value: integer 2, expected variant index 0 <= i < 2 #21

Closed
tri2820 opened this issue Nov 10, 2023 · 1 comment

Comments

@tri2820
Copy link

tri2820 commented Nov 10, 2023

When running the app https://ezkljs-engine.vercel.app/gen-witness with MNIST compiled model & input obtained here https://github.com/zkonduit/ezkljs-engine/tree/1b572b28ede906e73d7eee48be122bf571e14b80/public/data/mnist, error is shown as below
image

Same thing happens when trying to generate witness from these files on nodejs


/home/tri/whale/agentserve/node_modules/@ezkljs/engine/nodejs/ezkl.js:799
    const ret = new Error(getStringFromWasm0(arg0, arg1));
                ^


Error: Failed to deserialize compiled model: invalid value: integer `2`, expected variant index 0 <= i < 2
    at module.exports.__wbindgen_error_new (/home/tri/whale/agentserve/node_modules/@ezkljs/engine/nodejs/ezkl.js:799:17)
    at wasm://wasm/0102c642:wasm-function[2359]:0x3a100d
    at Object.module.exports.genWitness (/home/tri/whale/agentserve/node_modules/@ezkljs/engine/nodejs/ezkl.js:407:14)
    at <anonymous> (/home/tri/whale/agentserve/src/test.ts:18:31)

Node.js v21.1.0
@ethan-crypto
Copy link
Contributor

This issue was patched with this PR: #23

I forgot to update the new path to the artifacts from data to data/1l_mlp.

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