Skip to content

Commit

Permalink
chore: use key compression in pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
fd0r committed Jun 7, 2024
1 parent 4d297af commit 8501ae0
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 27 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,18 +254,22 @@ This software is distributed under the **BSD-3-Clause-Clear** license. Read [thi
#### FAQ

**Is Zama’s technology free to use?**
>Zama’s libraries are free to use under the BSD 3-Clause Clear license only for development, research, prototyping, and experimentation purposes. However, for any commercial use of Zama's open source code, companies must purchase Zama’s commercial patent license.

> Zama’s libraries are free to use under the BSD 3-Clause Clear license only for development, research, prototyping, and experimentation purposes. However, for any commercial use of Zama's open source code, companies must purchase Zama’s commercial patent license.
>
>All our work is open source and we strive for full transparency about Zama's IP strategy. To know more about what this means for Zama product users, read about how we monetize our open source products in [this blog post](https://www.zama.ai/post/open-source).
> All our work is open source and we strive for full transparency about Zama's IP strategy. To know more about what this means for Zama product users, read about how we monetize our open source products in [this blog post](https://www.zama.ai/post/open-source).
**What do I need to do if I want to use Zama’s technology for commercial purposes?**
>To commercially use Zama’s technology you need to be granted Zama’s patent license. Please contact us at hello@zama.ai for more information.

> To commercially use Zama’s technology you need to be granted Zama’s patent license. Please contact us at hello@zama.ai for more information.
**Do you file IP on your technology?**
>Yes, all of Zama’s technologies are patented.

> Yes, all of Zama’s technologies are patented.
**Can you customize a solution for my specific use case?**
>We are open to collaborating and advancing the FHE space with our partners. If you have specific needs, please email us at hello@zama.ai.

> We are open to collaborating and advancing the FHE space with our partners. If you have specific needs, please email us at hello@zama.ai.
<p align="right">
<a href="#about" > ↑ Back to top </a>
Expand Down
34 changes: 17 additions & 17 deletions docs/advanced_examples/EncryptedPandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -492,31 +492,31 @@
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>..926a227729..</td>\n",
" <td>..638abe63c5..</td>\n",
" <td>..2bea63a1bb..</td>\n",
" <td>..f18453d172..</td>\n",
" <td>..f915460bb8..</td>\n",
" <td>..2516cc2849..</td>\n",
" <td>..863d7dfe70..</td>\n",
" <td>..def69f8873..</td>\n",
" </tr>\n",
" <tr>\n",
" <td>..6e88f7b547..</td>\n",
" <td>..36d5835072..</td>\n",
" <td>..610ac6e86a..</td>\n",
" <td>..e47ae10040..</td>\n",
" <td>..a71b8807d3..</td>\n",
" <td>..3898f1290c..</td>\n",
" <td>..d2ed2b92b5..</td>\n",
" <td>..35885dd5df..</td>\n",
" </tr>\n",
" <tr>\n",
" <td>..7740069dfe..</td>\n",
" <td>..aef895be71..</td>\n",
" <td>..6537fa92d0..</td>\n",
" <td>..ab5df453fe..</td>\n",
" <td>..a09e0ec21b..</td>\n",
" <td>..c4c723ba41..</td>\n",
" <td>..0e80736a37..</td>\n",
" <td>..249c21a1d6..</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>"
],
"text/plain": [
" index day time size\n",
"..926a227729.. ..638abe63c5.. ..2bea63a1bb.. ..f18453d172..\n",
"..6e88f7b547.. ..36d5835072.. ..610ac6e86a.. ..e47ae10040..\n",
"..7740069dfe.. ..aef895be71.. ..6537fa92d0.. ..ab5df453fe.."
"..f915460bb8.. ..2516cc2849.. ..863d7dfe70.. ..def69f8873..\n",
"..a71b8807d3.. ..3898f1290c.. ..d2ed2b92b5.. ..35885dd5df..\n",
"..a09e0ec21b.. ..c4c723ba41.. ..0e80736a37.. ..249c21a1d6.."
]
},
"execution_count": 9,
Expand Down Expand Up @@ -584,7 +584,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Total execution time: 8.18s\n"
"Total execution time: 8.59s\n"
]
}
],
Expand Down Expand Up @@ -1036,5 +1036,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
4 changes: 2 additions & 2 deletions src/concrete/ml/pandas/_client_server_files/client.zip
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/concrete/ml/pandas/_client_server_files/server.zip
Git LFS file not shown
6 changes: 5 additions & 1 deletion src/concrete/ml/pandas/_development.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pathlib import Path
from typing import Dict, List, Tuple, Union

from concrete.fhe import Configuration
from concrete.fhe.tracing import Tracer

from concrete import fhe
Expand Down Expand Up @@ -163,9 +164,12 @@ def save_client_server(client_path: Path = CLIENT_PATH, server_path: Path = SERV
# Get the input-set and circuit generating functions
inputset = config["get_inputset"]()
cp_func = config["to_compile"]
compilation_configuration = Configuration(compress_evaluation_keys=True)

# Compile the circuit and allow it to be composable with itself
merge_circuit = cp_func.compile(inputset, composable=True)
merge_circuit = cp_func.compile(
inputset, composable=True, configuration=compilation_configuration
)

# Save the client and server files using the MLIR
merge_circuit.client.save(client_path)
Expand Down

0 comments on commit 8501ae0

Please sign in to comment.