Commit Graph

26 Commits

Author SHA1 Message Date
Umut
000ca60062 feat(frontend-python): if then else extension 2024-02-01 12:18:52 +02:00
Ben
75132edf37 docs(frontend): include docs changes from #593 2024-01-19 12:06:32 +03:00
Ben
749096dda9 docs(frontend): v2.5 diff language 2024-01-19 12:06:32 +03:00
Umut
8ef84bed42 feat(frontend-python): add relu extension 2024-01-11 16:09:42 +01:00
rudy
8183d98605 feat(frontend-python): multi-parameters, Configuration, by-precision-and-norm2 strategy 2024-01-08 20:32:27 +01:00
Alexandre Péré
60da713312 feat(optimizer): adds support for function composition 2024-01-04 15:00:25 +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
aquint-zama
8595aad47f docs(frontend): fix broken links
and ignore those that cant be automatically checked (sadly)
2023-10-27 15:40:21 +02:00
Umut
f066678a41 docs(frontend-python): add compiler verbose and debug modes to how to debug 2023-09-28 17:35:35 +02:00
Umut
8b689a5894 feat(frontend-python): make bitwise operations multi precision 2023-09-19 15:28:08 +02:00
Umut
c9611c0289 feat(frontend-python): make comparisons multi precision 2023-09-06 11:51:03 +02:00
Umut
1c24d8f6aa docs(frontend-python): update for multi precision and multi parameters by default 2023-08-08 11:01:29 +02:00
Umut
976ce6e481 docs(frontend-python): update simulation related configuration docs 2023-08-01 10:13:06 +02:00
youben11
bea973e895 feat(frontend): add options to enable verbose/debug mode of the compiler 2023-07-26 18:22:20 +01:00
Umut
79b38a72ec feat(compiler): provide circuit statistics 2023-07-26 11:08:15 +02:00
Ben
96ae2df13e docs(common): documentation edits 2023-07-13 14:33:54 +02:00
Umut
4e03632a11 docs(frontend-python): add bit width assignment and parameter selection sections 2023-07-13 14:33:54 +02:00
Umut
de8efe0a4c docs(frontend-python): add missing escape characters in how to configure section 2023-07-13 14:33:54 +02:00
youben11
2f8d877de8 docs(compiler): calling from other lang (rust) 2023-07-13 14:33:54 +02:00
aquint-zama
407a3b2cde docs(common): add table of content proposal 2023-07-13 14:33:54 +02:00
Umut
b0f83ebe97 refactor(frontend-python): rename Data to Value 2023-06-09 17:41:41 +02:00
Umut
c8cc8a811d feat(frontend-python): separate arguments 2023-06-09 13:01:27 +02:00
rudy
07d97f266d feat(frontend-python): display progress during fhe execution 2023-05-26 15:56:23 +02:00
Jeremy Shulman
cc276dee73 chore(frontend/python): doc fixes
GITBOOK-1
2023-04-12 11:51:50 +02:00
Umut
673b02473f feat(frontend/python): explicit key management 2023-04-11 14:55:57 +02:00
aquint-zama
fdf6f41a89 docs(frontend/python): overhaul python frontend docs 2023-04-11 10:15:42 +02:00