Files
zeekay e037e8f7ea torus: one name for the package, and it is ours
The distribution called itself torus-ml while shipping a package directory
named concrete, so the name a user installs and the name they import disagreed
— and most of the tree already said torus.ml, which could not resolve against
src/concrete. Moved src/concrete to src/torus and pointed the include at it.

The dependency was Zama's concrete-python from their index. It is torus-fhe
from ours, which is what luxfhe/torus already ships: that frontend declares
torus-fhe and ships a torus/fhe module, so every 'from torus.fhe' in this tree
was already naming our compiler and only the dependency lagged.

Two distributions share one namespace, which is the shape the upstream this
forked from used and the reason the split works: torus-fhe gives torus.fhe,
torus-ml gives torus.ml.

Swept every other spelling — identifiers, enum members, workflow variables,
filenames, notebooks. LICENSE and NOTICE keep the upstream attribution a fork
owes; the figures carry the old name in JPEG metadata a text sweep cannot
reach.
2026-08-27 13:20:50 -07:00

1.4 KiB

Upgrading Torus ML In Your Project

This guide aims to help developers who are upgrading from older versions of Torus 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 reach out through our community channels.

Upgrading to 1.0.0

Please take note of the following changes when upgrading to version 1.0.0:

  • execute_in_fhe argument in .predict() methods has been replaced by fhe="disable|simulate|execute". The disable option runs the model in Python, while simulate performs an FHE simulation, and execute provides actual FHE execution.

  • encrypt_run_decrypt function can now only be executed in FHE. For FHE simulations, please use the simulate function instead.

  • In some models, the forward_fhe function has been renamed to fhe_circuit for consistency across all models.

  • verbose_compilation parameter has been renamed to verbose in the compile functions.

  • compilation_artifacts parameter has been renamed to artifacts.

  • use_virtual_lib parameter in torus.ml.torch has been removed from the following functions:

    • compile_onnx_model
    • compile_torch_model
    • compile_brevitas_qat_model This means that models are now always converted to FHE, and only FHE-friendly models can be compiled.