zama-ai / concrete-ml

Concrete ML: Privacy Preserving ML framework using Fully Homomorphic Encryption (FHE), built on top of Concrete, with bindings to traditional ML frameworks.
Other
981 stars 143 forks source link

What is the difference between two bit? #94

Closed maxwellgodv closed 1 year ago

maxwellgodv commented 1 year ago

1.the bit in Brevitas model

1688733334096

2.the bit after fhe_compatibility

1688733478729

What is the difference between two bit?

kcelia commented 1 year ago

Hello @maxwellgodv,

Thank you for reaching out to us.

To use Fully Homomorphic Encryption (FHE) with Concrete ML, it is necessary to convert your machine learning model into an FHE-compatible model.

In this use-case, we explain how to convert a custom Torch neural network into its FHE-equivalent.

An FHE-equivalent model means that the model is quantized and the maximum precision of the operation graph is less than 16 bits. So:

For custom models, Concrete ml uses Brevitas library for quantization.

Thanks !

maxwellgodv commented 1 year ago

Thank you, i understand