mirror of
https://github.com/zkonduit/ezkl.git
synced 2026-04-25 03:01:17 -04:00
76fa35db7356b66bfa810d7debc4a1f5fa2a34e8
Halo2 DL
This is a proof-of-concept implementation of inference for deep learning models in a zk-snark using Halo2. 2d convolution, fully connected (affine) layers, and nonlinearities such as ReLu and sigmoid are implemented. The input image and model parameters are provided as private advice and the last layer is the public input (instance column). Other configurations are also possible.
We give an example of proving inference with a model that achieves 97.5% accuracy on MNIST.
Running examples
The MNIST inference example (test_prove_mnist_inference) is by default ignored because making the proof uses a lot of memory and takes about three minutes. To run it, use
cargo test --release -- --ignored --nocapture
or ``--include-ignored` to run together with the rest.
Description
Languages
Rust
96.7%
Python
2.4%
Shell
0.9%