Installing
Concrete ML can be run on Linux based OSes as well as macOS on x86 CPUs. These hardware requirements are dictated by Concrete-Lib.
Do note that since WSL on Windows is a Linux based OS, Concrete ML will work as long as the package is not mandated in the /mnt/c/ directory, which corresponds to the host OS filesystem.
Python package
To install Concrete-ML from PyPi, run the following:
Note that concrete-ml installs concrete-numpy with all extras, including pygraphviz
to draw graphs.
pygraphviz
requires graphviz
packages being installed on your OS, see https://pygraphviz.github.io/documentation/stable/install.html
graphviz
packages are binary packages that won't automatically be installed by pip. Do check https://pygraphviz.github.io/documentation/stable/install.html for instructions on how to install graphviz
for pygraphviz
.
Docker image
You can also get the concrete-ml Docker image by either pulling the latest Docker image or a specific version:
The image can be used with Docker volumes, see the Docker documentation here.
You can then use this image with the following command:
This will launch a Concrete-ML enabled Jupyter server in Docker, that you can access from your browser.
Alternatively, you can just open a shell in Docker with or without volumes:
Last updated