zkonduit / ezkl

ezkl is an engine for doing inference for deep learning models and other computational graphs in a zk-snark (ZKML). Use it from Python, Javascript, or the command line.
https://docs.ezkl.xyz/
947 stars 142 forks source link

chore: cache lookup tables #835

Closed alexander-camuto closed 3 months ago

alexander-camuto commented 3 months ago

Tables are expensive to generate, want to serialize and reuse !

Closes #808

On benchmarks reduces advice preparation for logrows = 18 (with 12 lookups) from 1.5s to 100ms -- a 10x improvement !