Commit Graph

24 Commits

Author SHA1 Message Date
Umut
d3dfdcd699 feat(frontend): add support for np.min and np.max 2024-09-06 09:39:02 +03:00
Benoit Chevallier-Mames
8477f95dc3 feat(ci): update ruff 2024-09-05 13:18:42 +02:00
Bourgerie Quentin
477b502f58 test(frontend-python): Fix default value and option for the optimizatio strategy to test 2024-08-23 17:42:23 +02:00
Bourgerie Quentin
23a521e5d1 chore(ci): Test default configuration on python CI tests 2024-03-11 16:51:05 +01:00
rudy
d3e70c483f chore(frontend-python): use compression for tests to solve the missing space issue 2024-03-06 14:43:40 +01:00
Bourgerie Quentin
1dec886770 feat(compiler/frontend-python): Expose default GPU CompilerOptions set and use it in concrete-python 2024-01-05 13:15:12 +00:00
aPere3
6691c8f107 feat(frontend): add support for gpu in concrete-python 2024-01-05 13:15:12 +00:00
Alexandre Péré
60da713312 feat(optimizer): adds support for function composition 2024-01-04 15:00:25 +01:00
Bourgerie Quentin
c339e2a10b chore(backend/frontend): Fixing formatting... 2024-01-02 19:23:38 +01:00
Bourgerie Quentin
9a8b644a70 chore(frontend-python): Regenerate keyset on error 2024-01-02 18:18:30 +01:00
Umut
07d6293ca8 fix(frontend-python): assigning signed values to unsigned tensors 2023-12-04 13:37:26 +01:00
Alexandre Péré
e8ef48ffd8 feat(compiler): introduce concrete-protocol
This commit:
 + Adds support for a protocol which enables inter-op between concrete,
   tfhe-rs and potentially other contributors to the fhe ecosystem.
 + Gets rid of hand-made serialization in the compiler, and
   client/server libs.
 + Refactors client/server libs to allow more pre/post processing of
   circuit inputs/outputs.

The protocol is supported by a definition in the shape of a capnp file,
which defines different types of objects among which:
 + ProgramInfo object, which is a precise description of a set of fhe
   circuit coming from the same compilation (understand function type
   information), and the associated key set.
 + *Key objects, which represent secret/public keys used to
   encrypt/execute fhe circuits.
 + Value object, which represent values that can be transferred between
   client and server to support calls to fhe circuits.

The hand-rolled serialization that was previously used is completely
dropped in favor of capnp in the whole codebase.

The client/server libs, are refactored to introduce a modular design for
pre-post processing. Reading the ProgramInfo file associated with a
compilation, the client and server libs assemble a pipeline of
transformers (functions) for pre and post processing of values coming in
and out of a circuit. This design properly decouples various aspects of
the processing, and allows these capabilities to be safely extended.

In practice this commit includes the following:
 + Defines the specification in a concreteprotocol package
 + Integrate the compilation of this package as a compiler dependency
   via cmake
 + Modify the compiler to use the Encodings objects defined in the
   protocol
 + Modify the compiler to emit ProgramInfo files as compilation
   artifact, and gets rid of the bloated ClientParameters.
 + Introduces a new Common library containing the functionalities shared
   between the compiler and the client/server libs.
 + Introduces a functional pre-post processing pipeline to this common
   library
 + Modify the client/server libs to support loading ProgramInfo objects,
   and calling circuits using Value messages.
 + Drops support of JIT.
 + Drops support of C-api.
 + Drops support of Rust bindings.

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-11-09 17:09:04 +01:00
Umut
004108f39a chore(frontend-python): only test with simulation for extremely long-running tests 2023-10-30 15:53:03 +01:00
Umut
fcf3de296c chore(frontend-python): reduce global p error for tests 2023-09-19 15:28:08 +02:00
youben11
094583e32b test(frontend): disable JIT in helper test config 2023-06-27 14:21:42 +01:00
youben11
9f54184375 feat(frontend): simulate execution using the compiler 2023-06-27 14:21:42 +01:00
Umut
41bf801ce1 feat(frontend-python): introduce parameter selection strategy configuration 2023-04-21 17:38:05 +02:00
Umut
efa866f069 chore(frontend/python): use smaller global p error for tests to avoid random ci failures 2023-04-07 19:42:57 +02:00
Umut
0edfe59e18 refactor(frontend/python): re-write MLIR conversion 2023-04-07 19:42:57 +02:00
Umut
9f15d39209 chore: set key cache directory from the environment for make pytest command 2023-03-21 11:00:09 +01:00
Quentin Bourgerie
f55c448a5f Revert "chore: add concrete python tests to ci"
This reverts commit ceefcc5853.
2023-03-21 07:21:56 +01:00
Umut
ceefcc5853 chore: add concrete python tests to ci 2023-03-20 13:02:22 +01:00
Umut
4e7cbac264 refactor: concrete-numpy to concrete-python 2023-03-17 13:29:21 +01:00
Quentin Bourgerie
ce7eddc22d chore: Move to the mono repo layout 2023-03-08 11:23:21 +01:00