-
Notifications
You must be signed in to change notification settings - Fork 142
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
Kernel crashes when I run the following code #62
Comments
Hello, It's a bit hard to know what could be the issue here, the notebook works fine on our side. Could you give us more information on the configuration you're using (for example, by running the Also, what Concrete-Numpy and Concrete-Compiler are you currently using ? You can run Thanks ! |
$pip show concrete-compiler
Name: concrete-compiler
Version: 0.23.4
Summary: Concrete Compiler
Home-page: https://github.com/zama-ai/concrete-compiler
Author: Zama Team
Author-email: hello@zama.ai
License: BSD-3
Location: /home/mahmoud/anaconda3/envs/fhe/lib/python3.9/site-packages
Requires: numpy, PyYAML, setuptools
Required-by: concrete-numpy
(fhe) ~$pip show concrete-numpy
Name: concrete-numpy
Version: 0.9.0
Summary: Concrete Numpy is an open-source library which simplifies the use of fully homomorphic encryption (FHE).
Home-page: https://zama.ai/concrete/
Author: Zama
Author-email: hello@zama.ai
License: BSD-3-Clause
Location: /home/mahmoud/anaconda3/envs/fhe/lib/python3.9/site-packages
Requires: concrete-compiler, matplotlib, networkx, numpy, Pillow, torch
Required-by: concrete-ml
|
Thanks ! These dependencies look good. Maybe you can give us more information on the configuration you're using then (for example, by running |
I have 10GB ram |
Could you now try to put the following code in a .py file and then run it (using the same environment you're using) :
Do you encounter the same issue ? If so, could you give me the error/crash's complete traceback ? Thanks ! |
|
Thanks a lot, we are currently investigating the issue ! |
The issue seems to come from the fact that we rely on aes instructions during keygen, and that your CPU doesn't support that (You can see that in "Security & Reliability). Newer CPUs (starting from 2010 I guess) should support that. We are currently thinking of checking the availability of such instructions at runtime, and fallback to a software variant if not available. We could potentially support older versions in that case, but for the time being, the fastest solution is to use a CPU that supports aes instructions. |
Thank you for instructions. I will try to upgrade my CPU. |
Summary
I ran the following code in jupyter notebook related to Linear regression tutorial with concrete-ml and kernel crashes each time I run this code.
fhe_circuit.client.keygen(force=False)
Description
Step by step procedure someone should follow to trigger the bug:
just run all the cells in jupyter notebook of linear regression with concrete-ml.
The text was updated successfully, but these errors were encountered: