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

Update nvflare demo for release 2.1.2 #8038

Merged
merged 1 commit into from Jun 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions demo/nvflare/README.md
Expand Up @@ -8,9 +8,10 @@ This directory contains a demo of Federated Learning using
To run the demo, first build XGBoost with the federated learning plugin enabled (see the
[README](../../plugin/federated/README.md)).

Install NVFlare (note that currently NVFlare only supports Python 3.8):
Install NVFlare (note that currently NVFlare only supports Python 3.8; for NVFlare 2.1.2 we also
need to pin the protobuf package to 3.20.x to avoid protoc errors):
```shell
pip install nvflare
pip install nvflare protobuf==3.20.1
```

Prepare the data:
Expand Down Expand Up @@ -38,12 +39,9 @@ Then start the admin CLI, using `admin/admin` as username/password:
./poc/admin/startup/fl_admin.sh
```

In the admin CLI, run the following commands:
In the admin CLI, run the following command:
```shell
upload_app hello-xgboost
set_run_number 1
deploy_app hello-xgboost all
start_app all
submit_job hello-xgboost
```

Once the training finishes, the model file should be written into
Expand Down