Skip to content

Commit

Permalink
feat: use composition for non-interactive encrypted training (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft authored Jun 11, 2024
1 parent 9ca32ef commit ec58bca
Show file tree
Hide file tree
Showing 26 changed files with 2,196 additions and 1,121 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ dmypy.json

# Experiments directory
playground/
.playground/

# File generated by benchmarks
progress.json
Expand All @@ -164,10 +165,6 @@ docs/index.rst
.artifacts
execution_time_of_individual_pytest_files.txt

# Docs: Advance Examples MNIST data
docs/advanced_examples/data/MNIST/


# Hybrid model artifacts
use_case_examples/hybrid_model/clients/
use_case_examples/hybrid_model/compiled_models/
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ OPEN_PR="true"
# Force the installation of a Concrete Python version, which is very useful with nightly versions
# /!\ WARNING /!\: This version should NEVER be a wildcard as it might create some
# issues when trying to run it in the future.
CONCRETE_PYTHON_VERSION="concrete-python==2.6.2.dev20240529"
CONCRETE_PYTHON_VERSION="concrete-python==2.6.2.dev20240605"

# Force the installation of Concrete Python's latest version, release-candidates included
# CONCRETE_PYTHON_VERSION="$$(poetry run python \
Expand Down
20 changes: 10 additions & 10 deletions deps_licenses/licenses_linux_user.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Name, Version, License
PyYAML, 6.0.1, MIT License
brevitas, 0.8.0, UNKNOWN
certifi, 2023.7.22, Mozilla Public License 2.0 (MPL 2.0)
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
charset-normalizer, 3.3.2, MIT License
coloredlogs, 15.0.1, MIT License
concrete-python, 2.6.2.dev20240529, BSD-3-Clause
concrete-python, 2.6.2.dev20240605, BSD-3-Clause
dependencies, 2.0.1, BSD License
dill, 0.3.8, BSD License
filelock, 3.13.4, The Unlicense (Unlicense)
filelock, 3.14.0, The Unlicense (Unlicense)
flatbuffers, 24.3.25, Apache Software License
fsspec, 2024.3.1, BSD License
huggingface-hub, 0.22.2, Apache Software License
fsspec, 2024.6.0, BSD License
huggingface-hub, 0.23.3, Apache Software License
humanfriendly, 10.0, MIT License
hummingbird-ml, 0.4.8, MIT License
idna, 3.7, BSD License
importlib_resources, 6.4.0, Apache Software License
joblib, 1.4.0, BSD License
joblib, 1.4.2, BSD License
jsonpickle, 3.0.4, BSD License
mpmath, 1.3.0, BSD License
networkx, 3.1, BSD License
Expand All @@ -35,18 +35,18 @@ protobuf, 3.20.3, BSD-3-Clause
psutil, 5.9.8, BSD License
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
pytz, 2024.1, MIT License
requests, 2.32.2, Apache Software License
requests, 2.32.3, Apache Software License
scikit-learn, 1.1.3, BSD License
scipy, 1.10.1, BSD License
six, 1.16.0, MIT License
skl2onnx, 1.12, Apache Software License
skops, 0.5.0, MIT
skorch, 0.11.0, new BSD 3-Clause
sympy, 1.12, BSD License
sympy, 1.12.1, BSD License
tabulate, 0.8.10, MIT License
threadpoolctl, 3.4.0, BSD License
threadpoolctl, 3.5.0, BSD License
torch, 1.13.1, BSD License
tqdm, 4.66.2, MIT License; Mozilla Public License 2.0 (MPL 2.0)
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
typing_extensions, 4.5.0, Python Software Foundation License
tzdata, 2024.1, Apache Software License
urllib3, 2.2.1, MIT License
Expand Down
2 changes: 1 addition & 1 deletion deps_licenses/licenses_linux_user.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137e9f0fb1ee91035add06b2a5f29d41
ec95fa3cc4c56a7fe9a9e78bebb8c027
20 changes: 10 additions & 10 deletions deps_licenses/licenses_mac_intel_user.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Name, Version, License
PyYAML, 6.0.1, MIT License
brevitas, 0.8.0, UNKNOWN
certifi, 2023.7.22, Mozilla Public License 2.0 (MPL 2.0)
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
charset-normalizer, 3.3.2, MIT License
coloredlogs, 15.0.1, MIT License
concrete-python, 2.6.2.dev20240529, BSD-3-Clause
concrete-python, 2.6.2.dev20240605, BSD-3-Clause
dependencies, 2.0.1, BSD License
dill, 0.3.8, BSD License
filelock, 3.13.4, The Unlicense (Unlicense)
filelock, 3.14.0, The Unlicense (Unlicense)
flatbuffers, 24.3.25, Apache Software License
fsspec, 2024.3.1, BSD License
huggingface-hub, 0.22.2, Apache Software License
fsspec, 2024.6.0, BSD License
huggingface-hub, 0.23.3, Apache Software License
humanfriendly, 10.0, MIT License
hummingbird-ml, 0.4.8, MIT License
idna, 3.7, BSD License
importlib_resources, 6.4.0, Apache Software License
joblib, 1.4.0, BSD License
joblib, 1.4.2, BSD License
jsonpickle, 3.0.4, BSD License
mpmath, 1.3.0, BSD License
networkx, 3.1, BSD License
Expand All @@ -31,18 +31,18 @@ protobuf, 3.20.3, BSD-3-Clause
psutil, 5.9.8, BSD License
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
pytz, 2024.1, MIT License
requests, 2.32.2, Apache Software License
requests, 2.32.3, Apache Software License
scikit-learn, 1.1.3, BSD License
scipy, 1.10.1, BSD License
six, 1.16.0, MIT License
skl2onnx, 1.12, Apache Software License
skops, 0.5.0, MIT
skorch, 0.11.0, new BSD 3-Clause
sympy, 1.12, BSD License
sympy, 1.12.1, BSD License
tabulate, 0.8.10, MIT License
threadpoolctl, 3.4.0, BSD License
threadpoolctl, 3.5.0, BSD License
torch, 1.13.1, BSD License
tqdm, 4.66.2, MIT License; Mozilla Public License 2.0 (MPL 2.0)
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
typing_extensions, 4.5.0, Python Software Foundation License
tzdata, 2024.1, Apache Software License
urllib3, 2.2.1, MIT License
Expand Down
2 changes: 1 addition & 1 deletion deps_licenses/licenses_mac_intel_user.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137e9f0fb1ee91035add06b2a5f29d41
ec95fa3cc4c56a7fe9a9e78bebb8c027
21 changes: 10 additions & 11 deletions deps_licenses/licenses_mac_silicon_user.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Name, Version, License
PyYAML, 6.0.1, MIT License
brevitas, 0.8.0, UNKNOWN
certifi, 2023.7.22, Mozilla Public License 2.0 (MPL 2.0)
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
charset-normalizer, 3.3.2, MIT License
coloredlogs, 15.0.1, MIT License
concrete-python, 2.6.2.dev20240529, BSD-3-Clause
concrete-python, 2.6.2.dev20240605, BSD-3-Clause
dependencies, 2.0.1, BSD License
dill, 0.3.8, BSD License
filelock, 3.13.4, The Unlicense (Unlicense)
filelock, 3.14.0, The Unlicense (Unlicense)
flatbuffers, 24.3.25, Apache Software License
fsspec, 2024.3.1, BSD License
huggingface-hub, 0.22.2, Apache Software License
fsspec, 2024.6.0, BSD License
huggingface-hub, 0.23.3, Apache Software License
humanfriendly, 10.0, MIT License
hummingbird-ml, 0.4.8, MIT License
idna, 3.7, BSD License
importlib_resources, 6.4.0, Apache Software License
joblib, 1.4.0, BSD License
joblib, 1.4.2, BSD License
jsonpickle, 3.0.4, BSD License
mpmath, 1.3.0, BSD License
networkx, 3.1, BSD License
Expand All @@ -31,21 +31,20 @@ protobuf, 3.20.3, BSD-3-Clause
psutil, 5.9.8, BSD License
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
pytz, 2024.1, MIT License
requests, 2.32.2, Apache Software License
requests, 2.32.3, Apache Software License
scikit-learn, 1.1.3, BSD License
scipy, 1.10.1, BSD License
six, 1.16.0, MIT License
skl2onnx, 1.12, Apache Software License
skops, 0.5.0, MIT
skorch, 0.11.0, new BSD 3-Clause
sympy, 1.12, BSD License
sympy, 1.12.1, BSD License
tabulate, 0.8.10, MIT License
threadpoolctl, 3.4.0, BSD License
threadpoolctl, 3.5.0, BSD License
torch, 1.13.1, BSD License
tqdm, 4.66.2, MIT License; Mozilla Public License 2.0 (MPL 2.0)
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
typing_extensions, 4.5.0, Python Software Foundation License
tzdata, 2024.1, Apache Software License
urllib3, 2.2.1, MIT License
xgboost, 1.6.2, Apache Software License
z3-solver, 4.13.0.0, MIT License
zipp, 3.18.1, MIT License
2 changes: 1 addition & 1 deletion deps_licenses/licenses_mac_silicon_user.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137e9f0fb1ee91035add06b2a5f29d41
ec95fa3cc4c56a7fe9a9e78bebb8c027
5 changes: 5 additions & 0 deletions docs/advanced_examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# MNIST data
data/MNIST/

# FHE training deployment files
fhe_training/
404 changes: 275 additions & 129 deletions docs/advanced_examples/LogisticRegressionTraining.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit ec58bca

Please sign in to comment.