Files
zeekay 9546c92611 Replace placeholders with real working examples
ML examples:
- credit_scoring: Credit risk prediction with HMEQ data
- disease_prediction: Healthcare ML on encrypted records
- cifar: Encrypted image classification
- federated_learning: Distributed FHE training
- hybrid_model: Mixed FHE/plaintext inference

Deployment:
- breast_cancer: Cancer detection API
- sentiment_analysis: Encrypted NLP
- server: FHE inference server

Blockchain:
- hardhat-template: Solidity + FHE
- react-template: Full dApp with FHE
2026-01-25 20:46:26 -08:00

1.4 KiB

Deployment Examples

This folder contains examples of how to deploy Torus ML models using Fully Homomorphic Encryption (FHE). These examples demonstrate the process of training, compiling, and deploying models for various use cases.

Overview

The deployment process generally follows these steps:

  1. Train the model (optional, depending on the use case)
  2. Compile the model to an FHE circuit
  3. Deploy the model using Docker
  4. Run inference using a client (locally or in Docker)

Available Examples

We provide three different use cases to demonstrate the deployment process:

  1. Breast Cancer Classification
  2. Sentiment Analysis
  3. CIFAR-10 Image Classification

Getting Started

Each example folder contains its own README with specific instructions. However, the general process is similar:

  1. Train or compile the model using the provided scripts
  2. Deploy the model using deploy_to_docker.py from the server folder
  3. Build the client Docker image
  4. Run the client to interact with the deployed model

For detailed instructions, please refer to the README in each example folder.

Requirements

  • Docker
  • Python 3.8 or later
  • Torus ML library installed

Additional Resources