Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Can't compile: Cannot find crypto parameters #604

Open
bpradeep508 opened this issue Apr 13, 2024 · 1 comment
Open

RuntimeError: Can't compile: Cannot find crypto parameters #604

bpradeep508 opened this issue Apr 13, 2024 · 1 comment

Comments

@bpradeep508
Copy link

n_bits = 6

q_module = compile_torch_model(model, X_train, rounding_threshold_bits=6, p_error=0.1)

start_time = time.time()
accs = test_with_concrete(
q_module,
test_dataloader,
use_sim=True,
)
sim_time = time.time() - start_time

print(f"Simulated FHE execution for {n_bits} bit network accuracy: {accs:.2f}%")

error from second line. here X_train is not a mnist dataset given in example, custom dataset

@jfrery
Copy link
Collaborator

jfrery commented Apr 17, 2024

Hi @bpradeep508,

Looks like this is the code from the CNN example. Have you changed the data or model in the example?

Higher p_error, or a adding the n_bits = 6 might help. But to understand why you see this error precisely we would need the architecture of your model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants