Liberate.FHE
DESILO
v0.9.1
v0.9.1
  • Welcome to Liberate.FHE!
  • 🌟Getting Started
    • Quick Start
    • Installation
  • 🆘Tutorials
    • Homomorphic Statistics
    • Multiparty
  • ❓How To
    • Configure
      • GPU & CUDA
      • Python
      • Liberate
    • Use CKKS
      • Encrypt, Decrypt
      • Add, Sub
      • Multiplication
      • Serialize and Deserialize
      • GPU & CPU
      • Liberate with WASM
  • 🎊API References
    • Docs
  • 📜etc
    • License
Powered by GitBook

COPYRIGHT Ⓒ 2023. DESILO INC. ALL RIGHTS RESERVED.

On this page
  • Liberate.FHE Installation Guide
  • GPU and CUDA setup
  • Python setup (including Virtual Environment)
  • Install Liberate.FHE
  • Clone Liberate.FHE github repository
  • Install dependencies
  • Run CUDA compile script
  • Build a python package
  • Install Liberate.FHE library
  • System Requirements

Was this helpful?

Export as PDF
  1. Getting Started

Installation

PreviousQuick StartNextHomomorphic Statistics

Was this helpful?

Liberate.FHE Installation Guide

Liberate.FHE natively supports python programming language. To install and use Liberate.FHE, please follow the steps below:

and setup

Liberate.FHE runs on single or multiple GPUs. Running Liberate.FHE on GPUs requires installing . Additionally, you need to install that matches the version of you intend to use. Theses settings are necessary for GPU-based operations.

(including Virtual Environment)

To build Liberate.FHE, you need to install , a dependency manager and packaging tool for Python. It is recommended to set up a virtual environment to manage the project in an isolated environment.

Install Liberate.FHE

Clone Liberate.FHE github repository

Clone the of Liberate.FHE to obtain the latest source codes.

git https://github.com/Desilo/liberate-fhe.git

Install dependencies

Use poetry to install the project dependencies. Open a terminal and run the command poetry install. This will automatically install all the required packages for the Liberate.FHE.

poetry install

Run CUDA compile script

To compile CUDA by running the setup.py file. In the terminal, run the command poetry run python setup.py install. This command will compile CUDA files.

python setup.py install
# poetry run python setup.py install

Build a python package

Build the project by running the command poetry build in the terminal. This will create a distributable format of the package.

poetry build

Install Liberate.FHE library

Install the Liberate.FHE by running the command poetry run python -m pip install . in the terminal. This will install the Liberate.FHE library into your system.

pip install .
# poetry run python -m pip install .

System Requirements

Operating System : Liberate.FHE is compatible with .

Python : Liberate.FHE requires version 3.10 or above. You can download and install Python from the official website. And we recommend using the python virtual environment.

PyTorch : Liberate.FHE uses the package. When you install Liberate.FHE, it automatically installs PyTorch.

CUDA : If you want to utilize the GPU, install . Ensure that you choose a version of CUDA that is compatible with PyTorch, and install it accordingly.

🌟
Ubuntu
Python
pyTorch
CUDA
nvidia-driver
CUDA
PyTorch
Python setup
poetry
github repository
GPU
CUDA