Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Configure mnist3PC #16

Open
hydayat opened this issue Feb 26, 2022 · 1 comment
Open

How to Configure mnist3PC #16

hydayat opened this issue Feb 26, 2022 · 1 comment

Comments

@hydayat
Copy link

hydayat commented Feb 26, 2022

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.

@snwagh
Copy link
Owner

snwagh commented Feb 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants