@@ -10,9 +10,9 @@ This document introduces how to run encrypt PaddlePaddle model, then train or u
Model encryption demo contains three scenarios:
***Encrypt Model and Train**
***Transpile Model and Train**
Each party loads PaddlePadlde model and encrypts it. Each party feeds the encrypted data to train the encrypted model. Each party can get one share for the encrypted model. PaddlePaddle model can be reconstructed with three encrypted model shares.
Each party loads an empty PaddlePadlde model and transpile it into encrypted and empty model. Each party feeds encrypted data to train the encrypted model. Each party can get one share for the encrypted model. PaddlePaddle model can be reconstructed with three encrypted model shares.
***Encrypt Pre-trained Model and Update**
...
...
@@ -24,7 +24,7 @@ Pre-trained model is encryption and distributed to multipel parties. Parties pre
This document introduces how to encrypt plaintext model and train the encrypted model based on Paddle-MPC.
This document introduces how to transpile empty PaddlePaddle model and train the encrypted model based on Paddle-MPC.
### 1. Prepare Data
Run script `../process_data.py` to generate encrypted training and testing data.
### 2. Encrypt Model, Train, and Save
### 2. Transpile Model, Train, and Save
Encrypt plaintext PaddlePaddle model, train the encrypted model, and save the trained encrypted model with the following script.
Transpile empty PaddlePaddle model into encrypted and empty model, train the encrypted model, and save the trained encrypted model with the following script.