securenn-public
securenn-public copied to clipboard
How to Configure mnist3PC
Hi, I am a graduate student willing to train mnist dataset on three hosts using your protocol. I have seen others asking about the way to run it in localhost, but I still don't know how to run it in different hosts. Could you please give me some instructions? Thanks.
If you have set-up 3 machines, you should install the codebase on each machine and run one party per machine. For instance, the below command runs the 3PC protocol for party number 2:
./BMRPassive.out 3PC 2 files/parties_localhost files/keyC files/keyCD files/MNIST/mnist_train_data_02 files/MNIST/mnist_train_labels_02 files/MNIST/mnist_train_data_02 files/MNIST/mnist_train_labels_02
You want to ensure that you change files/parties_localhost
to a file that contains the 3 IP addresses, one per line, in the order IP_0, IP_1, IP_2. The rest of the files will change as per your data.
You also want to ensure that the networking rules where you're hosting these machines allow for these connections.
You can write your own automated script to run across three hosts, very similar to this file.