This guide aims to help developers who are upgrading from older versions of Concrete ML. Although we cannot cover everything, we have compiled the most important points to assist you in your transition. If you encounter any issues, please do not hesitate to reach out to https://community.zama.ai or ask on the fhe.org Discord.
Please take note of the following changes when upgrading to version 1.0.0:
-
execute_in_fheargument in.predict()methods has been replaced byfhe="disable|simulate|execute". Thedisableoption runs the model in Python, whilesimulateperforms a FHE simulation, andexecuteprovides actual FHE execution. -
encrypt_run_decryptfunction can now only be executed in FHE. For FHE simulations, please use thesimulatefunction instead. -
In some models, the
forward_fhefunction has been renamed tofhe_circuitfor consistency across all models. -
verbose_compilationparameter has been renamed toverbosein the compile functions. -
compilation_artifactsparameter has been renamed toartifacts. -
use_virtual_libparameter inconcrete.ml.torchhas been removed from the following functions:compile_onnx_modelcompile_torch_modelcompile_brevitas_qat_modelThis means that models are now always converted to FHE, and only FHE-friendly models can be compiled.