Skip to content

Commit

Permalink
chore: fix torch simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Apr 17, 2024
1 parent f1172ad commit 71b3f0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ def fhe_compatibility(model: Callable, data: DataLoader) -> Callable:
torch_inputset=data,
show_mlir=False,
output_onnx_file="test.onnx",
# FIXME: https://github.com/zama-ai/concrete-ml-internal/issues/4391
rounding_threshold_bits=6,
)

return qmodel
Expand Down
6 changes: 2 additions & 4 deletions use_case_examples/cifar/cifar_brevitas_training/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ run_example: one two
one:
@python evaluate_one_example_fhe.py

# FIXME: https://github.com/zama-ai/concrete-ml-internal/issues/4389
# too slow on cpu
# two:
# @python evaluate_torch_cml.py
two:
@python evaluate_torch_cml.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def main(args):
"--rounding_threshold_bits",
nargs="+",
type=int,
default=[None],
default=[6],
help="Number of bits to target with rounding.",
)
parser.add_argument(
Expand Down

0 comments on commit 71b3f0f

Please sign in to comment.