I am trying to follow along with the simple Linear Regression example (docs/advanced_examples/LinearRegression.ipynb), but my kernel crashes every time I run the compile line: fhe_circuit = concrete_lr.compile(X_train).
Hello, it seems you have very deprecated version: Concrete ML eg today is 1.5.0 (concrete-ml · PyPI) and 0.3 seems to be from 2022 (concrete-ml · PyPI).
Could you launch an pip install concrete-ml --upgrade and pip install concrete-python --upgrade please?
Note that concrete package is not ours, it’s something else
For some reason, even after running pip install concrete-ml --upgrade, the version of concrete-ml remains at 0.3.0. Also, pip install concrete-python --upgrade yields the errors:
" ERROR: Could not find a version that satisfies the requirement concrete-python (from versions: none)
ERROR: No matching distribution found for concrete-python"
Trying pip install --force-reinstall -v concrete-ml==1.5.0 yields a similar error as above:
" ERROR: Could not find a version that satisfies the requirement concrete-python==2.6.0-rc1 (from concrete-ml) (from versions: none)
ERROR: No matching distribution found for concrete-python==2.6.0-rc1"
I realize that the architecture is arm64, but the python architecture in the venv is x86 for some reason. I have tried to search how to change the python architecture but haven’t found anything that seems to work. Would you be able to provide any assistance with this?
Unfortunately, all I can advise you here is to try to properly re-install your venv, I’m not too familiar with this behavior. We recently got a user on discord having the same sort of issue using conda : Discord
Thanks! I was able to create a new pyenv venv, but I still am experiencing the kernel crashing every time I run the compile line: fhe_circuit = concrete_lr.compile(X_train)
Else, I would advise you to take another look at the links I shared above in order to make sure you have an pyenv venv with an arm architecture. If that does not work, then maybe you could try to use a Python built-in venv and see if it solves your issue.
I also tried Python’s built-in venv, and it gives the same error where the kernel crashes whenever I try to ful the line fhe_circuit = concrete_lr.compile(X_train)
Indeed, we recently discovered an issue that sometimes happen with M1 machines. If the steps I gave above do not solve your issue, the solution might simply be to wait for our next release, which we will try to publish as soon as we can.