Skip to content

Commit

Permalink
Update nvflare demo for release 2.1.2 (#8038)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou committed Jun 29, 2022
1 parent f470ad3 commit 6eb2335
Showing 1 changed file with 5 additions and 7 deletions.
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

0 comments on commit 6eb2335

Please sign in to comment.